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, wait
comment, createBranch, createBranch, createTag, createTag, createTag, createTag, deleteBranch, deleteTag, fastForward, newBatchWriteBuilder, newCommit, newExpireChangelog, newExpireSnapshots, newStreamWriteBuilder, newWrite, newWriteSelector, renameTag, replaceTag, rollbackTo, rollbackTo, statistics
newReadBuilder
deleteBranches, deleteTags, fullName
public static final String READ_OPTIMIZED
public ReadOptimizedTable(FileStoreTable wrapped)
public OptionalLong latestSnapshotId()
Table
latestSnapshotId
in interface ReadonlyTable
latestSnapshotId
in interface Table
public Snapshot snapshot(long snapshotId)
Table
Snapshot
from snapshot id.snapshot
in interface ReadonlyTable
snapshot
in interface Table
public SimpleFileReader<ManifestFileMeta> manifestListReader()
Table
manifestListReader
in interface ReadonlyTable
manifestListReader
in interface Table
public SimpleFileReader<ManifestEntry> manifestFileReader()
Table
manifestFileReader
in interface ReadonlyTable
manifestFileReader
in interface Table
public SimpleFileReader<IndexManifestEntry> indexManifestFileReader()
Table
indexManifestFileReader
in interface ReadonlyTable
indexManifestFileReader
in interface Table
public RowType rowType()
Table
public List<String> partitionKeys()
Table
partitionKeys
in interface ReadonlyTable
partitionKeys
in interface Table
public Map<String,String> options()
Table
options
in interface ReadonlyTable
options
in interface Table
public List<String> primaryKeys()
Table
primaryKeys
in interface Table
public SnapshotReader newSnapshotReader()
newSnapshotReader
in interface DataTable
public DataTableBatchScan newScan()
newScan
in interface DataTable
newScan
in interface InnerTable
public StreamDataTableScan newStreamScan()
newStreamScan
in interface InnerTable
newStreamScan
in interface ReadonlyTable
public CoreOptions coreOptions()
coreOptions
in interface DataTable
public SnapshotManager snapshotManager()
snapshotManager
in interface DataTable
public TagManager tagManager()
tagManager
in interface DataTable
public BranchManager branchManager()
branchManager
in interface DataTable
public DataTable switchToBranch(String branchName)
DataTable
DataTable
with branch identified by branchName
. Note that this method
does not keep dynamic options in current table.switchToBranch
in interface DataTable
public InnerTableRead newRead()
newRead
in interface InnerTable
public Table copy(Map<String,String> dynamicOptions)
Table
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.