Class IndexDocument
java.lang.Object
io.fluxzero.common.api.search.bulkupdate.IndexDocument
- All Implemented Interfaces:
BulkUpdate
A bulk update operation that indexes (inserts or replaces) a document in the store.
The object represents the document content. The id uniquely identifies the document
within the given collection.
If the document already exists, it will be replaced.
-
Nested Class Summary
Nested classes/interfaces inherited from interface BulkUpdate
BulkUpdate.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexDocumentfromDocument(SerializedDocument document) Creates a bulk index operation from aSerializedDocument.getType()Indicates the operation type:index,indexIfNotExists, ordelete.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BulkUpdate
getCollection, getId
-
Constructor Details
-
IndexDocument
public IndexDocument()
-
-
Method Details
-
fromDocument
Creates a bulk index operation from aSerializedDocument. -
getType
Description copied from interface:BulkUpdateIndicates the operation type:index,indexIfNotExists, ordelete.- Specified by:
getTypein interfaceBulkUpdate
-