|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFileReader
Interface to read from the SequenceFile abstraction. Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com )
Method Summary | |
---|---|
void |
close()
Close the file after reading. |
long |
getCurrentPosition()
|
long |
getEOF()
|
java.lang.String |
getFileName()
|
long |
getPositionFromBlockIndex(java.lang.String key)
This method helps is retrieving the offset of the specified key in the file using the block index. |
boolean |
isEOF()
|
boolean |
isHealthyFileDescriptor()
|
long |
next(DataOutputBuffer bufOut)
This method dumps the next key/value into the DataOuputStream passed in. |
long |
next(java.lang.String key,
DataOutputBuffer bufOut,
Coordinate section)
This method dumps the next key/value into the DataOuputStream passed in. |
long |
next(java.lang.String key,
DataOutputBuffer bufOut,
java.lang.String columnFamilyName,
java.util.List<java.lang.String> columnNames,
IndexHelper.TimeRange timeRange,
Coordinate section)
This method dumps the next key/value into the DataOuputStream passed in. |
void |
readDirect(byte[] bytes)
Be extremely careful while using this API. |
long |
readLong()
Read a long value from the underlying sub system. |
void |
seek(long position)
|
Method Detail |
---|
java.lang.String getFileName()
long getEOF() throws java.io.IOException
java.io.IOException
long getCurrentPosition() throws java.io.IOException
java.io.IOException
boolean isHealthyFileDescriptor() throws java.io.IOException
java.io.IOException
void seek(long position) throws java.io.IOException
java.io.IOException
boolean isEOF() throws java.io.IOException
java.io.IOException
void readDirect(byte[] bytes) throws java.io.IOException
bytes
- read into this byte array.
java.io.IOException
long readLong() throws java.io.IOException
java.io.IOException
long getPositionFromBlockIndex(java.lang.String key) throws java.io.IOException
key
- key whose position we need in the block index.
java.io.IOException
long next(DataOutputBuffer bufOut) throws java.io.IOException
bufOut
- DataOutputStream that needs to be filled.
java.io.IOException
long next(java.lang.String key, DataOutputBuffer bufOut, Coordinate section) throws java.io.IOException
key
- key we are interested in.bufOut
- DataOutputStream that needs to be filled.section
- region of the file that needs to be read
java.io.IOException
long next(java.lang.String key, DataOutputBuffer bufOut, java.lang.String columnFamilyName, java.util.List<java.lang.String> columnNames, IndexHelper.TimeRange timeRange, Coordinate section) throws java.io.IOException
key
- - key we are interested in.bufOut
- - DataOutputStream that needs to be filled.columnFamilyName
- The name of the column family only without the ":"columnNames
- - The list of columns in the cfName column family
that we want to return
ORtimeRange
- - time range we are interested insection
- region of the file that needs to be read
java.io.IOException
void close() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |