class FileSource extends java.lang.Object implements LogSource
| Constructor and Description |
|---|
FileSource(java.io.RandomAccessFile file,
int readBufferSize,
FileManager fileManager,
long fileNum,
int logVersion) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getBytes(long fileOffset)
Fill the destination byte array with bytes.
|
java.nio.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.
|
FileSource(java.io.RandomAccessFile file,
int readBufferSize,
FileManager fileManager,
long fileNum,
int logVersion)
public void release()
throws DatabaseException
LogSourcerelease in interface LogSourceDatabaseException - in subclasses.LogSource.release()public java.nio.ByteBuffer getBytes(long fileOffset)
throws DatabaseException
LogSourcegetBytes in interface LogSourceDatabaseExceptionLogSource.getBytes(long)public java.nio.ByteBuffer getBytes(long fileOffset,
int numBytes)
throws ChecksumException,
DatabaseException
LogSourcegetBytes in interface LogSourceChecksumExceptionDatabaseExceptionLogSource.getBytes(long)public int getLogVersion()
LogSourcegetLogVersion in interface LogSourceCopyright (c) 2004-2012 Oracle. All rights reserved.