public class TargetedDataFileAppender extends Object implements FileAppender
Modifier and Type | Class and Description |
---|---|
class |
TargetedDataFileAppender.WriteBatch |
maxStat, PROPERTY_LOG_WRITE_STAT_WINDOW
Constructor and Description |
---|
TargetedDataFileAppender(Journal journal,
DataFile target)
Construct a Store writer
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isPreallocate() |
void |
setPreallocate(boolean preallocate) |
Location |
storeItem(ByteSequence data,
byte type,
boolean sync) |
Location |
storeItem(ByteSequence data,
byte type,
Runnable onComplete) |
public TargetedDataFileAppender(Journal journal, DataFile target)
public Location storeItem(ByteSequence data, byte type, boolean sync) throws IOException
storeItem
in interface FileAppender
IOException
public Location storeItem(ByteSequence data, byte type, Runnable onComplete) throws IOException
storeItem
in interface FileAppender
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in interface FileAppender
IOException
public boolean isPreallocate()
public void setPreallocate(boolean preallocate)
Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.