Interface SupportsIndex

All Superinterfaces:
Table

@Evolving public interface SupportsIndex extends Table
Table methods for working with index
Since:
3.3.0
  • Field Details

  • Method Details

    • createIndex

      void createIndex(String indexName, NamedReference[] columns, Map<NamedReference,Map<String,String>> columnsProperties, Map<String,String> properties) throws org.apache.spark.sql.catalyst.analysis.IndexAlreadyExistsException
      Creates an index.
      Parameters:
      indexName - the name of the index to be created
      columns - the columns on which index to be created
      columnsProperties - the properties of the columns on which index to be created
      properties - the properties of the index to be created
      Throws:
      org.apache.spark.sql.catalyst.analysis.IndexAlreadyExistsException - If the index already exists.
    • dropIndex

      void dropIndex(String indexName) throws org.apache.spark.sql.catalyst.analysis.NoSuchIndexException
      Drops the index with the given name.
      Parameters:
      indexName - the name of the index to be dropped.
      Throws:
      org.apache.spark.sql.catalyst.analysis.NoSuchIndexException - If the index does not exist.
    • indexExists

      boolean indexExists(String indexName)
      Checks whether an index exists in this table.
      Parameters:
      indexName - the name of the index
      Returns:
      true if the index exists, false otherwise
    • listIndexes

      TableIndex[] listIndexes()
      Lists all the indexes in this table.