Class DefaultChunkReadingFactory
java.lang.Object
io.deephaven.extensions.barrage.chunk.DefaultChunkReadingFactory
- All Implemented Interfaces:
ChunkReader.Factory
JVM implementation of
ChunkReader.Factory
, suitable for use in Java clients and servers. This default
implementation may not round trip flight types in a stable way, but will round trip Deephaven table definitions and
table data. Neither of these is a required/expected property of being a Flight/Barrage/Deephaven client.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetReader
(StreamReaderOptions options, int factor, ChunkReader.TypeInfo typeInfo) Returns aChunkReader
for the specified arguments.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.extensions.barrage.chunk.ChunkReader.Factory
getReader
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultChunkReadingFactory
public DefaultChunkReadingFactory()
-
-
Method Details
-
getReader
public ChunkReader getReader(StreamReaderOptions options, int factor, ChunkReader.TypeInfo typeInfo) Description copied from interface:ChunkReader.Factory
Returns aChunkReader
for the specified arguments.- Specified by:
getReader
in interfaceChunkReader.Factory
- 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
-