public class PrivilegedFileStoreTable extends DelegatedFileStoreTable
FileStoreTable
with privilege checks.wrapped
Constructor and Description |
---|
PrivilegedFileStoreTable(FileStoreTable wrapped,
PrivilegeChecker privilegeChecker,
Identifier identifier) |
Modifier and Type | Method and Description |
---|---|
BranchManager |
branchManager() |
FileStoreTable |
copy(Map<String,String> dynamicOptions)
Copy this table with adding dynamic options.
|
FileStoreTable |
copy(TableSchema newTableSchema) |
FileStoreTable |
copyWithLatestSchema()
TODO: this method is weird, old options will overwrite new options.
|
FileStoreTable |
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.
|
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 |
rollbackTo(long snapshotId)
Rollback table's state to a specific snapshot.
|
void |
rollbackTo(String tagName)
Rollback table's state to a specific tag.
|
Optional<Statistics> |
statistics()
Optional statistics of this table.
|
FileStore<?> |
store() |
FileStoreTable |
switchToBranch(String branchName)
Get
DataTable with branch identified by branchName . |
TagManager |
tagManager() |
catalogEnvironment, coreOptions, createRowKeyExtractor, fileIO, fullName, indexManifestFileReader, latestSnapshotId, location, manifestFileReader, manifestListReader, name, schema, setManifestCache, snapshot, snapshotManager, supportStreamingReadOverwrite
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bucketMode, bucketSpec, comment, getSchemaFieldStats, options, partitionKeys, primaryKeys, rowType
newBatchWriteBuilder, newReadBuilder, newStreamWriteBuilder
deleteBranches, deleteTags
public PrivilegedFileStoreTable(FileStoreTable wrapped, PrivilegeChecker privilegeChecker, Identifier identifier)
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 FileStoreTable copy(Map<String,String> dynamicOptions)
Table
public FileStoreTable copy(TableSchema newTableSchema)
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 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 FileStoreTable copyWithoutTimeTravel(Map<String,String> dynamicOptions)
FileStoreTable
public FileStoreTable copyWithLatestSchema()
FileStoreTable
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 FileStoreTable switchToBranch(String branchName)
FileStoreTable
DataTable
with branch identified by branchName
. Note that this method
does not keep dynamic options in current table.public boolean equals(Object o)
equals
in class DelegatedFileStoreTable
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.