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 DictionaryProvider
public boolean loadNextBatch() throws IOException
IOException
public long bytesRead()
public void close() throws IOException
close
in interface AutoCloseable
IOException
protected abstract Schema readSchema(T in) throws IOException
IOException
protected abstract ArrowMessage readMessage(T in, BufferAllocator allocator) throws IOException
IOException
protected void ensureInitialized() throws IOException
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.