org.apache.accumulo.core.file.blockfile
Interface ABlockReader

All Superinterfaces:
DataInput
All Known Implementing Classes:
CachableBlockFile.BlockRead, CachableBlockFile.CachedBlockRead

public interface ABlockReader
extends DataInput


Method Summary
 void close()
           
<T> T
getIndex(Class<T> clazz)
           
 int getPosition()
          Get the file position.
 long getRawSize()
           
 DataInputStream getStream()
           
 boolean isIndexable()
          An indexable block supports seeking, getting a position, and associating an arbitrary index with the block
 void seek(int position)
           
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 

Method Detail

getRawSize

long getRawSize()

getStream

DataInputStream getStream()
                          throws IOException
Throws:
IOException

close

void close()
           throws IOException
Throws:
IOException

isIndexable

boolean isIndexable()
An indexable block supports seeking, getting a position, and associating an arbitrary index with the block

Returns:
true, if the block is indexable; otherwise false.

seek

void seek(int position)

getPosition

int getPosition()
Get the file position.

Returns:
the file position.

getIndex

<T> T getIndex(Class<T> clazz)


Copyright © 2015 Apache Accumulo Project. All rights reserved.