public interface TableScan extends Scan<TableScan,FileScanTask,CombinedScanTask>
| Modifier and Type | Method and Description |
|---|---|
default TableScan |
appendsAfter(long fromSnapshotId)
Create a new
TableScan to read appended data from fromSnapshotId exclusive to
the current snapshot inclusive. |
default TableScan |
appendsBetween(long fromSnapshotId,
long toSnapshotId)
Create a new
TableScan to read appended data from fromSnapshotId exclusive to
toSnapshotId inclusive. |
TableScan |
asOfTime(long timestampMillis)
Create a new
TableScan from this scan's configuration that will use the most recent
snapshot as of the given time in milliseconds. |
Expression |
filter()
Returns this scan's filter
Expression. |
boolean |
isCaseSensitive()
Returns whether this scan should apply column name case sensitiveness as per
Scan.caseSensitive(boolean). |
default TableScan |
select(java.lang.String... columns)
Create a new
TableScan from this that will read the given data columns. |
Snapshot |
snapshot()
Returns the
Snapshot that will be used by this scan. |
Table |
table()
Returns the
Table from which this scan loads data. |
TableScan |
useSnapshot(long snapshotId)
Create a new
TableScan from this scan's configuration that will use the given snapshot
by ID. |
caseSensitive, filter, ignoreResiduals, includeColumnStats, option, planFiles, planTasks, planWith, project, schema, select, splitLookback, splitOpenFileCost, targetSplitSizeTableScan useSnapshot(long snapshotId)
TableScan from this scan's configuration that will use the given snapshot
by ID.snapshotId - a snapshot IDjava.lang.IllegalArgumentException - if the snapshot cannot be foundTableScan asOfTime(long timestampMillis)
TableScan from this scan's configuration that will use the most recent
snapshot as of the given time in milliseconds.timestampMillis - a timestamp in milliseconds.java.lang.IllegalArgumentException - if the snapshot cannot be founddefault TableScan select(java.lang.String... columns)
TableScan from this that will read the given data columns. This produces
an expected schema that includes all fields that are either selected or used by this scan's
filter expression.columns - column names from the table's schemaExpression filter()
Expression.default TableScan appendsBetween(long fromSnapshotId, long toSnapshotId)
TableScan to read appended data from fromSnapshotId exclusive to
toSnapshotId inclusive.fromSnapshotId - the last snapshot id read by the user, exclusivetoSnapshotId - read append data up to this snapshot idfromSnapshotId exclusive and up to
toSnapshotId inclusivedefault TableScan appendsAfter(long fromSnapshotId)
TableScan to read appended data from fromSnapshotId exclusive to
the current snapshot inclusive.fromSnapshotId - - the last snapshot id read by the user, exclusivefromSnapshotId exclusive and up to
current snapshot inclusiveSnapshot snapshot()
Snapshot that will be used by this scan.
If the snapshot was not configured using asOfTime(long) or useSnapshot(long), the current table snapshot will be used.
boolean isCaseSensitive()
Scan.caseSensitive(boolean).