org.springframework.data.mongodb.core.index
Class IndexInfo
java.lang.Object
org.springframework.data.mongodb.core.index.IndexInfo
public class IndexInfo
- extends Object
IndexInfo
public IndexInfo(List<IndexField> indexFields,
String name,
boolean unique,
boolean dropDuplicates,
boolean sparse)
getIndexFields
public List<IndexField> getIndexFields()
- Returns the individual index fields of the index.
- Returns:
isIndexForFields
public boolean isIndexForFields(Collection<String> keys)
- Returns whether the index is covering exactly the fields given independently of the order.
- Parameters:
keys
- must not be null.
- Returns:
getName
public String getName()
isUnique
public boolean isUnique()
isDropDuplicates
public boolean isDropDuplicates()
isSparse
public boolean isSparse()
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.