public class InsertOperation extends Object implements WriteOperation
Constructor and Description |
---|
InsertOperation(DocumentAssignable document)
Creates a new InsertOperation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Determines if the passed object is of this same type as this object and
if so that its fields are equal.
|
Document |
getDocument()
Returns the document to insert.
|
Document |
getRoutingDocument()
Returns the document that should be used to route the write operation.
|
WriteOperationType |
getType()
Returns the type of write.
|
int |
hashCode()
Computes a reasonable hash code.
|
String |
toString() |
public InsertOperation(DocumentAssignable document)
document
- The document to insert.public boolean equals(Object object)
equals
in class Object
object
- The object to compare to.Object.equals(Object)
public Document getDocument()
public Document getRoutingDocument()
Overridden to return the document to insert.
getRoutingDocument
in interface WriteOperation
public final WriteOperationType getType()
Overridden to return WriteOperationType.INSERT
.
getType
in interface WriteOperation
public int hashCode()
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.