public class ReadBuilderImpl extends Object implements ReadBuilder
ReadBuilder.| Constructor and Description |
|---|
ReadBuilderImpl(InnerTable table) |
| Modifier and Type | Method and Description |
|---|---|
ReadBuilder |
dropStats()
Delete stats in scan plan result.
|
boolean |
equals(Object o) |
int |
hashCode() |
TableRead |
newRead()
|
TableScan |
newScan()
Create a
TableScan to perform batch planning. |
StreamTableScan |
newStreamScan()
Create a
TableScan to perform streaming planning. |
RowType |
readType()
Returns read row type.
|
String |
tableName()
A name to identify the table.
|
ReadBuilder |
withBucket(int bucket) |
ReadBuilder |
withBucketFilter(Filter<Integer> bucketFilter)
Push bucket filter.
|
ReadBuilder |
withFilter(Predicate filter)
Push filters, will filter the data as much as possible, but it is not guaranteed that it is a
complete filter.
|
ReadBuilder |
withLimit(int limit)
the row number pushed down.
|
ReadBuilder |
withPartitionFilter(Map<String,String> partitionSpec)
Push partition filter.
|
ReadBuilder |
withProjection(int[] projection)
Apply projection to the reader, if you need nested row pruning, use
ReadBuilder.withReadType(RowType) instead. |
ReadBuilder |
withReadType(RowType readType)
Push read row type to the reader, support nested row pruning.
|
ReadBuilder |
withShard(int indexOfThisSubtask,
int numberOfParallelSubtasks)
Specify the shard to be read, and allocate sharded files to read records.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitwithFilterpublic ReadBuilderImpl(InnerTable table)
public String tableName()
ReadBuildertableName in interface ReadBuilderpublic RowType readType()
ReadBuilderreadType in interface ReadBuilderpublic ReadBuilder withFilter(Predicate filter)
ReadBuilderwithFilter in interface ReadBuilderpublic ReadBuilder withPartitionFilter(Map<String,String> partitionSpec)
ReadBuilderwithPartitionFilter in interface ReadBuilderpublic ReadBuilder withReadType(RowType readType)
ReadBuilderwithReadType in interface ReadBuilderreadType - read row type, can be a pruned type from Table.rowType()public ReadBuilder withProjection(int[] projection)
ReadBuilderReadBuilder.withReadType(RowType) instead.withProjection in interface ReadBuilderpublic ReadBuilder withLimit(int limit)
ReadBuilderwithLimit in interface ReadBuilderpublic ReadBuilder withShard(int indexOfThisSubtask, int numberOfParallelSubtasks)
ReadBuilderReadBuilder.withBucketFilter(Filter).
Reason: Sharding and bucket filtering are different logical mechanisms for selecting subsets of table data. Applying both methods simultaneously introduces conflicting selection criteria.
withShard in interface ReadBuilderpublic ReadBuilder withBucket(int bucket)
withBucket in interface ReadBuilderpublic ReadBuilder withBucketFilter(Filter<Integer> bucketFilter)
ReadBuilderReadBuilder.withShard(int, int).
Reason: Bucket filtering and sharding are different logical mechanisms for selecting subsets of table data. Applying both methods simultaneously introduces conflicting selection criteria.
withBucketFilter in interface ReadBuilderpublic ReadBuilder dropStats()
ReadBuilderdropStats in interface ReadBuilderpublic TableScan newScan()
ReadBuilderTableScan to perform batch planning.newScan in interface ReadBuilderpublic StreamTableScan newStreamScan()
ReadBuilderTableScan to perform streaming planning.newStreamScan in interface ReadBuilderpublic TableRead newRead()
ReadBuildernewRead in interface ReadBuilderCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.