Class MongoDbGridFSIO.Read.BoundedGridFSSource

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.beam.sdk.transforms.display.HasDisplayData
    Enclosing class:
    MongoDbGridFSIO.Read<T>

    protected static class MongoDbGridFSIO.Read.BoundedGridFSSource
    extends org.apache.beam.sdk.io.BoundedSource<org.bson.types.ObjectId>
    A BoundedSource for MongoDB GridFS.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.beam.sdk.io.BoundedSource

        org.apache.beam.sdk.io.BoundedSource.BoundedReader<T extends java.lang.Object>
      • Nested classes/interfaces inherited from class org.apache.beam.sdk.io.Source

        org.apache.beam.sdk.io.Source.Reader<T extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.beam.sdk.io.BoundedSource.BoundedReader<org.bson.types.ObjectId> createReader​(org.apache.beam.sdk.options.PipelineOptions options)  
      long getEstimatedSizeBytes​(org.apache.beam.sdk.options.PipelineOptions options)  
      org.apache.beam.sdk.coders.Coder<org.bson.types.ObjectId> getOutputCoder()  
      void populateDisplayData​(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)  
      java.util.List<? extends org.apache.beam.sdk.io.BoundedSource<org.bson.types.ObjectId>> split​(long desiredBundleSizeBytes, org.apache.beam.sdk.options.PipelineOptions options)  
      • Methods inherited from class org.apache.beam.sdk.io.Source

        getDefaultOutputCoder, validate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • split

        public java.util.List<? extends org.apache.beam.sdk.io.BoundedSource<org.bson.types.ObjectId>> split​(long desiredBundleSizeBytes,
                                                                                                             org.apache.beam.sdk.options.PipelineOptions options)
                                                                                                      throws java.lang.Exception
        Specified by:
        split in class org.apache.beam.sdk.io.BoundedSource<org.bson.types.ObjectId>
        Throws:
        java.lang.Exception
      • getEstimatedSizeBytes

        public long getEstimatedSizeBytes​(org.apache.beam.sdk.options.PipelineOptions options)
                                   throws java.lang.Exception
        Specified by:
        getEstimatedSizeBytes in class org.apache.beam.sdk.io.BoundedSource<org.bson.types.ObjectId>
        Throws:
        java.lang.Exception
      • createReader

        public org.apache.beam.sdk.io.BoundedSource.BoundedReader<org.bson.types.ObjectId> createReader​(org.apache.beam.sdk.options.PipelineOptions options)
                                                                                                 throws java.io.IOException
        Specified by:
        createReader in class org.apache.beam.sdk.io.BoundedSource<org.bson.types.ObjectId>
        Throws:
        java.io.IOException
      • populateDisplayData

        public void populateDisplayData​(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)
        Specified by:
        populateDisplayData in interface org.apache.beam.sdk.transforms.display.HasDisplayData
        Overrides:
        populateDisplayData in class org.apache.beam.sdk.io.Source<org.bson.types.ObjectId>
      • getOutputCoder

        public org.apache.beam.sdk.coders.Coder<org.bson.types.ObjectId> getOutputCoder()
        Overrides:
        getOutputCoder in class org.apache.beam.sdk.io.Source<org.bson.types.ObjectId>