@Public public interface Table extends Serializable
Modifier and Type | Method and Description |
---|---|
Optional<String> |
comment()
Optional comment of this table.
|
Table |
copy(Map<String,String> dynamicOptions)
Copy this table with adding dynamic options.
|
void |
createBranch(String branchName)
Create an empty branch.
|
void |
createBranch(String branchName,
String tagName)
Create a branch from given tag.
|
void |
createTag(String tagName)
Create a tag from latest snapshot.
|
void |
createTag(String tagName,
java.time.Duration timeRetained) |
void |
createTag(String tagName,
long fromSnapshotId)
Create a tag from given snapshot.
|
void |
createTag(String tagName,
long fromSnapshotId,
java.time.Duration timeRetained) |
void |
deleteBranch(String branchName)
Delete a branch by branchName.
|
default void |
deleteBranches(String branchNames)
Delete branches, branches are separated by commas.
|
void |
deleteTag(String tagName)
Delete a tag by name.
|
default void |
deleteTags(String tagStr)
Delete tags, tags are separated by commas.
|
void |
fastForward(String branchName)
Merge a branch to main branch.
|
default String |
fullName() |
SimpleFileReader<IndexManifestEntry> |
indexManifestFileReader()
Reader to read index manifest entry from index manifest file.
|
OptionalLong |
latestSnapshotId()
Get the latest snapshot id for this table, or empty if there are no snapshots.
|
SimpleFileReader<ManifestEntry> |
manifestFileReader()
Reader to read manifest entry from manifest file.
|
SimpleFileReader<ManifestFileMeta> |
manifestListReader()
Reader to read manifest file meta from manifest list file.
|
String |
name()
A name to identify this table.
|
BatchWriteBuilder |
newBatchWriteBuilder()
Returns a new batch write builder.
|
ExpireSnapshots |
newExpireChangelog() |
ExpireSnapshots |
newExpireSnapshots()
Manually expire snapshots, parameters can be controlled independently of table options.
|
ReadBuilder |
newReadBuilder()
Returns a new read builder.
|
StreamWriteBuilder |
newStreamWriteBuilder()
Returns a new stream write builder.
|
Map<String,String> |
options()
Options of this table.
|
List<String> |
partitionKeys()
Partition keys of this table.
|
List<String> |
primaryKeys()
Primary keys of this table.
|
void |
renameTag(String tagName,
String targetTagName) |
void |
replaceTag(String tagName,
Long fromSnapshotId,
java.time.Duration timeRetained)
Replace a tag with new snapshot id and new time retained.
|
void |
rollbackTo(long snapshotId)
Rollback table's state to a specific snapshot.
|
void |
rollbackTo(String tagName)
Rollback table's state to a specific tag.
|
RowType |
rowType()
Returns the row type of this table.
|
Snapshot |
snapshot(long snapshotId)
Get the
Snapshot from snapshot id. |
Optional<Statistics> |
statistics()
Optional statistics of this table.
|
String name()
default String fullName()
RowType rowType()
@Experimental Optional<Statistics> statistics()
@Experimental OptionalLong latestSnapshotId()
@Experimental Snapshot snapshot(long snapshotId)
Snapshot
from snapshot id.@Experimental SimpleFileReader<ManifestFileMeta> manifestListReader()
@Experimental SimpleFileReader<ManifestEntry> manifestFileReader()
@Experimental SimpleFileReader<IndexManifestEntry> indexManifestFileReader()
@Experimental void rollbackTo(long snapshotId)
@Experimental void createTag(String tagName, long fromSnapshotId)
@Experimental void createTag(String tagName, long fromSnapshotId, java.time.Duration timeRetained)
@Experimental void createTag(String tagName)
@Experimental void createTag(String tagName, java.time.Duration timeRetained)
@Experimental void renameTag(String tagName, String targetTagName)
@Experimental void replaceTag(String tagName, Long fromSnapshotId, java.time.Duration timeRetained)
@Experimental void deleteTag(String tagName)
@Experimental default void deleteTags(String tagStr)
@Experimental void rollbackTo(String tagName)
@Experimental void createBranch(String branchName)
@Experimental void createBranch(String branchName, String tagName)
@Experimental void deleteBranch(String branchName)
@Experimental default void deleteBranches(String branchNames)
@Experimental void fastForward(String branchName)
@Experimental ExpireSnapshots newExpireSnapshots()
@Experimental ExpireSnapshots newExpireChangelog()
ReadBuilder newReadBuilder()
BatchWriteBuilder newBatchWriteBuilder()
StreamWriteBuilder newStreamWriteBuilder()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.