Class BCFile.Reader.BlockReader
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.DataInputStream
-
- org.apache.accumulo.core.file.rfile.bcfile.BCFile.Reader.BlockReader
-
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
- 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
close
public void close() throws IOException
Finishing reading the block. Release all resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFilterInputStream
- 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.
-
-