public abstract class RowStoredTSet extends BatchRowTSetImpl implements StorableTBase<Row>
BaseTSet.StateType| Modifier and Type | Field and Description |
|---|---|
protected RowSourceTSet |
storedSource |
| Modifier and Type | Method and Description |
|---|---|
BatchRowTLink |
direct()
Direct/pipe communication
|
java.util.List<Row> |
getData()
retrieve data saved in the TSet as a
List |
INode |
getINode() |
RowSchema |
getInputSchema() |
RowSourceTSet |
getStoredSourceTSet()
retrieve data saved in the TSet
|
BatchRowTLink |
join(BatchRowTSet rightTSet,
CommunicationContext.JoinType type,
java.util.Comparator<Row> keyComparator)
Joins with another
BatchTupleTSet. |
BatchRowTLink |
partition(PartitionFunc<Row> partitionFn,
int targetParallelism,
int columnIndex)
Returns a Partition
TLink that would partition data according based on a function
provided. |
addInput, cache, getTSetEnv, lazyCache, lazyPersist, persist, pipe, setName, withSchemagetOutputSchema, setOutputSchemaaddChildToGraph, addChildToGraph, equals, getId, getInputs, getName, getParallelism, getStateType, hashCode, isMutable, rename, setMutable, setStateType, setTSetEnv, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDataObjectbuildgenerateID, getTBaseGraphprotected RowSourceTSet storedSource
public BatchRowTLink partition(PartitionFunc<Row> partitionFn, int targetParallelism, int columnIndex)
BatchRowTSetTLink that would partition data according based on a function
provided. The parallelism of the target TSet can also be specified.partition in interface BatchRowTSetpartition in class BatchRowTSetImplpartitionFn - Partition functiontargetParallelism - column index to usecolumnIndex - Target parallelismpublic BatchRowTLink join(BatchRowTSet rightTSet, CommunicationContext.JoinType type, java.util.Comparator<Row> keyComparator)
BatchRowTSetBatchTupleTSet. Note that this TSet will be considered the left
TSetjoin in interface BatchRowTSetjoin in class BatchRowTSetImplrightTSet - right tsettype - CommunicationContext.JoinTypekeyComparator - key comparatorpublic BatchRowTLink direct()
BatchRowTSetdirect in interface BatchRowTSetdirect in class BatchRowTSetImplpublic java.util.List<Row> getData()
StorableTBaseList
NOTE: use this method only when you need to pull the data from the tset. Otherwise this would unnecessarily loads data to the memory.
getData in interface StorableTBase<Row>public RowSourceTSet getStoredSourceTSet()
StorableTBasegetStoredSourceTSet in interface StorableTBase<Row>public RowSchema getInputSchema()
getInputSchema in class BaseTSetWithSchema<Row>public INode getINode()
getINode in interface BuildableTSet