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 Summary
Modifier and TypeMethodDescriptiongetReader
(StreamReaderOptions options, int factor, ChunkReader.TypeInfo typeInfo) Returns aChunkReader
for the specified arguments.default ChunkReader
getReader
(StreamReaderOptions options, ChunkReader.TypeInfo typeInfo) Returns aChunkReader
for the specified arguments.
-
Method Details
-
getReader
Returns aChunkReader
for the specified arguments.- Parameters:
options
- options for reading the streamfactor
- a multiplicative factor to apply when reading integerstypeInfo
- the type of data to read into a chunk- Returns:
- a ChunkReader based on the given options, factory, and type to read
-
getReader
Returns aChunkReader
for the specified arguments.- Parameters:
options
- options for reading the streamtypeInfo
- the type of data to read into a chunk- Returns:
- a ChunkReader based on the given options, factory, and type to read
-