java.lang.Object
com.pervasive.datarush.operators.AbstractLogicalOperator
com.pervasive.datarush.operators.CompositeOperator
com.pervasive.datarush.matching.tune.AnalyzeLinkKeys
- All Implemented Interfaces:
LogicalOperator
Provides an analysis of the quality of a set of blocking keys
over two data sets to be linked.
As each record in a given block on the left must be compared to
every other record in the same block on the right during linking,
the smaller the block sizes, the better the performance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCompose the body of this operator.getLeft()Gets the record port providing the input data to analyze for the left side.Gets the fields to use for key blocking for data on the left.getRight()Gets the record port providing the input data to analyze for the right side.Gets the fields to use for key blocking for data on the right.voidsetLeftBlockingKeys(List<String> keys) Sets the fields to use for key blocking for data on the left.voidsetRightBlockingKeys(List<String> keys) Sets the fields to use for key blocking for data on the right.Methods inherited from class com.pervasive.datarush.operators.AbstractLogicalOperator
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
-
Constructor Details
-
AnalyzeLinkKeys
public AnalyzeLinkKeys()Analyzes the data without blocking keys. In this case, the each data set is one giant block. Set the blocking keys usingsetLeftBlockingKeys(List)andsetRightBlockingKeys(List).
-
-
Method Details
-
getLeft
Gets the record port providing the input data to analyze for the left side.- Returns:
- the left input port for the operation
-
getRight
Gets the record port providing the input data to analyze for the right side.- Returns:
- the right input port for the operation
-
getRightBlockingKeys
Gets the fields to use for key blocking for data on the right.- Returns:
- the blocking keys for the right
-
setRightBlockingKeys
Sets the fields to use for key blocking for data on the right.- Parameters:
keys- the blocking keys for the right
-
getLeftBlockingKeys
Gets the fields to use for key blocking for data on the left.- Returns:
- the blocking keys for the left
-
setLeftBlockingKeys
Sets the fields to use for key blocking for data on the left.- Parameters:
keys- the blocking keys for the left
-
compose
Description copied from class:CompositeOperatorCompose the body of this operator. Implementations should do the following:- Perform any validation of configuration, input types, etc
- Instantiate and configure sub-operators, adding them to the provided context via
the method
OperatorComposable.add(O) - Create necessary connections via the method
OperatorComposable.connect(P, P). This includes connections from the composite's input ports to sub-operators, connections between sub-operators, and connections from sub-operators output ports to the composite's output ports
- Specified by:
composein classCompositeOperator- Parameters:
ctx- the context
-