Interface Index
-
- All Superinterfaces:
Metadata
public interface Index extends Metadata
AnIndex
metadata that contains information an underlying index data structure of aTable
.This currently targets only table-specific indexes and not universal indexes. However, it can be extended to cover universal indexes if need be.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
accept(Visitor visitor)
java.lang.String
getIndexType()
Returns the type of the index.java.lang.String
getTableName()
Returns the name of theTable
that owns theindex
.boolean
isSparse()
Checks whether the index is sparse or not.boolean
isUnique()
Checks whether the index is unique.
-
-
-
Method Detail
-
getTableName
@Nonnull java.lang.String getTableName()
Returns the name of theTable
that owns theindex
.- Returns:
- The name of the
Table
that owns theindex
.
-
getIndexType
@Nonnull java.lang.String getIndexType()
Returns the type of the index. An index type could be one of the types defined incom.apple.foundationdb.record.metadata.IndexTypes
.- Returns:
- the type of the index.
-
isUnique
boolean isUnique()
Checks whether the index is unique.- Returns:
True
if the index is unique, otherwiseFalse
.
-
isSparse
boolean isSparse()
Checks whether the index is sparse or not.- Returns:
True
if the index is sparse, otherwiseFalse
.
-
-