public class ReadBuilderImpl extends Object implements ReadBuilder
ReadBuilder.| Constructor and Description |
|---|
ReadBuilderImpl(InnerTable table) |
| Modifier and Type | Method and Description |
|---|---|
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, projected by
ReadBuilder.withProjection(int[]). |
String |
tableName()
A name to identify the table.
|
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)
Push nested projection.
|
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, waitwithFilter, withProjectionpublic ReadBuilderImpl(InnerTable table)
public String tableName()
ReadBuildertableName in interface ReadBuilderpublic RowType readType()
ReadBuilderReadBuilder.withProjection(int[]).readType in interface ReadBuilderpublic ReadBuilder withFilter(Predicate filter)
ReadBuilderwithFilter in interface ReadBuilderpublic ReadBuilder withPartitionFilter(Map<String,String> partitionSpec)
ReadBuilderwithPartitionFilter in interface ReadBuilderpublic ReadBuilder withProjection(int[][] projection)
ReadBuilder[[0, 2, 1], ...] specifies to include the 2nd
field of the 3rd field of the 1st field in the top-level row.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 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 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–2024 The Apache Software Foundation. All rights reserved.