public abstract class ArrowReader<T extends ReadChannel> extends Object implements DictionaryProvider, AutoCloseable
DictionaryProvider.MapDictionaryProvider| Modifier | Constructor and Description |
|---|---|
protected |
ArrowReader(T in,
BufferAllocator allocator) |
| Modifier and Type | Method and Description |
|---|---|
long |
bytesRead() |
void |
close() |
protected void |
ensureInitialized() |
Map<Long,Dictionary> |
getDictionaryVectors()
Returns any dictionaries
|
VectorSchemaRoot |
getVectorSchemaRoot()
Returns the vector schema root.
|
boolean |
loadNextBatch() |
Dictionary |
lookup(long id) |
protected abstract ArrowMessage |
readMessage(T in,
BufferAllocator allocator) |
protected abstract Schema |
readSchema(T in) |
protected ArrowReader(T in, BufferAllocator allocator)
public VectorSchemaRoot getVectorSchemaRoot() throws IOException
IOException - if reading of schema failspublic Map<Long,Dictionary> getDictionaryVectors() throws IOException
IOException - if reading of schema failspublic Dictionary lookup(long id)
lookup in interface DictionaryProviderpublic boolean loadNextBatch()
throws IOException
IOExceptionpublic long bytesRead()
public void close()
throws IOException
close in interface AutoCloseableIOExceptionprotected abstract Schema readSchema(T in) throws IOException
IOExceptionprotected abstract ArrowMessage readMessage(T in, BufferAllocator allocator) throws IOException
IOExceptionprotected void ensureInitialized()
throws IOException
IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.