public abstract class Index<P>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Index(java.util.List<IndexKey> keys,
boolean sparse) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
add(Document document,
P position,
MongoCollection<P> collection) |
abstract boolean |
canHandle(Document query) |
abstract void |
checkAdd(Document document,
MongoCollection<P> collection) |
abstract void |
checkUpdate(Document oldDocument,
Document newDocument,
MongoCollection<P> collection) |
abstract long |
getCount() |
abstract long |
getDataSize() |
protected java.util.List<IndexKey> |
getKeys() |
java.lang.String |
getName() |
abstract java.lang.Iterable<P> |
getPositions(Document query) |
protected boolean |
isCompoundIndex() |
protected boolean |
isSparse() |
protected java.util.List<java.lang.String> |
keys() |
protected java.util.Set<java.lang.String> |
keySet() |
protected boolean |
nullAwareEqualsKeys(Document oldDocument,
Document newDocument) |
abstract P |
remove(Document document) |
abstract void |
updateInPlace(Document oldDocument,
Document newDocument,
MongoCollection<P> collection) |
protected Index(java.util.List<IndexKey> keys, boolean sparse)
protected boolean isSparse()
protected java.util.List<IndexKey> getKeys()
public java.lang.String getName()
protected java.util.List<java.lang.String> keys()
protected java.util.Set<java.lang.String> keySet()
public abstract void checkAdd(Document document, MongoCollection<P> collection)
public abstract void add(Document document, P position, MongoCollection<P> collection)
public abstract boolean canHandle(Document query)
public abstract long getCount()
public abstract long getDataSize()
public abstract void checkUpdate(Document oldDocument, Document newDocument, MongoCollection<P> collection)
public abstract void updateInPlace(Document oldDocument, Document newDocument, MongoCollection<P> collection) throws KeyConstraintError
KeyConstraintErrorprotected boolean isCompoundIndex()