public class AllTableOptionsTable extends Object implements ReadonlyTable
For example:
If we select * from sys.all_table_options, we will get
databasename tablename key value
default test0 a b
my_db test1 c d
... ... ... ...
We can write sql to fetch the information we need.
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_TABLE_OPTIONS |
| Constructor and Description |
|---|
AllTableOptionsTable(FileIO fileIO,
Map<String,Map<String,Path>> allTablePaths) |
| Modifier and Type | Method and Description |
|---|---|
Table |
copy(Map<String,String> dynamicOptions)
Copy this table with adding dynamic options.
|
String |
name()
A name to identify this table.
|
InnerTableRead |
newRead() |
InnerTableScan |
newScan() |
protected static Map<String,Map<String,Map<String,String>>> |
options(FileIO fileIO,
Map<String,Map<String,Path>> allTablePaths) |
List<String> |
primaryKeys()
Primary keys of this table.
|
RowType |
rowType()
Returns the row type of this table.
|
protected static Iterator<InternalRow> |
toRow(Map<String,Map<String,Map<String,String>>> option) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomment, createBranch, createBranch, createTag, createTag, createTag, createTag, deleteBranch, deleteTag, fastForward, indexManifestFileReader, latestSnapshotId, manifestFileReader, manifestListReader, newBatchWriteBuilder, newCommit, newExpireChangelog, newExpireSnapshots, newStreamScan, newStreamWriteBuilder, newWrite, newWriteSelector, options, partitionKeys, rollbackTo, rollbackTo, snapshot, statisticsnewReadBuilderdeleteBranches, deleteTags, fullNamepublic static final String ALL_TABLE_OPTIONS
public RowType rowType()
Tablepublic List<String> primaryKeys()
TableprimaryKeys in interface Tablepublic InnerTableScan newScan()
newScan in interface InnerTablepublic InnerTableRead newRead()
newRead in interface InnerTablepublic Table copy(Map<String,String> dynamicOptions)
Tableprotected static Iterator<InternalRow> toRow(Map<String,Map<String,Map<String,String>>> option)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.