Interface IExecutionDataSampler<Store extends IExecutionDataSamplerStore>

    • Method Detail

      • getPluginId

        String getPluginId()
      • setPluginId

        void setPluginId​(String pluginId)
      • getPluginName

        String getPluginName()
      • setPluginName

        void setPluginName​(String pluginName)
      • createSamplerStore

        Store createSamplerStore​(ExecutionDataSamplerMeta samplerMeta)
        Create a sampler store to match the sampler. It will allow you to store your intermediate sampler results.
        Parameters:
        samplerMeta - Metadata about the transform we're sampling for.
        Returns:
        A new sampler store instance.
      • sampleRow

        void sampleRow​(Store samplerStore,
                       IStream.StreamType streamType,
                       IRowMeta rowMeta,
                       Object[] row)
                throws HopException
        Sample one row in a stream or rows. It's up to the plugin to know what to do with it.
        Parameters:
        samplerStore - A place to store the samples and intermediate results
        streamType - The type of stream we're sampling from. (INPUT, OUTPUT, READ, WRITTEN, ...)
        rowMeta - The row metadata
        row - The row data itself
        Throws:
        HopException