Class StepDataStore

  • All Implemented Interfaces:
    DataStore

    public class StepDataStore
    extends java.lang.Object
    implements DataStore
    Wrapper data store implementation that dispenses all column data as evenly spaced subsamples by row.
    Since:
    13 Nov 2013
    Author:
    Mark Taylor
    • Constructor Summary

      Constructors 
      Constructor Description
      StepDataStore​(DataStore base, int step)
      Constructor.
    • Constructor Detail

      • StepDataStore

        public StepDataStore​(DataStore base,
                             int step)
        Constructor.
        Parameters:
        base - base data store to which most behaviour is delegated
        step - stride indicating the size of the subsample; step=1 means all rows, step=2 means every other one etc
    • Method Detail

      • hasData

        public boolean hasData​(DataSpec spec)
        Description copied from interface: DataStore
        Indicates whether this store has the data described by a given DataSpec.
        Specified by:
        hasData in interface DataStore
        Parameters:
        spec - plot data specification object
      • getTupleRunner

        public TupleRunner getTupleRunner()
        Description copied from interface: DataStore
        Returns an object that manages iteration over tuples. Where possible, the returned TupleRunner should be used for iteration when using this DataStore, since it contains the chosen policy for parallel execution. If only sequential processing is supported however, TupleSequences acquired from this store can be used directly.
        Specified by:
        getTupleRunner in interface DataStore
        Returns:
        tuple runner