public class ReadOptimizedTable extends Object implements DataTable, ReadonlyTable
Table optimized for reading by avoiding merging files.
| Modifier and Type | Field and Description |
|---|---|
static String |
READ_OPTIMIZED |
| Constructor and Description |
|---|
ReadOptimizedTable(FileStoreTable wrapped) |
| Modifier and Type | Method and Description |
|---|---|
BranchManager |
branchManager() |
Table |
copy(Map<String,String> dynamicOptions)
Copy this table with adding dynamic options.
|
CoreOptions |
coreOptions() |
FileIO |
fileIO() |
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.
|
InnerTableRead |
newRead() |
DataTableBatchScan |
newScan() |
SnapshotReader |
newSnapshotReader() |
StreamDataTableScan |
newStreamScan() |
Map<String,String> |
options()
Options of this table.
|
List<String> |
partitionKeys()
Partition keys of this table.
|
List<String> |
primaryKeys()
Primary keys of this table.
|
RowType |
rowType()
Returns the row type of this table.
|
Snapshot |
snapshot(long snapshotId)
Get the
Snapshot from snapshot id. |
SnapshotManager |
snapshotManager() |
DataTable |
switchToBranch(String branchName)
Get
DataTable with branch identified by branchName. |
TagManager |
tagManager() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomment, createBranch, createBranch, createTag, createTag, createTag, createTag, deleteBranch, deleteTag, fastForward, newBatchWriteBuilder, newCommit, newExpireChangelog, newExpireSnapshots, newStreamWriteBuilder, newWrite, newWriteSelector, rollbackTo, rollbackTo, statisticsnewReadBuilderdeleteBranches, deleteTags, fullNamepublic static final String READ_OPTIMIZED
public ReadOptimizedTable(FileStoreTable wrapped)
public OptionalLong latestSnapshotId()
TablelatestSnapshotId in interface ReadonlyTablelatestSnapshotId in interface Tablepublic Snapshot snapshot(long snapshotId)
TableSnapshot from snapshot id.snapshot in interface ReadonlyTablesnapshot in interface Tablepublic SimpleFileReader<ManifestFileMeta> manifestListReader()
TablemanifestListReader in interface ReadonlyTablemanifestListReader in interface Tablepublic SimpleFileReader<ManifestEntry> manifestFileReader()
TablemanifestFileReader in interface ReadonlyTablemanifestFileReader in interface Tablepublic SimpleFileReader<IndexManifestEntry> indexManifestFileReader()
TableindexManifestFileReader in interface ReadonlyTableindexManifestFileReader in interface Tablepublic RowType rowType()
Tablepublic List<String> partitionKeys()
TablepartitionKeys in interface ReadonlyTablepartitionKeys in interface Tablepublic Map<String,String> options()
Tableoptions in interface ReadonlyTableoptions in interface Tablepublic List<String> primaryKeys()
TableprimaryKeys in interface Tablepublic SnapshotReader newSnapshotReader()
newSnapshotReader in interface DataTablepublic DataTableBatchScan newScan()
newScan in interface DataTablenewScan in interface InnerTablepublic StreamDataTableScan newStreamScan()
newStreamScan in interface InnerTablenewStreamScan in interface ReadonlyTablepublic CoreOptions coreOptions()
coreOptions in interface DataTablepublic SnapshotManager snapshotManager()
snapshotManager in interface DataTablepublic TagManager tagManager()
tagManager in interface DataTablepublic BranchManager branchManager()
branchManager in interface DataTablepublic DataTable switchToBranch(String branchName)
DataTableDataTable with branch identified by branchName. Note that this method
does not keep dynamic options in current table.switchToBranch in interface DataTablepublic InnerTableRead newRead()
newRead in interface InnerTablepublic Table copy(Map<String,String> dynamicOptions)
TableCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.