public abstract class AppendOnlyFileStoreWrite extends MemoryFileStoreWrite<InternalRow> implements BundleFileStoreWriter
AbstractFileStoreWrite.WriterContainer<T>FileStoreWrite.State<T>cacheManager, optionscompactionMetrics, ioManager, isStreamingMode, snapshotManager, tableName, writers| Constructor and Description |
|---|
AppendOnlyFileStoreWrite(FileIO fileIO,
RawFileSplitRead read,
long schemaId,
RowType rowType,
RowType partitionType,
FileStorePathFactory pathFactory,
SnapshotManager snapshotManager,
FileStoreScan scan,
CoreOptions options,
DeletionVectorsMaintainer.Factory dvMaintainerFactory,
String tableName) |
| Modifier and Type | Method and Description |
|---|---|
List<DataFileMeta> |
compactRewrite(BinaryRow partition,
int bucket,
java.util.function.Function<String,DeletionVector> dvFactory,
List<DataFileMeta> toCompact) |
protected RecordWriter<InternalRow> |
createWriter(BinaryRow partition,
int bucket,
List<DataFileMeta> restoredFiles,
long restoredMaxSeqNumber,
CommitIncrement restoreIncrement,
ExecutorService compactExecutor,
DeletionVectorsMaintainer dvMaintainer) |
protected void |
forceBufferSpill() |
protected abstract CompactManager |
getCompactManager(BinaryRow partition,
int bucket,
List<DataFileMeta> restoredFiles,
ExecutorService compactExecutor,
DeletionVectorsMaintainer dvMaintainer) |
void |
writeBundle(BinaryRow partition,
int bucket,
BundleRecords bundle)
Write the batch data to the store according to the partition and bucket.
|
close, notifyNewWriter, prepareCommit, withMemoryPoolFactory, withMetricRegistrycheckpoint, compact, compactionMetrics, createConflictAwareWriterCleanChecker, createNoConflictAwareWriterCleanChecker, createWriterCleanChecker, createWriterContainer, getActiveBuckets, getCompactExecutor, getDefaultBucketNum, getWriterWrapper, notifyNewFiles, restore, withCompactExecutor, withExecutionMode, withIgnoreNumBucketCheck, withIgnorePreviousFiles, withInsertOnly, withIOManager, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, compact, notifyNewFiles, prepareCommit, withCompactExecutor, withExecutionMode, withIgnoreNumBucketCheck, withIgnorePreviousFiles, withInsertOnly, withIOManager, withMemoryPool, withMemoryPoolFactory, withMetricRegistry, writecheckpoint, restorepublic AppendOnlyFileStoreWrite(FileIO fileIO, RawFileSplitRead read, long schemaId, RowType rowType, RowType partitionType, FileStorePathFactory pathFactory, SnapshotManager snapshotManager, FileStoreScan scan, CoreOptions options, @Nullable DeletionVectorsMaintainer.Factory dvMaintainerFactory, String tableName)
protected RecordWriter<InternalRow> createWriter(BinaryRow partition, int bucket, List<DataFileMeta> restoredFiles, long restoredMaxSeqNumber, @Nullable CommitIncrement restoreIncrement, ExecutorService compactExecutor, @Nullable DeletionVectorsMaintainer dvMaintainer)
createWriter in class AbstractFileStoreWrite<InternalRow>protected abstract CompactManager getCompactManager(BinaryRow partition, int bucket, List<DataFileMeta> restoredFiles, ExecutorService compactExecutor, @Nullable DeletionVectorsMaintainer dvMaintainer)
public List<DataFileMeta> compactRewrite(BinaryRow partition, int bucket, @Nullable java.util.function.Function<String,DeletionVector> dvFactory, List<DataFileMeta> toCompact) throws Exception
Exceptionprotected void forceBufferSpill()
throws Exception
forceBufferSpill in class AbstractFileStoreWrite<InternalRow>Exceptionpublic void writeBundle(BinaryRow partition, int bucket, BundleRecords bundle) throws Exception
BundleFileStoreWriterwriteBundle in interface BundleFileStoreWriterpartition - the partition of the databucket - the bucket id of the databundle - the given dataException - the thrown exception when writing the recordCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.