public class ChecksummedSequentialWriter extends SequentialWriter
SequentialWriter.BufferedFileWriterMark
buffer, bufferOffset, current, isDirty, lastFlushOffset, out, runPostFlush, stream, syncNeeded, validBufferBytes
Constructor and Description |
---|
ChecksummedSequentialWriter(java.io.File file,
int bufferSize,
java.io.File crcPath) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
void |
close() |
protected void |
flushData()
Override this method instead of overriding flush()
|
void |
writeFullChecksum(Descriptor descriptor) |
flush, flushInternal, getFilePointer, getLastFlushOffset, getOnDiskFilePointer, getPath, isOpen, length, mark, open, open, open, open, reBuffer, resetAndTruncate, resetBuffer, setPostFlushListener, sync, syncDataOnlyInternal, syncInternal, truncate, write, write, write, write
public ChecksummedSequentialWriter(java.io.File file, int bufferSize, java.io.File crcPath)
protected void flushData()
SequentialWriter
flushData
in class SequentialWriter
public void writeFullChecksum(Descriptor descriptor)
writeFullChecksum
in class SequentialWriter
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
close
in class SequentialWriter
public void abort()
abort
in class SequentialWriter
Copyright © 2019 The Apache Software Foundation