public abstract class DelegatedFileStoreTable extends Object implements FileStoreTable
FileStoreTable
.Modifier and Type | Field and Description |
---|---|
protected FileStoreTable |
wrapped |
Constructor and Description |
---|
DelegatedFileStoreTable(FileStoreTable wrapped) |
Modifier and Type | Method and Description |
---|---|
BranchManager |
branchManager() |
CatalogEnvironment |
catalogEnvironment() |
CoreOptions |
coreOptions() |
void |
createBranch(String branchName)
Create an empty branch.
|
void |
createBranch(String branchName,
String tagName)
Create a branch from given tag.
|
RowKeyExtractor |
createRowKeyExtractor() |
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.
|
void |
deleteTag(String tagName)
Delete a tag by name.
|
boolean |
equals(Object o) |
void |
fastForward(String branchName)
Merge a branch to main branch.
|
FileIO |
fileIO() |
String |
fullName()
Full name of the table, default is database.tableName.
|
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.
|
Path |
location() |
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.
|
TableCommitImpl |
newCommit(String commitUser) |
ExpireSnapshots |
newExpireChangelog() |
ExpireSnapshots |
newExpireSnapshots()
Manually expire snapshots, parameters can be controlled independently of table options.
|
LocalTableQuery |
newLocalTableQuery() |
InnerTableRead |
newRead() |
DataTableScan |
newScan() |
SnapshotReader |
newSnapshotReader() |
StreamDataTableScan |
newStreamScan() |
TableWriteImpl<?> |
newWrite(String commitUser) |
TableWriteImpl<?> |
newWrite(String commitUser,
ManifestCacheFilter manifestFilter) |
Optional<WriteSelector> |
newWriteSelector() |
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.
|
TableSchema |
schema() |
SchemaManager |
schemaManager() |
void |
setManifestCache(SegmentsCache<Path> manifestCache) |
void |
setSnapshotCache(org.apache.paimon.shade.caffeine2.com.github.benmanes.caffeine.cache.Cache<Path,Snapshot> cache) |
Snapshot |
snapshot(long snapshotId)
Get the
Snapshot from snapshot id. |
SnapshotManager |
snapshotManager() |
Optional<Statistics> |
statistics()
Optional statistics of this table.
|
FileStore<?> |
store() |
boolean |
supportStreamingReadOverwrite() |
TagManager |
tagManager() |
String |
uuid()
UUID of the table, metastore can provide the true UUID of this table, default is the full
name.
|
FileStoreTable |
wrapped() |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bucketMode, bucketSpec, comment, copy, copy, copyWithLatestSchema, copyWithoutTimeTravel, options, partitionKeys, primaryKeys, rowType, switchToBranch
newBatchWriteBuilder, newReadBuilder, newStreamWriteBuilder
deleteBranches, deleteTags
protected final FileStoreTable wrapped
public DelegatedFileStoreTable(FileStoreTable wrapped)
public FileStoreTable wrapped()
public String fullName()
Table
public String uuid()
Table
public SnapshotReader newSnapshotReader()
newSnapshotReader
in interface DataTable
public CoreOptions coreOptions()
coreOptions
in interface DataTable
public SnapshotManager snapshotManager()
snapshotManager
in interface DataTable
public SchemaManager schemaManager()
schemaManager
in interface DataTable
public TagManager tagManager()
tagManager
in interface DataTable
public BranchManager branchManager()
branchManager
in interface DataTable
public void setManifestCache(SegmentsCache<Path> manifestCache)
setManifestCache
in interface FileStoreTable
public void setSnapshotCache(org.apache.paimon.shade.caffeine2.com.github.benmanes.caffeine.cache.Cache<Path,Snapshot> cache)
setSnapshotCache
in interface FileStoreTable
public TableSchema schema()
schema
in interface FileStoreTable
public FileStore<?> store()
store
in interface FileStoreTable
public CatalogEnvironment catalogEnvironment()
catalogEnvironment
in interface FileStoreTable
public Optional<Statistics> statistics()
Table
statistics
in interface Table
public OptionalLong latestSnapshotId()
Table
latestSnapshotId
in interface Table
public Snapshot snapshot(long snapshotId)
Table
Snapshot
from snapshot id.public SimpleFileReader<ManifestFileMeta> manifestListReader()
Table
manifestListReader
in interface Table
public SimpleFileReader<ManifestEntry> manifestFileReader()
Table
manifestFileReader
in interface Table
public SimpleFileReader<IndexManifestEntry> indexManifestFileReader()
Table
indexManifestFileReader
in interface Table
public void rollbackTo(long snapshotId)
Table
rollbackTo
in interface Table
public void createTag(String tagName)
Table
public void createTag(String tagName, long fromSnapshotId)
Table
public void createTag(String tagName, java.time.Duration timeRetained)
public void createTag(String tagName, long fromSnapshotId, java.time.Duration timeRetained)
public void replaceTag(String tagName, Long fromSnapshotId, java.time.Duration timeRetained)
Table
replaceTag
in interface Table
public void deleteTag(String tagName)
Table
public void rollbackTo(String tagName)
Table
rollbackTo
in interface Table
public void createBranch(String branchName)
Table
createBranch
in interface Table
public void createBranch(String branchName, String tagName)
Table
createBranch
in interface Table
public void deleteBranch(String branchName)
Table
deleteBranch
in interface Table
public void fastForward(String branchName)
Table
fastForward
in interface Table
public ExpireSnapshots newExpireSnapshots()
Table
newExpireSnapshots
in interface Table
public ExpireSnapshots newExpireChangelog()
newExpireChangelog
in interface Table
public DataTableScan newScan()
newScan
in interface DataTable
newScan
in interface InnerTable
public StreamDataTableScan newStreamScan()
newStreamScan
in interface InnerTable
public InnerTableRead newRead()
newRead
in interface InnerTable
public Optional<WriteSelector> newWriteSelector()
newWriteSelector
in interface InnerTable
public TableWriteImpl<?> newWrite(String commitUser)
newWrite
in interface FileStoreTable
newWrite
in interface InnerTable
public TableWriteImpl<?> newWrite(String commitUser, ManifestCacheFilter manifestFilter)
newWrite
in interface FileStoreTable
public TableCommitImpl newCommit(String commitUser)
newCommit
in interface FileStoreTable
newCommit
in interface InnerTable
public LocalTableQuery newLocalTableQuery()
newLocalTableQuery
in interface FileStoreTable
public boolean supportStreamingReadOverwrite()
supportStreamingReadOverwrite
in interface FileStoreTable
public RowKeyExtractor createRowKeyExtractor()
createRowKeyExtractor
in interface FileStoreTable
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.