Spring Data MongoDB - Core

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

java.lang.Object
  extended by org.springframework.data.mongodb.core.index.Index
      extended by org.springframework.data.mongodb.core.index.CompoundIndexDefinition
All Implemented Interfaces:
IndexDefinition

public class CompoundIndexDefinition
extends Index

Index definition to span multiple keys.

Since:
1.5
Author:
Christoph Strobl

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.data.mongodb.core.index.Index
Index.Duplicates
 
Constructor Summary
CompoundIndexDefinition(com.mongodb.DBObject keys)
          Creates a new CompoundIndexDefinition for the given keys.
 
Method Summary
 com.mongodb.DBObject getIndexKeys()
           
 
Methods inherited from class org.springframework.data.mongodb.core.index.Index
background, expire, expire, getIndexOptions, named, on, on, sparse, toString, unique, unique
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompoundIndexDefinition

public CompoundIndexDefinition(com.mongodb.DBObject keys)
Creates a new CompoundIndexDefinition for the given keys.

Parameters:
keys - must not be null.
Method Detail

getIndexKeys

public com.mongodb.DBObject getIndexKeys()
Specified by:
getIndexKeys in interface IndexDefinition
Overrides:
getIndexKeys in class Index

Spring Data MongoDB - Core

Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.