Package de.bwaldvogel.mongo.backend
Class EmptyIndex<P>
java.lang.Object
de.bwaldvogel.mongo.backend.Index<P>
de.bwaldvogel.mongo.backend.EmptyIndex<P>
public class EmptyIndex<P> extends Index<P>
-
Constructor Summary
Constructors Constructor Description EmptyIndex(java.lang.String name, java.util.List<IndexKey> keys) -
Method Summary
Modifier and Type Method Description voidadd(Document document, P position, MongoCollection<P> collection)booleancanHandle(Document query)voidcheckAdd(Document document, MongoCollection<P> collection)voidcheckUpdate(Document oldDocument, Document newDocument, MongoCollection<P> collection)voiddrop()longgetCount()longgetDataSize()PgetPosition(Document document)java.lang.Iterable<P>getPositions(Document query)Premove(Document document)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
-
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()
-