|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.log.FileSource
class FileSource
FileSource is used as a channel to a log file when faulting in objects from the log.
| Constructor Summary | |
|---|---|
FileSource(RandomAccessFile file,
int readBufferSize,
FileManager fileManager,
long fileNum,
int logVersion)
|
|
| Method Summary | |
|---|---|
ByteBuffer |
getBytes(long fileOffset)
Fill the destination byte array with bytes. |
ByteBuffer |
getBytes(long fileOffset,
int numBytes)
Fill the destination byte array with the requested number of bytes. |
int |
getLogVersion()
Returns the log version of the log entries from this source. |
void |
release()
We're done with this log source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
FileSource(RandomAccessFile file,
int readBufferSize,
FileManager fileManager,
long fileNum,
int logVersion)
| Method Detail |
|---|
public void release()
throws DatabaseException
LogSource
release in interface LogSourceDatabaseException - in subclasses.LogSource.release()
public ByteBuffer getBytes(long fileOffset)
throws DatabaseException
LogSource
getBytes in interface LogSourceDatabaseExceptionLogSource.getBytes(long)
public ByteBuffer getBytes(long fileOffset,
int numBytes)
throws ChecksumException,
DatabaseException
LogSource
getBytes in interface LogSourceChecksumException
DatabaseExceptionLogSource.getBytes(long)public int getLogVersion()
LogSource
getLogVersion in interface LogSource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||