public final class PartitionHint extends AbstractDeferredRecordOperator
Normally these actions happens automatically in a logical graph as required, but this operator provides a mechanism for explicit control.
input, output| Constructor and Description |
|---|
PartitionHint()
Forces a partitioning into parallel streams of data.
|
PartitionHint(DataDistribution partitioning)
Forces a partitioning into parallel streams of data
guaranteeing the specified distribution.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
compose(DeferredCompositionContext ctx)
Compose the body of this operator.
|
protected void |
computeMetadata(StreamingMetadataContext ctx)
Implementations must adhere to all of the contracts specified
by
StreamingOperator.computeMetadata(com.pervasive.datarush.operators.StreamingMetadataContext). |
DataOrdering |
getDataOrdering()
Gets the data ordering of the output.
|
DataDistribution |
getPartitioning()
Gets the data distribution of the output.
|
boolean |
getPreserveSortOrder()
If true, data order will be preserved ( provided that the data order is known ).
|
boolean |
isForceStaging()
Indicates whether data will be forcibly staged
to disk.
|
void |
setDataOrdering(DataOrdering dataOrdering)
Sets the data ordering of the output.
|
void |
setForceStaging(boolean forceStaging)
Sets whether data must be staged to disk.
|
void |
setPartitioning(DataDistribution partitioning)
Sets the data distribution of the output.
|
void |
setPreserveSortOrder(boolean preserveSortOrder)
Sets whether data order will be preserved ( provided that the data order is known ).
|
getInput, getOutputcomputeOutputTypesdisableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisableParallelism, getInputPorts, getOutputPortspublic PartitionHint()
public PartitionHint(DataDistribution partitioning)
partitioning - the requested data distributionpublic DataDistribution getPartitioning()
public void setPartitioning(DataDistribution partitioning)
partitioning - the requested data distributionpublic DataOrdering getDataOrdering()
public void setDataOrdering(DataOrdering dataOrdering)
dataOrdering - the requested data orderingpublic boolean isForceStaging()
public void setForceStaging(boolean forceStaging)
forceStaging - indicates whether the data
must be stagedpublic boolean getPreserveSortOrder()
public void setPreserveSortOrder(boolean preserveSortOrder)
preserveSortOrder - whether to preserve sort order.protected void computeMetadata(StreamingMetadataContext ctx)
DeferredCompositeOperatorStreamingOperator.computeMetadata(com.pervasive.datarush.operators.StreamingMetadataContext). In addition,
DeferredCompositeOperators must declare required metadata so
as to satisfy requirements of the operators that are added
during DeferredCompositeOperator.compose(com.pervasive.datarush.operators.DeferredCompositionContext).computeMetadata in class DeferredCompositeOperatorctx - the contextprotected void compose(DeferredCompositionContext ctx)
DeferredCompositeOperatorOperatorComposable.add(O)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 portscompose in class DeferredCompositeOperatorctx - the contextCopyright © 2021 Actian Corporation. All rights reserved.