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, wait
comment, createBranch, createBranch, createTag, createTag, createTag, createTag, deleteBranch, deleteTag, fastForward, indexManifestFileReader, latestSnapshotId, manifestFileReader, manifestListReader, newBatchWriteBuilder, newCommit, newExpireChangelog, newExpireSnapshots, newStreamScan, newStreamWriteBuilder, newWrite, newWriteSelector, options, partitionKeys, renameTag, replaceTag, rollbackTo, rollbackTo, snapshot, statistics
newReadBuilder
deleteBranches, deleteTags, fullName, uuid
public static final String ALL_TABLE_OPTIONS
public RowType rowType()
Table
public List<String> primaryKeys()
Table
primaryKeys
in interface Table
public InnerTableScan newScan()
newScan
in interface InnerTable
public InnerTableRead newRead()
newRead
in interface InnerTable
public Table copy(Map<String,String> dynamicOptions)
Table
protected static Iterator<InternalRow> toRow(Map<String,Map<String,Map<String,String>>> option)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.