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
LogSource
release
in interface LogSource
DatabaseException
- in subclasses.LogSource.release()
public java.nio.ByteBuffer getBytes(long fileOffset) throws DatabaseException
LogSource
getBytes
in interface LogSource
DatabaseException
LogSource.getBytes(long)
public java.nio.ByteBuffer getBytes(long fileOffset, int numBytes) throws ChecksumException, DatabaseException
LogSource
getBytes
in interface LogSource
ChecksumException
DatabaseException
LogSource.getBytes(long)
public int getLogVersion()
LogSource
getLogVersion
in interface LogSource
Copyright (c) 2004-2012 Oracle. All rights reserved.