Class BundleReader

  • All Implemented Interfaces:
    BundleStreamSource

    public class BundleReader
    extends java.lang.Object
    implements BundleStreamSource
    Read an ELKI bundle file into a data stream.

    TODO: resize buffer when necessary?

    Since:
    0.5.5
    Author:
    Erich Schubert
    • Field Detail

      • buffer

        java.nio.MappedByteBuffer buffer
        The stream buffer.
      • input

        java.nio.channels.FileChannel input
        Input channel.
      • data

        java.lang.Object[] data
        Current object.
      • hasids

        boolean hasids
        Whether or not we have DBIDs.
    • Constructor Detail

      • BundleReader

        public BundleReader​(java.nio.MappedByteBuffer buffer)
        Constructor.
        Parameters:
        buffer - Input buffer
      • BundleReader

        public BundleReader​(java.nio.channels.FileChannel input)
        Constructor.
        Parameters:
        input - Input channel