Package de.bwaldvogel.mongo.backend
Class Index<P>
java.lang.Object
de.bwaldvogel.mongo.backend.Index<P>
- Direct Known Subclasses:
AbstractUniqueIndex,EmptyIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidadd(Document document, P position, MongoCollection<P> collection) abstract booleanabstract voidcheckAdd(Document document, MongoCollection<P> collection) abstract voidcheckUpdate(Document oldDocument, Document newDocument, MongoCollection<P> collection) abstract voiddrop()abstract longgetCount()abstract longgetKeys()getKeyValues(Document document) getName()abstract PgetPosition(Document document) getPositions(Document query) booleanhasSameOptions(Index<?> other) protected booleanbooleanisEmpty()protected booleanisSparse()keys()keySet()protected booleannullAwareEqualsKeys(Document oldDocument, Document newDocument) abstract PtoString()abstract voidupdateInPlace(Document oldDocument, Document newDocument, P position, MongoCollection<P> collection)
-
Constructor Details
-
Index
-
-
Method Details
-
isSparse
protected boolean isSparse() -
getKeys
-
hasSameOptions
-
getName
-
keys
-
keySet
-
getKeyValues
-
getPosition
-
checkAdd
-
add
-
remove
-
canHandle
-
getPositions
-
getCount
public abstract long getCount() -
isEmpty
public boolean isEmpty() -
getDataSize
public abstract long getDataSize() -
checkUpdate
public abstract void checkUpdate(Document oldDocument, Document newDocument, MongoCollection<P> collection) -
updateInPlace
public abstract void updateInPlace(Document oldDocument, Document newDocument, P position, MongoCollection<P> collection) throws KeyConstraintError - Throws:
KeyConstraintError
-
isCompoundIndex
protected boolean isCompoundIndex() -
nullAwareEqualsKeys
-
drop
public abstract void drop() -
toString
-