|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.operations.AbstractOperation
messif.operations.data.BulkInsertOperation
public class BulkInsertOperation
Operation for inserting several objects at once.
The operation keeps a list of abstract objects
that are going to be inserted into an index structure.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class messif.operations.AbstractOperation |
---|
AbstractOperation.DataEqualOperation, AbstractOperation.OperationConstructor, AbstractOperation.OperationName |
Field Summary |
---|
Fields inherited from class messif.operations.AbstractOperation |
---|
errValue, operID, suppData |
Constructor Summary | |
---|---|
BulkInsertOperation(AbstractObjectList<? extends LocalAbstractObject> insertedObjects)
Creates a new instance of BulkInsertOperation. |
|
BulkInsertOperation(AbstractStreamObjectIterator<LocalAbstractObject> stream,
int count)
Creates a new instance of BulkInsertOperation. |
|
BulkInsertOperation(java.util.Collection<? extends LocalAbstractObject> insertedObjects)
Creates a new instance of BulkInsertOperation. |
|
BulkInsertOperation(java.util.Iterator<? extends LocalAbstractObject> insertedObjects)
Creates a new instance of BulkInsertOperation. |
Method Summary | |
---|---|
void |
clearSurplusData()
Clear non-messif data stored in operation. |
protected boolean |
dataEqualsImpl(AbstractOperation obj)
Indicates whether some other operation has the same data as this one. |
int |
dataHashCode()
Returns a hash code value for the data of this operation. |
void |
endOperation()
End operation successfully. |
java.lang.Object |
getArgument(int index)
Returns argument that was passed while constructing instance. |
int |
getArgumentCount()
Returns number of arguments that were passed while constructing this instance. |
AbstractObjectList<? extends LocalAbstractObject> |
getInsertedObjects()
Returns the list of objects to insert. |
java.lang.String |
toString()
Returns a string representation of this operation. |
void |
updateFrom(AbstractOperation operation)
Update the error code of this operation from another operation. |
boolean |
wasSuccessful()
Returns true if this operation has finished successfuly. |
Methods inherited from class messif.operations.AbstractOperation |
---|
appendArguments, appendErrorCode, clone, createOperation, dataEquals, endOperation, equals, getAnnotatedConstructor, getAnnotatedConstructor, getConstructorArgumentDescriptions, getConstructorArgumentDescriptions, getConstructorArguments, getConstructorArguments, getConstructorDescription, getErrorCode, getName, getName, getOperationID, hashCode, isFinished |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BulkInsertOperation(AbstractObjectList<? extends LocalAbstractObject> insertedObjects)
insertedObjects
- a list of objects to be inserted by this operationpublic BulkInsertOperation(java.util.Collection<? extends LocalAbstractObject> insertedObjects)
insertedObjects
- a list of objects to be inserted by this operationpublic BulkInsertOperation(java.util.Iterator<? extends LocalAbstractObject> insertedObjects)
insertedObjects
- a list of objects to be inserted by this operationpublic BulkInsertOperation(AbstractStreamObjectIterator<LocalAbstractObject> stream, int count)
stream
- a stream from which to read the list of objects to be insertedcount
- the number of objects to read from the streamMethod Detail |
---|
public AbstractObjectList<? extends LocalAbstractObject> getInsertedObjects()
public java.lang.Object getArgument(int index) throws java.lang.IndexOutOfBoundsException
AbstractOperation
getArgument
in class AbstractOperation
index
- zero-based index of an argument passed to constructor
java.lang.IndexOutOfBoundsException
- if index parameter is out of rangepublic int getArgumentCount()
AbstractOperation
getArgumentCount
in class AbstractOperation
public boolean wasSuccessful()
AbstractOperation
wasSuccessful
in class AbstractOperation
public void endOperation()
AbstractOperation
endOperation
in class AbstractOperation
public void updateFrom(AbstractOperation operation)
updateFrom
in class AbstractOperation
operation
- the source operation from which to get the updatepublic java.lang.String toString()
AbstractOperation
toString
in class AbstractOperation
public void clearSurplusData()
AbstractOperation
clearSurplusData
in interface Clearable
clearSurplusData
in class AbstractOperation
protected boolean dataEqualsImpl(AbstractOperation obj)
AbstractOperation
dataEqualsImpl
in class AbstractOperation
obj
- the reference object with which to compare.
true
if this object has the same data as the obj
argument; false
otherwise.public int dataHashCode()
AbstractOperation
dataHashCode
in class AbstractOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |