public class KeyValueFileWriterFactory extends Object
FileWriter
s for writing KeyValue
files.Modifier and Type | Class and Description |
---|---|
static class |
KeyValueFileWriterFactory.Builder
Builder of
KeyValueFileWriterFactory . |
Modifier and Type | Method and Description |
---|---|
static KeyValueFileWriterFactory.Builder |
builder(FileIO fileIO,
long schemaId,
RowType keyType,
RowType valueType,
FileFormat fileFormat,
Map<String,FileStorePathFactory> format2PathFactory,
long suggestedFileSize) |
void |
copyFile(String sourceFileName,
String targetFileName,
int level) |
RollingFileWriter<KeyValue,DataFileMeta> |
createRollingChangelogFileWriter(int level) |
RollingFileWriter<KeyValue,DataFileMeta> |
createRollingMergeTreeFileWriter(int level,
FileSource fileSource) |
void |
deleteFile(String filename,
int level) |
FileIO |
getFileIO() |
RowType |
keyType() |
Path |
newChangelogPath(int level) |
DataFilePathFactory |
pathFactory(int level) |
RowType |
valueType() |
public RowType keyType()
public RowType valueType()
@VisibleForTesting public DataFilePathFactory pathFactory(int level)
public RollingFileWriter<KeyValue,DataFileMeta> createRollingMergeTreeFileWriter(int level, FileSource fileSource)
public RollingFileWriter<KeyValue,DataFileMeta> createRollingChangelogFileWriter(int level)
public void deleteFile(String filename, int level)
public void copyFile(String sourceFileName, String targetFileName, int level) throws IOException
IOException
public FileIO getFileIO()
public Path newChangelogPath(int level)
public static KeyValueFileWriterFactory.Builder builder(FileIO fileIO, long schemaId, RowType keyType, RowType valueType, FileFormat fileFormat, Map<String,FileStorePathFactory> format2PathFactory, long suggestedFileSize)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.