Package de.bwaldvogel.mongo.backend
Class EmptyIndex<P>
java.lang.Object
de.bwaldvogel.mongo.backend.Index<P>
de.bwaldvogel.mongo.backend.EmptyIndex<P>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Document document, P position, MongoCollection<P> collection) booleanvoidcheckAdd(Document document, MongoCollection<P> collection) voidcheckUpdate(Document oldDocument, Document newDocument, MongoCollection<P> collection) voiddrop()longgetCount()longgetPosition(Document document) getPositions(Document query) voidupdateInPlace(Document oldDocument, Document newDocument, P position, MongoCollection<P> collection) Methods inherited from class de.bwaldvogel.mongo.backend.Index
getKeys, getKeyValues, getName, hasSameOptions, isCompoundIndex, isEmpty, isSparse, keys, keySet, nullAwareEqualsKeys, toString
-
Constructor Details
-
EmptyIndex
-
-
Method Details
-
getPosition
- Specified by:
getPositionin classIndex<P>
-
checkAdd
-
add
-
remove
-
canHandle
-
getPositions
- Specified by:
getPositionsin classIndex<P>
-
getCount
public long getCount() -
getDataSize
public long getDataSize()- Specified by:
getDataSizein classIndex<P>
-
checkUpdate
- Specified by:
checkUpdatein classIndex<P>
-
updateInPlace
public void updateInPlace(Document oldDocument, Document newDocument, P position, MongoCollection<P> collection) throws KeyConstraintError - Specified by:
updateInPlacein classIndex<P>- Throws:
KeyConstraintError
-
drop
public void drop()
-