public class PrivilegedFileStoreTable extends DelegatedFileStoreTable
FileStoreTable
with privilege checks.Modifier and Type | Field and Description |
---|---|
protected Identifier |
identifier |
protected PrivilegeChecker |
privilegeChecker |
wrapped
Modifier | Constructor and Description |
---|---|
protected |
PrivilegedFileStoreTable(FileStoreTable wrapped,
PrivilegeChecker privilegeChecker,
Identifier identifier) |
Modifier and Type | Method and Description |
---|---|
BranchManager |
branchManager() |
PrivilegedFileStoreTable |
copy(Map<String,String> dynamicOptions)
Copy this table with adding dynamic options.
|
PrivilegedFileStoreTable |
copy(TableSchema newTableSchema) |
PrivilegedFileStoreTable |
copyWithLatestSchema()
TODO: this method is weird, old options will overwrite new options.
|
PrivilegedFileStoreTable |
copyWithoutTimeTravel(Map<String,String> dynamicOptions)
Doesn't change table schema even when there exists time travel scan 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.
|
void |
deleteTag(String tagName)
Delete a tag by name.
|
boolean |
equals(Object o) |
void |
fastForward(String branchName)
Merge a branch to main branch.
|
OptionalLong |
latestSnapshotId()
Get the latest snapshot id for this table, or empty if there are no snapshots.
|
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 |
rollbackTo(long snapshotId)
Rollback table's state to a specific snapshot.
|
void |
rollbackTo(String tagName)
Rollback table's state to a specific tag.
|
Snapshot |
snapshot(long snapshotId)
Get the
Snapshot from snapshot id. |
SnapshotManager |
snapshotManager() |
Optional<Statistics> |
statistics()
Optional statistics of this table.
|
FileStore<?> |
store() |
PrivilegedFileStoreTable |
switchToBranch(String branchName)
Get
DataTable with branch identified by branchName . |
TagManager |
tagManager() |
static PrivilegedFileStoreTable |
wrap(FileStoreTable table,
PrivilegeChecker privilegeChecker,
Identifier identifier) |
catalogEnvironment, coreOptions, createRowKeyExtractor, fileIO, fullName, indexManifestFileReader, location, manifestFileReader, manifestListReader, name, replaceTag, schema, schemaManager, setManifestCache, setSnapshotCache, supportStreamingReadOverwrite, uuid, wrapped
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bucketMode, bucketSpec, comment, options, partitionKeys, primaryKeys, rowType
newBatchWriteBuilder, newReadBuilder, newStreamWriteBuilder
deleteBranches, deleteTags
protected final PrivilegeChecker privilegeChecker
protected final Identifier identifier
protected PrivilegedFileStoreTable(FileStoreTable wrapped, PrivilegeChecker privilegeChecker, Identifier identifier)
public SnapshotManager snapshotManager()
snapshotManager
in interface DataTable
snapshotManager
in class DelegatedFileStoreTable
public OptionalLong latestSnapshotId()
Table
latestSnapshotId
in interface Table
latestSnapshotId
in class DelegatedFileStoreTable
public Snapshot snapshot(long snapshotId)
Table
Snapshot
from snapshot id.snapshot
in interface Table
snapshot
in class DelegatedFileStoreTable
public SnapshotReader newSnapshotReader()
newSnapshotReader
in interface DataTable
newSnapshotReader
in class DelegatedFileStoreTable
public TagManager tagManager()
tagManager
in interface DataTable
tagManager
in class DelegatedFileStoreTable
public BranchManager branchManager()
branchManager
in interface DataTable
branchManager
in class DelegatedFileStoreTable
public FileStore<?> store()
store
in interface FileStoreTable
store
in class DelegatedFileStoreTable
public Optional<Statistics> statistics()
Table
statistics
in interface Table
statistics
in class DelegatedFileStoreTable
public void rollbackTo(long snapshotId)
Table
rollbackTo
in interface Table
rollbackTo
in class DelegatedFileStoreTable
public void createTag(String tagName)
Table
createTag
in interface Table
createTag
in class DelegatedFileStoreTable
public void createTag(String tagName, long fromSnapshotId)
Table
createTag
in interface Table
createTag
in class DelegatedFileStoreTable
public void createTag(String tagName, java.time.Duration timeRetained)
createTag
in interface Table
createTag
in class DelegatedFileStoreTable
public void renameTag(String tagName, String targetTagName)
renameTag
in interface Table
renameTag
in class DelegatedFileStoreTable
public void createTag(String tagName, long fromSnapshotId, java.time.Duration timeRetained)
createTag
in interface Table
createTag
in class DelegatedFileStoreTable
public void deleteTag(String tagName)
Table
deleteTag
in interface Table
deleteTag
in class DelegatedFileStoreTable
public void rollbackTo(String tagName)
Table
rollbackTo
in interface Table
rollbackTo
in class DelegatedFileStoreTable
public void createBranch(String branchName)
Table
createBranch
in interface Table
createBranch
in class DelegatedFileStoreTable
public void createBranch(String branchName, String tagName)
Table
createBranch
in interface Table
createBranch
in class DelegatedFileStoreTable
public void deleteBranch(String branchName)
Table
deleteBranch
in interface Table
deleteBranch
in class DelegatedFileStoreTable
public void fastForward(String branchName)
Table
fastForward
in interface Table
fastForward
in class DelegatedFileStoreTable
public ExpireSnapshots newExpireSnapshots()
Table
newExpireSnapshots
in interface Table
newExpireSnapshots
in class DelegatedFileStoreTable
public ExpireSnapshots newExpireChangelog()
newExpireChangelog
in interface Table
newExpireChangelog
in class DelegatedFileStoreTable
public DataTableScan newScan()
newScan
in interface DataTable
newScan
in interface InnerTable
newScan
in class DelegatedFileStoreTable
public StreamDataTableScan newStreamScan()
newStreamScan
in interface InnerTable
newStreamScan
in class DelegatedFileStoreTable
public InnerTableRead newRead()
newRead
in interface InnerTable
newRead
in class DelegatedFileStoreTable
public Optional<WriteSelector> newWriteSelector()
newWriteSelector
in interface InnerTable
newWriteSelector
in class DelegatedFileStoreTable
public TableWriteImpl<?> newWrite(String commitUser)
newWrite
in interface FileStoreTable
newWrite
in interface InnerTable
newWrite
in class DelegatedFileStoreTable
public TableWriteImpl<?> newWrite(String commitUser, ManifestCacheFilter manifestFilter)
newWrite
in interface FileStoreTable
newWrite
in class DelegatedFileStoreTable
public TableCommitImpl newCommit(String commitUser)
newCommit
in interface FileStoreTable
newCommit
in interface InnerTable
newCommit
in class DelegatedFileStoreTable
public LocalTableQuery newLocalTableQuery()
newLocalTableQuery
in interface FileStoreTable
newLocalTableQuery
in class DelegatedFileStoreTable
public boolean equals(Object o)
equals
in class DelegatedFileStoreTable
public PrivilegedFileStoreTable copy(Map<String,String> dynamicOptions)
Table
public PrivilegedFileStoreTable copy(TableSchema newTableSchema)
public PrivilegedFileStoreTable copyWithoutTimeTravel(Map<String,String> dynamicOptions)
FileStoreTable
public PrivilegedFileStoreTable copyWithLatestSchema()
FileStoreTable
public PrivilegedFileStoreTable switchToBranch(String branchName)
FileStoreTable
DataTable
with branch identified by branchName
. Note that this method
does not keep dynamic options in current table.public static PrivilegedFileStoreTable wrap(FileStoreTable table, PrivilegeChecker privilegeChecker, Identifier identifier)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.