public class FieldCopier extends Object
This utility is intended for cases when DeriveFields
cannot be used, but similar function is required within the
implementation of a process.
ScalarValuedFunction
Constructor and Description |
---|
FieldCopier(RecordSettable target,
RecordValued source)
Creates a setter binding the specified output buffer to the
provided input values.
|
FieldCopier(RecordSettable target,
RecordValued source,
Map<String,ScalarValuedFunction> replacements)
Creates a setter binding the specified output buffer to the
provided input values and functions.
|
FieldCopier(ScalarOutputField[] outputs,
RecordValued input)
Creates a setter binding the specified output fields to the
provided input values.
|
FieldCopier(ScalarOutputField[] outputs,
RecordValued input,
Map<String,ScalarValuedFunction> replacements)
Creates a setter binding the specified output fields to the
provided input values and functions.
|
Modifier and Type | Method and Description |
---|---|
void |
copyToOutput()
Sets the values of the bound outputs to the current value of their
associated source.
|
public FieldCopier(RecordSettable target, RecordValued source)
target
- the output buffer to set on a copy requestinput
- the values to use as the source for copypublic FieldCopier(ScalarOutputField[] outputs, RecordValued input)
outputs
- the output fields to set on a copy requestinput
- the values to use as the source for copypublic FieldCopier(RecordSettable target, RecordValued source, Map<String,ScalarValuedFunction> replacements)
target
- the output buffer to set on a copy requestinput
- the values to use as the source for copy; this
is also the input domain used for evaluating replacement functions.replacements
- a collection of functions providing output values
for fieldspublic FieldCopier(ScalarOutputField[] outputs, RecordValued input, Map<String,ScalarValuedFunction> replacements)
outputs
- the output fields to set on a copy requestinput
- the values to use as the source for copy; this
is also the input domain used for evaluating replacement functions.replacements
- a collection of functions providing output values
for fieldsCopyright © 2019 Actian Corporation. All rights reserved.