public interface ABlockReader extends DataInput
Modifier and Type | Method and Description |
---|---|
void |
close() |
byte[] |
getBuffer() |
<T> T |
getIndex(Class<T> clazz) |
int |
getPosition()
Get the file position.
|
DataInputStream |
getStream() |
boolean |
isIndexable()
An indexable block supports seeking, getting a position, and associating an arbitrary index
with the block
|
void |
seek(int position) |
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
DataInputStream getStream() throws IOException
IOException
void close() throws IOException
IOException
boolean isIndexable()
void seek(int position)
int getPosition()
<T> T getIndex(Class<T> clazz)
byte[] getBuffer()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.