Interface DataAccessor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.beam.sdk.values.PCollection<StreamElement> createBatch​(org.apache.beam.sdk.Pipeline pipeline, java.util.List<AttributeDescriptor<?>> attrs, long startStamp, long endStamp)
      Create PCollection for given attribute family's batch updates storage.
      org.apache.beam.sdk.values.PCollection<StreamElement> createStream​(java.lang.String name, org.apache.beam.sdk.Pipeline pipeline, Position position, boolean stopAtCurrent, boolean eventTime, long limit)
      Create PCollection for given attribute family's commit log.
      org.apache.beam.sdk.values.PCollection<StreamElement> createStreamFromUpdates​(org.apache.beam.sdk.Pipeline pipeline, java.util.List<AttributeDescriptor<?>> attrs, long startStamp, long endStamp, long limit)
      Create PCollection for given attribute family's batchUpdates.
    • Method Detail

      • createStream

        org.apache.beam.sdk.values.PCollection<StreamElement> createStream​(java.lang.String name,
                                                                           org.apache.beam.sdk.Pipeline pipeline,
                                                                           Position position,
                                                                           boolean stopAtCurrent,
                                                                           boolean eventTime,
                                                                           long limit)
        Create PCollection for given attribute family's commit log.
        Parameters:
        name - name of the consumer
        pipeline - pipeline to create PCollection in
        position - to read from
        stopAtCurrent - stop reading at current data
        eventTime - true to use event time
        limit - limit number of elements read. Note that the number of elements might be actually lower, because it is divided by number of partitions It is useful mostly for testing purposes
        Returns:
        PCollection representing the commit log
      • createStreamFromUpdates

        org.apache.beam.sdk.values.PCollection<StreamElement> createStreamFromUpdates​(org.apache.beam.sdk.Pipeline pipeline,
                                                                                      java.util.List<AttributeDescriptor<?>> attrs,
                                                                                      long startStamp,
                                                                                      long endStamp,
                                                                                      long limit)
        Create PCollection for given attribute family's batchUpdates. The created PCollection is purposefully treated as unbounded (although it is bounded, in fact), which gives better performance in cases when it is united with another unbounded PCollection.
        Parameters:
        pipeline - pipeline to create PCollection in
        attrs - attributes to read updates for
        startStamp - minimal update timestamp (inclusive)
        endStamp - maximal update timestamp (exclusive)
        limit - limit number of elements read. Note that the number of elements might be actually lower, because it is divided by number of partitions It is useful mostly for testing purposes
        Returns:
        PCollection representing the commit log
      • createBatch

        org.apache.beam.sdk.values.PCollection<StreamElement> createBatch​(org.apache.beam.sdk.Pipeline pipeline,
                                                                          java.util.List<AttributeDescriptor<?>> attrs,
                                                                          long startStamp,
                                                                          long endStamp)
        Create PCollection for given attribute family's batch updates storage.
        Parameters:
        pipeline - pipeline to create PCollection in
        attrs - attributes to read
        startStamp - minimal update timestamp (inclusive)
        endStamp - maximal update timestamp (exclusive)
        Returns:
        PCollection representing the batch updates