Package org.apache.hop.execution.sampler
Class ExecutionDataSamplerStoreBase<Store extends IExecutionDataSamplerStore>
- java.lang.Object
-
- org.apache.hop.execution.sampler.ExecutionDataSamplerStoreBase<Store>
-
- All Implemented Interfaces:
IExecutionDataSamplerStore
- Direct Known Subclasses:
BasicDataProfilingDataSamplerStore,FirstRowsExecutionDataSamplerStore,LastRowsExecutionDataSamplerStore,RandomRowsExecutionDataSamplerStore
public abstract class ExecutionDataSamplerStoreBase<Store extends IExecutionDataSamplerStore> extends Object implements IExecutionDataSamplerStore
-
-
Field Summary
Fields Modifier and Type Field Description protected intmaxRowsprotected IRowMetarowMetaprotected List<Object[]>rowsprotected ExecutionDataSamplerMetasamplerMeta
-
Constructor Summary
Constructors Constructor Description ExecutionDataSamplerStoreBase(ExecutionDataSamplerMeta samplerMeta, IRowMeta rowMeta, List<Object[]> rows, int maxRows)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description IRowListenercreateRowListener(IExecutionDataSampler sampler)Create a row listener to attach to a transformStringgetKeyForStore(String prefix, ExecutionDataSamplerMeta meta)intgetMaxRows()Gets maxRowsIRowMetagetRowMeta()Gets rowMetaList<Object[]>getRows()Gets rowsExecutionDataSamplerMetagetSamplerMeta()Gets samplerMetaabstract StoregetStore()voidinit(IVariables variables, IRowMeta inputRowMeta, IRowMeta outputRowMeta)Initializes this sampler storevoidsetMaxRows(int maxRows)Sets maxRowsvoidsetRowMeta(IRowMeta rowMeta)Sets rowMetavoidsetRows(List<Object[]> rows)Sets rowsvoidsetSamplerMeta(ExecutionDataSamplerMeta samplerMeta)Sets samplerMeta-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hop.execution.sampler.IExecutionDataSamplerStore
getSamples, getSamplesMetadata
-
-
-
-
Field Detail
-
samplerMeta
protected ExecutionDataSamplerMeta samplerMeta
-
rowMeta
protected IRowMeta rowMeta
-
maxRows
protected int maxRows
-
-
Constructor Detail
-
ExecutionDataSamplerStoreBase
public ExecutionDataSamplerStoreBase(ExecutionDataSamplerMeta samplerMeta, IRowMeta rowMeta, List<Object[]> rows, int maxRows)
-
-
Method Detail
-
getStore
public abstract Store getStore()
-
init
public void init(IVariables variables, IRowMeta inputRowMeta, IRowMeta outputRowMeta)
Description copied from interface:IExecutionDataSamplerStoreInitializes this sampler store- Specified by:
initin interfaceIExecutionDataSamplerStore- Parameters:
variables- The variables to resolve withinputRowMeta- Transform input row metadataoutputRowMeta- Transform output row metadata
-
createRowListener
public IRowListener createRowListener(IExecutionDataSampler sampler)
Description copied from interface:IExecutionDataSamplerStoreCreate a row listener to attach to a transform- Specified by:
createRowListenerin interfaceIExecutionDataSamplerStore- Returns:
- The row listener for this store.
-
getKeyForStore
public String getKeyForStore(String prefix, ExecutionDataSamplerMeta meta)
-
getSamplerMeta
public ExecutionDataSamplerMeta getSamplerMeta()
Gets samplerMeta- Returns:
- value of samplerMeta
-
setSamplerMeta
public void setSamplerMeta(ExecutionDataSamplerMeta samplerMeta)
Sets samplerMeta- Parameters:
samplerMeta- value of samplerMeta
-
getRowMeta
public IRowMeta getRowMeta()
Gets rowMeta- Returns:
- value of rowMeta
-
setRowMeta
public void setRowMeta(IRowMeta rowMeta)
Sets rowMeta- Parameters:
rowMeta- value of rowMeta
-
getMaxRows
public int getMaxRows()
Gets maxRows- Returns:
- value of maxRows
-
setMaxRows
public void setMaxRows(int maxRows)
Sets maxRows- Parameters:
maxRows- value of maxRows
-
-