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, supportStreamingReadOverwriteclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbucketMode, bucketSpec, comment, getSchemaFieldStats, options, partitionKeys, primaryKeys, rowTypenewBatchWriteBuilder, newReadBuilder, newStreamWriteBuilderdeleteBranches, deleteTagspublic PrivilegedFileStoreTable(FileStoreTable wrapped, PrivilegeChecker privilegeChecker, Identifier identifier)
public SnapshotReader newSnapshotReader()
newSnapshotReader in interface DataTablenewSnapshotReader in class DelegatedFileStoreTablepublic TagManager tagManager()
tagManager in interface DataTabletagManager in class DelegatedFileStoreTablepublic BranchManager branchManager()
branchManager in interface DataTablebranchManager in class DelegatedFileStoreTablepublic FileStore<?> store()
store in interface FileStoreTablestore in class DelegatedFileStoreTablepublic Optional<Statistics> statistics()
Tablestatistics in interface Tablestatistics in class DelegatedFileStoreTablepublic FileStoreTable copy(Map<String,String> dynamicOptions)
Tablepublic FileStoreTable copy(TableSchema newTableSchema)
public void rollbackTo(long snapshotId)
TablerollbackTo in interface TablerollbackTo in class DelegatedFileStoreTablepublic void createTag(String tagName)
TablecreateTag in interface TablecreateTag in class DelegatedFileStoreTablepublic void createTag(String tagName, long fromSnapshotId)
TablecreateTag in interface TablecreateTag in class DelegatedFileStoreTablepublic void createTag(String tagName, java.time.Duration timeRetained)
createTag in interface TablecreateTag in class DelegatedFileStoreTablepublic void createTag(String tagName, long fromSnapshotId, java.time.Duration timeRetained)
createTag in interface TablecreateTag in class DelegatedFileStoreTablepublic void deleteTag(String tagName)
TabledeleteTag in interface TabledeleteTag in class DelegatedFileStoreTablepublic void rollbackTo(String tagName)
TablerollbackTo in interface TablerollbackTo in class DelegatedFileStoreTablepublic void createBranch(String branchName)
TablecreateBranch in interface TablecreateBranch in class DelegatedFileStoreTablepublic void createBranch(String branchName, String tagName)
TablecreateBranch in interface TablecreateBranch in class DelegatedFileStoreTablepublic void deleteBranch(String branchName)
TabledeleteBranch in interface TabledeleteBranch in class DelegatedFileStoreTablepublic void fastForward(String branchName)
TablefastForward in interface TablefastForward in class DelegatedFileStoreTablepublic ExpireSnapshots newExpireSnapshots()
TablenewExpireSnapshots in interface TablenewExpireSnapshots in class DelegatedFileStoreTablepublic ExpireSnapshots newExpireChangelog()
newExpireChangelog in interface TablenewExpireChangelog in class DelegatedFileStoreTablepublic FileStoreTable copyWithoutTimeTravel(Map<String,String> dynamicOptions)
FileStoreTablepublic FileStoreTable copyWithLatestSchema()
FileStoreTablepublic DataTableScan newScan()
newScan in interface DataTablenewScan in interface InnerTablenewScan in class DelegatedFileStoreTablepublic StreamDataTableScan newStreamScan()
newStreamScan in interface InnerTablenewStreamScan in class DelegatedFileStoreTablepublic InnerTableRead newRead()
newRead in interface InnerTablenewRead in class DelegatedFileStoreTablepublic Optional<WriteSelector> newWriteSelector()
newWriteSelector in interface InnerTablenewWriteSelector in class DelegatedFileStoreTablepublic TableWriteImpl<?> newWrite(String commitUser)
newWrite in interface FileStoreTablenewWrite in interface InnerTablenewWrite in class DelegatedFileStoreTablepublic TableWriteImpl<?> newWrite(String commitUser, ManifestCacheFilter manifestFilter)
newWrite in interface FileStoreTablenewWrite in class DelegatedFileStoreTablepublic TableCommitImpl newCommit(String commitUser)
newCommit in interface FileStoreTablenewCommit in interface InnerTablenewCommit in class DelegatedFileStoreTablepublic LocalTableQuery newLocalTableQuery()
newLocalTableQuery in interface FileStoreTablenewLocalTableQuery in class DelegatedFileStoreTablepublic FileStoreTable switchToBranch(String branchName)
FileStoreTableDataTable 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 DelegatedFileStoreTableCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.