@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class LogFile extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LogFile.OperationRecordUpdater
This is an class meant to be an internal Flume API,
and can change at any time.
|
static class |
LogFile.SequentialReader |
Modifier and Type | Field and Description |
---|---|
static byte |
OP_EOF |
static byte |
OP_NOOP |
static byte |
OP_RECORD |
Constructor and Description |
---|
LogFile() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
protected static byte[] |
readDelimitedBuffer(RandomAccessFile fileHandle) |
protected static void |
skipRecord(RandomAccessFile fileHandle,
int offset) |
protected static void |
writeDelimitedBuffer(ByteBuffer output,
ByteBuffer buffer) |
public static final byte OP_RECORD
public static final byte OP_NOOP
public static final byte OP_EOF
protected static void skipRecord(RandomAccessFile fileHandle, int offset) throws IOException
IOException
protected static void writeDelimitedBuffer(ByteBuffer output, ByteBuffer buffer) throws IOException
IOException
protected static byte[] readDelimitedBuffer(RandomAccessFile fileHandle) throws IOException, CorruptEventException
IOException
CorruptEventException
public static void main(String[] args) throws EOFException, IOException, CorruptEventException
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.