Class GridCacheQueryManager.CacheSqlIndexMetadata
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.query.GridCacheQueryManager.CacheSqlIndexMetadata
-
- All Implemented Interfaces:
Externalizable,Serializable,GridCacheSqlIndexMetadata
- Enclosing class:
- GridCacheQueryManager<K,V>
public static class GridCacheQueryManager.CacheSqlIndexMetadata extends Object implements GridCacheSqlIndexMetadata
Cache metadata index.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheSqlIndexMetadata()Required byExternalizable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandescending(String field)Gets order of the index for each indexed field.Collection<String>descendings()Collection<String>fields()Gets names of fields indexed by this index.Stringname()Gets name of the index.voidreadExternal(ObjectInput in)StringtoString()booleanunique()Gets whether this is a unique index.voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
CacheSqlIndexMetadata
public CacheSqlIndexMetadata()
Required byExternalizable.
-
-
Method Detail
-
name
public String name()
Gets name of the index.- Specified by:
namein interfaceGridCacheSqlIndexMetadata- Returns:
- Index name.
-
fields
public Collection<String> fields()
Gets names of fields indexed by this index.- Specified by:
fieldsin interfaceGridCacheSqlIndexMetadata- Returns:
- Indexed fields names.
-
descending
public boolean descending(String field)
Gets order of the index for each indexed field.- Specified by:
descendingin interfaceGridCacheSqlIndexMetadata- Parameters:
field- Field name.- Returns:
Trueif given field is indexed in descending order.
-
descendings
public Collection<String> descendings()
- Specified by:
descendingsin interfaceGridCacheSqlIndexMetadata- Returns:
- Descendings.
-
unique
public boolean unique()
Gets whether this is a unique index.- Specified by:
uniquein interfaceGridCacheSqlIndexMetadata- Returns:
Trueif index is unique,falseotherwise.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-