org.apache.accumulo.core.file.rfile.bcfile
Class BCFile.Reader.BlockReader

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by org.apache.accumulo.core.file.rfile.bcfile.BCFile.Reader.BlockReader
All Implemented Interfaces:
Closeable, DataInput
Enclosing class:
BCFile.Reader

public static class BCFile.Reader.BlockReader
extends DataInputStream

Access point to read a block.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Method Summary
 void close()
          Finishing reading the block.
 long getCompressedSize()
          Get the compressed size of the block.
 String getCompressionName()
          Get the name of the compression algorithm used to compress the block.
 long getRawSize()
          Get the uncompressed size of the block.
 long getStartPos()
          Get the starting position of the block in the file.
 
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
 
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public void close()
           throws IOException
Finishing reading the block. Release all resources.

Specified by:
close in interface Closeable
Overrides:
close in class FilterInputStream
Throws:
IOException

getCompressionName

public String getCompressionName()
Get the name of the compression algorithm used to compress the block.

Returns:
name of the compression algorithm.

getRawSize

public long getRawSize()
Get the uncompressed size of the block.

Returns:
uncompressed size of the block.

getCompressedSize

public long getCompressedSize()
Get the compressed size of the block.

Returns:
compressed size of the block.

getStartPos

public long getStartPos()
Get the starting position of the block in the file.

Returns:
the starting position of the block in the file.


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.