public class MergeFileSplitRead extends Object implements SplitRead<KeyValue>
KeyValueFileStore
, this class handle LSM merging and changelog row
kind things, it will force reading fields such as sequence and row_kind.Constructor and Description |
---|
MergeFileSplitRead(CoreOptions options,
TableSchema schema,
RowType keyType,
RowType valueType,
Comparator<InternalRow> keyComparator,
MergeFunctionFactory<KeyValue> mfFactory,
KeyValueFileReaderFactory.Builder readerFactoryBuilder) |
Modifier and Type | Method and Description |
---|---|
RecordReader<KeyValue> |
createMergeReader(BinaryRow partition,
int bucket,
List<DataFileMeta> files,
List<DeletionFile> deletionFiles,
boolean keepDelete) |
RecordReader<KeyValue> |
createNoMergeReader(BinaryRow partition,
int bucket,
List<DataFileMeta> files,
List<DeletionFile> deletionFiles,
boolean onlyFilterKey) |
RecordReader<KeyValue> |
createReader(DataSplit split)
Create a
RecordReader from split. |
UserDefinedSeqComparator |
createUdsComparator() |
MergeFileSplitRead |
forceKeepDelete() |
Comparator<InternalRow> |
keyComparator() |
MergeSorter |
mergeSorter() |
TableSchema |
tableSchema() |
MergeFileSplitRead |
withFilter(Predicate predicate) |
MergeFileSplitRead |
withIOManager(IOManager ioManager) |
MergeFileSplitRead |
withReadKeyType(RowType readKeyType) |
MergeFileSplitRead |
withReadType(RowType readType) |
public MergeFileSplitRead(CoreOptions options, TableSchema schema, RowType keyType, RowType valueType, Comparator<InternalRow> keyComparator, MergeFunctionFactory<KeyValue> mfFactory, KeyValueFileReaderFactory.Builder readerFactoryBuilder)
public Comparator<InternalRow> keyComparator()
public MergeSorter mergeSorter()
public TableSchema tableSchema()
public MergeFileSplitRead withReadKeyType(RowType readKeyType)
public MergeFileSplitRead withReadType(RowType readType)
withReadType
in interface SplitRead<KeyValue>
public MergeFileSplitRead withIOManager(IOManager ioManager)
withIOManager
in interface SplitRead<KeyValue>
public MergeFileSplitRead forceKeepDelete()
forceKeepDelete
in interface SplitRead<KeyValue>
public MergeFileSplitRead withFilter(Predicate predicate)
withFilter
in interface SplitRead<KeyValue>
public RecordReader<KeyValue> createReader(DataSplit split) throws IOException
SplitRead
RecordReader
from split.createReader
in interface SplitRead<KeyValue>
IOException
public RecordReader<KeyValue> createMergeReader(BinaryRow partition, int bucket, List<DataFileMeta> files, @Nullable List<DeletionFile> deletionFiles, boolean keepDelete) throws IOException
IOException
public RecordReader<KeyValue> createNoMergeReader(BinaryRow partition, int bucket, List<DataFileMeta> files, @Nullable List<DeletionFile> deletionFiles, boolean onlyFilterKey) throws IOException
IOException
@Nullable public UserDefinedSeqComparator createUdsComparator()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.