public interface ReadonlyTable extends InnerTable
| Modifier and Type | Method and Description |
|---|---|
default Optional<String> |
comment()
Optional comment of this table.
|
default void |
createBranch(String branchName)
Create an empty branch.
|
default void |
createBranch(String branchName,
String tagName)
Create a branch from given tag.
|
default void |
createTag(String tagName)
Create a tag from latest snapshot.
|
default void |
createTag(String tagName,
java.time.Duration timeRetained) |
default void |
createTag(String tagName,
long fromSnapshotId)
Create a tag from given snapshot.
|
default void |
createTag(String tagName,
long fromSnapshotId,
java.time.Duration timeRetained) |
default void |
deleteBranch(String branchName)
Delete a branch by branchName.
|
default void |
deleteTag(String tagName)
Delete a tag by name.
|
default void |
fastForward(String branchName)
Merge a branch to main branch.
|
default SimpleFileReader<IndexManifestEntry> |
indexManifestFileReader()
Reader to read index manifest entry from index manifest file.
|
default Optional<Snapshot> |
latestSnapshot()
Get the latest snapshot for this table, or empty if there are no snapshots.
|
default SimpleFileReader<ManifestEntry> |
manifestFileReader()
Reader to read manifest entry from manifest file.
|
default SimpleFileReader<ManifestFileMeta> |
manifestListReader()
Reader to read manifest file meta from manifest list file.
|
default BatchWriteBuilder |
newBatchWriteBuilder()
Returns a new batch write builder.
|
default InnerTableCommit |
newCommit(String commitUser) |
default ExpireSnapshots |
newExpireChangelog() |
default ExpireSnapshots |
newExpireSnapshots()
Manually expire snapshots, parameters can be controlled independently of table options.
|
default StreamDataTableScan |
newStreamScan() |
default StreamWriteBuilder |
newStreamWriteBuilder()
Returns a new stream write builder.
|
default InnerTableWrite |
newWrite(String commitUser) |
default Optional<WriteSelector> |
newWriteSelector() |
default Map<String,String> |
options()
Options of this table.
|
default List<String> |
partitionKeys()
Partition keys of this table.
|
default void |
renameTag(String tagName,
String targetTagName) |
default void |
replaceTag(String tagName,
Long fromSnapshotId,
java.time.Duration timeRetained)
Replace a tag with new snapshot id and new time retained.
|
default void |
rollbackTo(long snapshotId)
Rollback table's state to a specific snapshot.
|
default void |
rollbackTo(String tagName)
Rollback table's state to a specific tag.
|
default Snapshot |
snapshot(long snapshotId)
Get the
Snapshot from snapshot id. |
default Optional<Statistics> |
statistics()
Optional statistics of this table.
|
newRead, newReadBuilder, newScancopy, deleteBranches, deleteTags, fileIO, fullName, name, primaryKeys, rowType, uuiddefault List<String> partitionKeys()
TablepartitionKeys in interface Tabledefault Map<String,String> options()
Tabledefault Optional<String> comment()
Tabledefault Optional<Statistics> statistics()
Tablestatistics in interface Tabledefault BatchWriteBuilder newBatchWriteBuilder()
TablenewBatchWriteBuilder in interface InnerTablenewBatchWriteBuilder in interface Tabledefault StreamWriteBuilder newStreamWriteBuilder()
TablenewStreamWriteBuilder in interface InnerTablenewStreamWriteBuilder in interface Tabledefault Optional<WriteSelector> newWriteSelector()
newWriteSelector in interface InnerTabledefault InnerTableWrite newWrite(String commitUser)
newWrite in interface InnerTabledefault InnerTableCommit newCommit(String commitUser)
newCommit in interface InnerTabledefault StreamDataTableScan newStreamScan()
newStreamScan in interface InnerTabledefault Optional<Snapshot> latestSnapshot()
TablelatestSnapshot in interface Tabledefault Snapshot snapshot(long snapshotId)
TableSnapshot from snapshot id.default SimpleFileReader<ManifestFileMeta> manifestListReader()
TablemanifestListReader in interface Tabledefault SimpleFileReader<ManifestEntry> manifestFileReader()
TablemanifestFileReader in interface Tabledefault SimpleFileReader<IndexManifestEntry> indexManifestFileReader()
TableindexManifestFileReader in interface Tabledefault void rollbackTo(long snapshotId)
TablerollbackTo in interface Tabledefault void createTag(String tagName, long fromSnapshotId)
Tabledefault void createTag(String tagName, long fromSnapshotId, java.time.Duration timeRetained)
default void createTag(String tagName)
Tabledefault void createTag(String tagName, java.time.Duration timeRetained)
default void replaceTag(String tagName, Long fromSnapshotId, java.time.Duration timeRetained)
TablereplaceTag in interface Tabledefault void deleteTag(String tagName)
Tabledefault void rollbackTo(String tagName)
TablerollbackTo in interface Tabledefault void createBranch(String branchName)
TablecreateBranch in interface Tabledefault void createBranch(String branchName, String tagName)
TablecreateBranch in interface Tabledefault void deleteBranch(String branchName)
TabledeleteBranch in interface Tabledefault void fastForward(String branchName)
TablefastForward in interface Tabledefault ExpireSnapshots newExpireSnapshots()
TablenewExpireSnapshots in interface Tabledefault ExpireSnapshots newExpireChangelog()
newExpireChangelog in interface TableCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.