@InterfaceAudience.Private @InterfaceStability.Unstable public class LogFileV3 extends LogFile
| Modifier and Type | Class and Description |
|---|---|
static class |
LogFileV3.SequentialReader |
LogFile.OperationRecordUpdater| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
| Modifier and Type | Method and Description |
|---|---|
static void |
writeDelimitedTo(com.google.protobuf.GeneratedMessage msg,
File file)
Writes a GeneratedMessage to a temp file, synchronizes it to disk
and then renames the file over file.
|
main, readDelimitedBuffer, skipRecord, writeDelimitedBufferpublic static void writeDelimitedTo(com.google.protobuf.GeneratedMessage msg,
File file)
throws IOException
msg - GeneratedMessage to write to the filefile - destination fileIOException - if a write error occurs or the File.renameTo
method returns false meaning the file could not be overwritten.Copyright © 2009-2022 Apache Software Foundation. All Rights Reserved.