Interface ChunkReader.Factory
- All Known Implementing Classes:
DefaultChunkReaderFactory
- Enclosing interface:
- ChunkReader<READ_CHUNK_TYPE extends WritableChunk<Values>>
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 DefaultChunkReaderFactory.INSTANCE
.-
Method Summary
Modifier and TypeMethodDescription<T extends WritableChunk<Values>>
ChunkReader<T>newReader
(@NotNull BarrageTypeInfo<org.apache.arrow.flatbuf.Field> typeInfo, @NotNull BarrageOptions options) Returns aChunkReader
for the specified arguments.
-
Method Details
-
newReader
<T extends WritableChunk<Values>> ChunkReader<T> newReader(@NotNull @NotNull BarrageTypeInfo<org.apache.arrow.flatbuf.Field> typeInfo, @NotNull @NotNull BarrageOptions options) Returns aChunkReader
for the specified arguments.- Parameters:
typeInfo
- the type of data to read into a chunkoptions
- options for reading the stream- Returns:
- a ChunkReader based on the given options, factory, and type to read
-