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, withSchema
getOutputSchema, setOutputSchema
addChildToGraph, addChildToGraph, equals, getId, getInputs, getName, getParallelism, getStateType, hashCode, isMutable, rename, setMutable, setStateType, setTSetEnv, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDataObject
build
generateID, getTBaseGraph
protected RowSourceTSet storedSource
public BatchRowTLink partition(PartitionFunc<Row> partitionFn, int targetParallelism, int columnIndex)
BatchRowTSet
TLink
that would partition data according based on a function
provided. The parallelism of the target TSet
can also be specified.partition
in interface BatchRowTSet
partition
in class BatchRowTSetImpl
partitionFn
- Partition functiontargetParallelism
- column index to usecolumnIndex
- Target parallelismpublic BatchRowTLink join(BatchRowTSet rightTSet, CommunicationContext.JoinType type, java.util.Comparator<Row> keyComparator)
BatchRowTSet
BatchTupleTSet
. Note that this TSet will be considered the left
TSetjoin
in interface BatchRowTSet
join
in class BatchRowTSetImpl
rightTSet
- right tsettype
- CommunicationContext.JoinType
keyComparator
- key comparatorpublic BatchRowTLink direct()
BatchRowTSet
direct
in interface BatchRowTSet
direct
in class BatchRowTSetImpl
public java.util.List<Row> getData()
StorableTBase
List
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()
StorableTBase
getStoredSourceTSet
in interface StorableTBase<Row>
public RowSchema getInputSchema()
getInputSchema
in class BaseTSetWithSchema<Row>
public INode getINode()
getINode
in interface BuildableTSet