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 FileAppenderIOExceptionpublic Location storeItem(ByteSequence data, byte type, Runnable onComplete) throws IOException
storeItem in interface FileAppenderIOExceptionpublic void close() throws IOException
close in interface AutoCloseableclose in interface FileAppenderIOExceptionpublic boolean isPreallocate()
public void setPreallocate(boolean preallocate)
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.