Package org.apache.beam.sdk.io.mongodb
Class MongoDbGridFSIO.Read.BoundedGridFSSource
java.lang.Object
org.apache.beam.sdk.io.Source<ObjectId>
org.apache.beam.sdk.io.BoundedSource<ObjectId>
org.apache.beam.sdk.io.mongodb.MongoDbGridFSIO.Read.BoundedGridFSSource
- All Implemented Interfaces:
- Serializable,- HasDisplayData
- Enclosing class:
- MongoDbGridFSIO.Read<T>
A 
BoundedSource for MongoDB GridFS.- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.beam.sdk.io.BoundedSourceBoundedSource.BoundedReader<T>Nested classes/interfaces inherited from class org.apache.beam.sdk.io.SourceSource.Reader<T>
- 
Method SummaryModifier and TypeMethodDescriptioncreateReader(PipelineOptions options) Returns a newBoundedSource.BoundedReaderthat reads from this source.longgetEstimatedSizeBytes(PipelineOptions options) An estimate of the total size (in bytes) of the data that would be read from this source.Returns theCoderto use for the data read from this source.voidpopulateDisplayData(DisplayData.Builder builder) Register display data for the given transform or component.List<? extends BoundedSource<ObjectId>> split(long desiredBundleSizeBytes, PipelineOptions options) Splits the source into bundles of approximatelydesiredBundleSizeBytes.Methods inherited from class org.apache.beam.sdk.io.SourcegetDefaultOutputCoder, validate
- 
Method Details- 
splitpublic List<? extends BoundedSource<ObjectId>> split(long desiredBundleSizeBytes, PipelineOptions options) throws Exception Description copied from class:BoundedSourceSplits the source into bundles of approximatelydesiredBundleSizeBytes.- Specified by:
- splitin class- BoundedSource<ObjectId>
- Throws:
- Exception
 
- 
getEstimatedSizeBytesDescription copied from class:BoundedSourceAn estimate of the total size (in bytes) of the data that would be read from this source. This estimate is in terms of external storage size, before any decompression or other processing done by the reader.If there is no way to estimate the size of the source implementations MAY return 0L. - Specified by:
- getEstimatedSizeBytesin class- BoundedSource<ObjectId>
- Throws:
- Exception
 
- 
createReaderpublic BoundedSource.BoundedReader<ObjectId> createReader(PipelineOptions options) throws IOException Description copied from class:BoundedSourceReturns a newBoundedSource.BoundedReaderthat reads from this source.- Specified by:
- createReaderin class- BoundedSource<ObjectId>
- Throws:
- IOException
 
- 
populateDisplayDataDescription copied from class:SourceRegister display data for the given transform or component.populateDisplayData(DisplayData.Builder)is invoked by Pipeline runners to collect display data viaDisplayData.from(HasDisplayData). Implementations may callsuper.populateDisplayData(builder)in order to register display data in the current namespace, but should otherwise usesubcomponent.populateDisplayData(builder)to use the namespace of the subcomponent.By default, does not register any display data. Implementors may override this method to provide their own display data. - Specified by:
- populateDisplayDatain interface- HasDisplayData
- Overrides:
- populateDisplayDatain class- Source<ObjectId>
- Parameters:
- builder- The builder to populate with display data.
- See Also:
 
- 
getOutputCoderDescription copied from class:SourceReturns theCoderto use for the data read from this source.- Overrides:
- getOutputCoderin class- Source<ObjectId>
 
 
-