Class BoundedSource<T>

    • Constructor Detail

      • BoundedSource

        public BoundedSource()
    • Method Detail

      • split

        public abstract java.util.List<? extends BoundedSource<T>> split​(long desiredBundleSizeBytes,
                                                                         PipelineOptions options)
                                                                  throws java.lang.Exception
        Splits the source into bundles of approximately desiredBundleSizeBytes.
        Throws:
        java.lang.Exception
      • getEstimatedSizeBytes

        public abstract long getEstimatedSizeBytes​(PipelineOptions options)
                                            throws java.lang.Exception
        An 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.

        Throws:
        java.lang.Exception