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(DataFileMeta sourceFile,
DataFileMeta targetFile) |
RollingFileWriter<KeyValue,DataFileMeta> |
createRollingChangelogFileWriter(int level) |
RollingFileWriter<KeyValue,DataFileMeta> |
createRollingMergeTreeFileWriter(int level,
FileSource fileSource) |
void |
deleteFile(DataFileMeta file) |
FileIO |
getFileIO() |
RowType |
keyType() |
String |
newChangelogFileName(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(DataFileMeta file)
public void copyFile(DataFileMeta sourceFile, DataFileMeta targetFile) throws IOException
IOException
public FileIO getFileIO()
public String newChangelogFileName(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–2025 The Apache Software Foundation. All rights reserved.