Class LastRowsExecutionDataSampler
- java.lang.Object
-
- org.apache.hop.execution.sampler.plugins.ExecutionDataSamplerBase<LastRowsExecutionDataSamplerStore>
-
- org.apache.hop.execution.sampler.plugins.last.LastRowsExecutionDataSampler
-
- All Implemented Interfaces:
Cloneable,IExecutionDataSampler<LastRowsExecutionDataSamplerStore>
@GuiPlugin @ExecutionDataSamplerPlugin(id="LastRowsExecutionDataSampler", name="Last output rows", description="Samples the last rows of a transform output") public class LastRowsExecutionDataSampler extends ExecutionDataSamplerBase<LastRowsExecutionDataSamplerStore> implements IExecutionDataSampler<LastRowsExecutionDataSamplerStore>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.hop.execution.sampler.IExecutionDataSampler
IExecutionDataSampler.ExecutionDataSamplerObjectFactory
-
-
Field Summary
-
Fields inherited from class org.apache.hop.execution.sampler.plugins.ExecutionDataSamplerBase
pluginId, pluginName, sampleSize
-
-
Constructor Summary
Constructors Constructor Description LastRowsExecutionDataSampler()LastRowsExecutionDataSampler(String sampleSize)LastRowsExecutionDataSampler(LastRowsExecutionDataSampler sampler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LastRowsExecutionDataSamplerclone()LastRowsExecutionDataSamplerStorecreateSamplerStore(ExecutionDataSamplerMeta samplerMeta)Create a sampler store to match the sampler.voidsampleRow(LastRowsExecutionDataSamplerStore samplerStore, IStream.StreamType streamType, IRowMeta rowMeta, Object[] row)Sample one row in a stream or rows.-
Methods inherited from class org.apache.hop.execution.sampler.plugins.ExecutionDataSamplerBase
equals, getPluginId, getPluginName, getSampleSize, hashCode, setPluginId, setPluginName, setSampleSize
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hop.execution.sampler.IExecutionDataSampler
getPluginId, getPluginName, setPluginId, setPluginName
-
-
-
-
Constructor Detail
-
LastRowsExecutionDataSampler
public LastRowsExecutionDataSampler()
-
LastRowsExecutionDataSampler
public LastRowsExecutionDataSampler(LastRowsExecutionDataSampler sampler)
-
LastRowsExecutionDataSampler
public LastRowsExecutionDataSampler(String sampleSize)
-
-
Method Detail
-
clone
public LastRowsExecutionDataSampler clone()
- Specified by:
clonein interfaceIExecutionDataSampler<LastRowsExecutionDataSamplerStore>- Specified by:
clonein classExecutionDataSamplerBase<LastRowsExecutionDataSamplerStore>
-
createSamplerStore
public LastRowsExecutionDataSamplerStore createSamplerStore(ExecutionDataSamplerMeta samplerMeta)
Description copied from interface:IExecutionDataSamplerCreate a sampler store to match the sampler. It will allow you to store your intermediate sampler results.- Specified by:
createSamplerStorein interfaceIExecutionDataSampler<LastRowsExecutionDataSamplerStore>- Specified by:
createSamplerStorein classExecutionDataSamplerBase<LastRowsExecutionDataSamplerStore>- Parameters:
samplerMeta- Metadata about the transform we're sampling for.- Returns:
- A new sampler store instance.
-
sampleRow
public void sampleRow(LastRowsExecutionDataSamplerStore samplerStore, IStream.StreamType streamType, IRowMeta rowMeta, Object[] row)
Description copied from interface:IExecutionDataSamplerSample one row in a stream or rows. It's up to the plugin to know what to do with it.- Specified by:
sampleRowin interfaceIExecutionDataSampler<LastRowsExecutionDataSamplerStore>- Parameters:
samplerStore- A place to store the samples and intermediate resultsstreamType- The type of stream we're sampling from. (INPUT, OUTPUT, READ, WRITTEN, ...)rowMeta- The row metadatarow- The row data itself
-
-