|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sleepycat.je.log.FileSource
com.sleepycat.je.log.FileHandleSource
FileHandleSource is a file source built on top of a cached file handle.
| Constructor Summary | |
(package private) |
FileHandleSource(FileHandle fileHandle,
int readBufferSize,
FileManager fileManager)
|
| 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. |
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 |
FileHandleSource(FileHandle fileHandle,
int readBufferSize,
FileManager fileManager)
| Method Detail |
public void release()
throws DatabaseException
LogSource
release in interface LogSourcerelease in class FileSourceDatabaseExceptionLogSource.release()
public ByteBuffer getBytes(long fileOffset)
throws IOException
LogSource
getBytes in interface LogSourceIOExceptionLogSource.getBytes(long)
public ByteBuffer getBytes(long fileOffset,
int numBytes)
throws IOException
LogSource
getBytes in interface LogSourceIOExceptionLogSource.getBytes(long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||