public class DataSplit extends Object implements Split
Modifier and Type | Class and Description |
---|---|
static class |
DataSplit.Builder
Builder for
DataSplit . |
Constructor and Description |
---|
DataSplit() |
public long snapshotId()
public BinaryRow partition()
public int bucket()
public String bucketPath()
public List<DataFileMeta> beforeFiles()
public Optional<List<DeletionFile>> beforeDeletionFiles()
public List<DataFileMeta> dataFiles()
public Optional<List<DeletionFile>> deletionFiles()
Split
If there is no corresponding deletion file, the element will be null.
deletionFiles
in interface Split
public boolean isStreaming()
public boolean rawConvertible()
public OptionalLong latestFileCreationEpochMillis()
public OptionalLong earliestFileCreationEpochMillis()
public boolean mergedRowCountAvailable()
public long mergedRowCount()
public long partialMergedRowCount()
1. raw file and no deletion file.
2. raw file + deletion file with cardinality.
public Optional<List<RawFile>> convertToRawFiles()
Split
Optional
wrapping
a list of RawFile
s to be read without merging. Otherwise, returns Optional.empty()
.convertToRawFiles
in interface Split
@Nullable public Optional<List<IndexFile>> indexFiles()
Split
If there is no corresponding index file, the element will be null.
indexFiles
in interface Split
public void serialize(DataOutputView out) throws IOException
IOException
public static DataSplit deserialize(DataInputView in) throws IOException
IOException
public static DataSplit.Builder builder()
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.