Class RandomRowsExecutionDataSamplerStore
- java.lang.Object
-
- org.apache.hop.execution.sampler.ExecutionDataSamplerStoreBase<RandomRowsExecutionDataSamplerStore>
-
- org.apache.hop.execution.sampler.plugins.random.RandomRowsExecutionDataSamplerStore
-
- All Implemented Interfaces:
IExecutionDataSamplerStore
public class RandomRowsExecutionDataSamplerStore extends ExecutionDataSamplerStoreBase<RandomRowsExecutionDataSamplerStore> implements IExecutionDataSamplerStore
A class meant to contain transform execution sampling data
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXECUTION_DATA_SAMPLE_RANDOM_OUTPUT-
Fields inherited from class org.apache.hop.execution.sampler.ExecutionDataSamplerStoreBase
maxRows, rowMeta, rows, samplerMeta
-
-
Constructor Summary
Constructors Constructor Description RandomRowsExecutionDataSamplerStore(RandomRowsExecutionDataSampler dataSampler, ExecutionDataSamplerMeta samplerMeta)RandomRowsExecutionDataSamplerStore(RandomRowsExecutionDataSampler dataSampler, ExecutionDataSamplerMeta samplerMeta, IRowMeta rowMeta, List<Object[]> rows, int maxRows)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RandomRowsExecutionDataSamplergetDataSampler()Gets dataSamplerExecutionDataSamplerMetagetSamplerMeta()Gets samplerMetaMap<String,RowBuffer>getSamples()Return a map of keys and rows of data.Map<String,ExecutionDataSetMeta>getSamplesMetadata()Get some extra information about the data samples.RandomRowsExecutionDataSamplerStoregetStore()voidinit(IVariables variables, IRowMeta inputRowMeta, IRowMeta outputRowMeta)Initializes this sampler storevoidsetDataSampler(RandomRowsExecutionDataSampler dataSampler)Sets dataSampler-
Methods inherited from class org.apache.hop.execution.sampler.ExecutionDataSamplerStoreBase
createRowListener, getKeyForStore, getMaxRows, getRowMeta, getRows, setMaxRows, setRowMeta, setRows, setSamplerMeta
-
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
createRowListener
-
-
-
-
Field Detail
-
EXECUTION_DATA_SAMPLE_RANDOM_OUTPUT
public static final String EXECUTION_DATA_SAMPLE_RANDOM_OUTPUT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RandomRowsExecutionDataSamplerStore
public RandomRowsExecutionDataSamplerStore(RandomRowsExecutionDataSampler dataSampler, ExecutionDataSamplerMeta samplerMeta, IRowMeta rowMeta, List<Object[]> rows, int maxRows)
-
RandomRowsExecutionDataSamplerStore
public RandomRowsExecutionDataSamplerStore(RandomRowsExecutionDataSampler dataSampler, ExecutionDataSamplerMeta samplerMeta)
-
-
Method Detail
-
init
public void init(IVariables variables, IRowMeta inputRowMeta, IRowMeta outputRowMeta)
Description copied from interface:IExecutionDataSamplerStoreInitializes this sampler store- Specified by:
initin interfaceIExecutionDataSamplerStore- Overrides:
initin classExecutionDataSamplerStoreBase<RandomRowsExecutionDataSamplerStore>- Parameters:
variables- The variables to resolve withinputRowMeta- Transform input row metadataoutputRowMeta- Transform output row metadata
-
getStore
public RandomRowsExecutionDataSamplerStore getStore()
- Specified by:
getStorein classExecutionDataSamplerStoreBase<RandomRowsExecutionDataSamplerStore>
-
getSamples
public Map<String,RowBuffer> getSamples()
Description copied from interface:IExecutionDataSamplerStoreReturn a map of keys and rows of data. Every key represents a different type of sampling data.- Specified by:
getSamplesin interfaceIExecutionDataSamplerStore- Returns:
- The samples map for the sampler store
-
getSamplesMetadata
public Map<String,ExecutionDataSetMeta> getSamplesMetadata()
Description copied from interface:IExecutionDataSamplerStoreGet some extra information about the data samples.- Specified by:
getSamplesMetadatain interfaceIExecutionDataSamplerStore- Returns:
- The metadata map where for every key more information (description) is given about the sampled data.
-
getDataSampler
public RandomRowsExecutionDataSampler getDataSampler()
Gets dataSampler- Returns:
- value of dataSampler
-
setDataSampler
public void setDataSampler(RandomRowsExecutionDataSampler dataSampler)
Sets dataSampler- Parameters:
dataSampler- value of dataSampler
-
getSamplerMeta
public ExecutionDataSamplerMeta getSamplerMeta()
Gets samplerMeta- Overrides:
getSamplerMetain classExecutionDataSamplerStoreBase<RandomRowsExecutionDataSamplerStore>- Returns:
- value of samplerMeta
-
-