public static class ColumnMetadata.IndexMetadata extends Object
| Modifier and Type | Method and Description | 
|---|---|
String | 
asCQLQuery()
Returns a CQL query representing this index. 
 | 
String | 
getIndexClassName()
The name of the class used to implement the custom index, if it is one. 
 | 
ColumnMetadata | 
getIndexedColumn()
Returns the column this index metadata refers to. 
 | 
String | 
getName()
Returns the index name. 
 | 
String | 
getOption(String name)
Return the value for the given option name. 
 | 
boolean | 
isCustomIndex()
Returns whether this index is a custom one. 
 | 
boolean | 
isEntries()
Return whether this index is a 'ENTRIES' index on a map, e.g.,
 CREATE INDEX ON mytable (ENTRIES(mymap)) 
 | 
boolean | 
isFull()
Return whether this index is a 'FULL' index on a frozen collection, e.g.,
 CREATE INDEX ON mytable (FULL(mymap)) 
 | 
boolean | 
isKeys()
Return whether this index is a 'KEYS' index on a map, e.g.,
 CREATE INDEX ON mytable (KEYS(mymap)) 
 | 
public ColumnMetadata getIndexedColumn()
public String getName()
public boolean isCustomIndex()
 If it is indeed a custom index, getIndexClassName() will
 return the name of the class used in Cassandra to implement that
 index.
true if this metadata represents a custom index.public String getIndexClassName()
isCustomIndex() == true, null otherwise.public boolean isKeys()
true if this is a 'KEYS' index on a map.public boolean isFull()
true if this is a 'FULL' index on a frozen collection.public boolean isEntries()
true if this is an 'ENTRIES' index on a map.public String getOption(String name)
name - Option namepublic String asCQLQuery()
Copyright © 2012–2015. All rights reserved.