Modifier and Type | Field and Description |
---|---|
static String |
PROP_TYPE
A reserved property to specify the index type.
|
Modifier and Type | Method and Description |
---|---|
void |
createIndex(String indexName,
NamedReference[] columns,
java.util.Map<NamedReference,java.util.Map<String,String>> columnsProperties,
java.util.Map<String,String> properties)
Creates an index.
|
void |
dropIndex(String indexName)
Drops the index with the given name.
|
boolean |
indexExists(String indexName)
Checks whether an index exists in this table.
|
TableIndex[] |
listIndexes()
Lists all the indexes in this table.
|
capabilities, columns, name, partitioning, properties, schema
static final String PROP_TYPE
void createIndex(String indexName, NamedReference[] columns, java.util.Map<NamedReference,java.util.Map<String,String>> columnsProperties, java.util.Map<String,String> properties) throws org.apache.spark.sql.catalyst.analysis.IndexAlreadyExistsException
indexName
- the name of the index to be createdcolumns
- the columns on which index to be createdcolumnsProperties
- the properties of the columns on which index to be createdproperties
- the properties of the index to be createdorg.apache.spark.sql.catalyst.analysis.IndexAlreadyExistsException
- If the index already exists.void dropIndex(String indexName) throws org.apache.spark.sql.catalyst.analysis.NoSuchIndexException
indexName
- the name of the index to be dropped.org.apache.spark.sql.catalyst.analysis.NoSuchIndexException
- If the index does not exist.boolean indexExists(String indexName)
indexName
- the name of the indexTableIndex[] listIndexes()