Spring Data Document

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(Map<String,Order> fieldSpec, List<IndexField> indexFields, String name, boolean unique, boolean dropDuplicates, boolean sparse)
           
 
Method Summary
 boolean equals(Object obj)
           
 Map<String,Order> getFieldSpec()
          Deprecated. use getIndexFields() instead as this Map does not contain geo indexes.
 List<IndexField> getIndexFields()
          Returns the individual index fields of the index.
 String getName()
           
 int hashCode()
           
 boolean isDropDuplicates()
           
 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(Map<String,Order> fieldSpec,
                 List<IndexField> indexFields,
                 String name,
                 boolean unique,
                 boolean dropDuplicates,
                 boolean sparse)
Method Detail

getFieldSpec

@Deprecated
public Map<String,Order> getFieldSpec()
Deprecated. use getIndexFields() instead as this Map does not contain geo indexes.

Returns:

getIndexFields

public List<IndexField> getIndexFields()
Returns the individual index fields of the index.

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 Document

Copyright © 2012. All Rights Reserved.