public abstract class Index extends Object
| Constructor and Description |
|---|
Index() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
add(org.bson.BSONObject document,
Integer position) |
abstract boolean |
canHandle(org.bson.BSONObject query) |
abstract void |
checkAdd(org.bson.BSONObject document) |
abstract void |
checkUpdate(org.bson.BSONObject oldDocument,
org.bson.BSONObject newDocument) |
abstract long |
getCount() |
abstract long |
getDataSize() |
protected abstract Object |
getKeyValue(org.bson.BSONObject document) |
abstract String |
getName() |
abstract Iterable<Integer> |
getPositions(org.bson.BSONObject query) |
abstract Integer |
remove(org.bson.BSONObject document) |
abstract void |
updateInPlace(org.bson.BSONObject oldDocument,
org.bson.BSONObject newDocument) |
public abstract String getName()
public abstract void checkAdd(org.bson.BSONObject document)
throws KeyConstraintError
KeyConstraintErrorpublic abstract void add(org.bson.BSONObject document,
Integer position)
throws KeyConstraintError
KeyConstraintErrorpublic abstract Integer remove(org.bson.BSONObject document)
public abstract boolean canHandle(org.bson.BSONObject query)
public abstract long getCount()
public abstract long getDataSize()
protected abstract Object getKeyValue(org.bson.BSONObject document)
public abstract void checkUpdate(org.bson.BSONObject oldDocument,
org.bson.BSONObject newDocument)
throws MongoServerError
MongoServerErrorpublic abstract void updateInPlace(org.bson.BSONObject oldDocument,
org.bson.BSONObject newDocument)
throws KeyConstraintError
KeyConstraintErrorCopyright © 2013. All Rights Reserved.