Interface ChunkReader.Factory

All Known Implementing Classes:
DefaultChunkReadingFactory
Enclosing interface:
ChunkReader

public static interface ChunkReader.Factory
Supports creation of ChunkReader instances to use when processing a flight stream. JVM implementations for client and server should probably use DefaultChunkReadingFactory.INSTANCE.
  • Method Details

    • getReader

      ChunkReader getReader(StreamReaderOptions options, int factor, ChunkReader.TypeInfo typeInfo)
      Returns a ChunkReader for the specified arguments.
      Parameters:
      options - options for reading the stream
      factor - a multiplicative factor to apply when reading integers
      typeInfo - the type of data to read into a chunk
      Returns:
      a ChunkReader based on the given options, factory, and type to read
    • getReader

      default ChunkReader getReader(StreamReaderOptions options, ChunkReader.TypeInfo typeInfo)
      Returns a ChunkReader for the specified arguments.
      Parameters:
      options - options for reading the stream
      typeInfo - the type of data to read into a chunk
      Returns:
      a ChunkReader based on the given options, factory, and type to read