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:
java.io.Closeable, java.io.DataInput
Enclosing class:
BCFile.Reader

public static class BCFile.Reader.BlockReader
extends java.io.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.
 java.lang.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 java.io.IOException
Finishing reading the block. Release all resources.

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

getCompressionName

public java.lang.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 © 2012 The Apache Software Foundation. All Rights Reserved.