Spring Data MongoDB

org.springframework.data.mongodb.core.index
Class IndexInfo

java.lang.Object
  extended by org.springframework.data.mongodb.core.index.IndexInfo

public class IndexInfo
extends Object


Constructor Summary
IndexInfo(List<IndexField> indexFields, String name, boolean unique, boolean dropDuplicates, boolean sparse)
           
 
Method Summary
 boolean equals(Object obj)
           
 List<IndexField> getIndexFields()
          Returns the individual index fields of the index.
 String getName()
           
 int hashCode()
           
 boolean isDropDuplicates()
           
 boolean isIndexForFields(Collection<String> keys)
          Returns whether the index is covering exactly the fields given independently of the order.
 boolean isSparse()
           
 boolean isUnique()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexInfo

public IndexInfo(List<IndexField> indexFields,
                 String name,
                 boolean unique,
                 boolean dropDuplicates,
                 boolean sparse)
Method Detail

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

Spring Data MongoDB

Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.