|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.operations.AbstractOperation
messif.operations.query.GetObjectCountOperation
public class GetObjectCountOperation
Operation for retrieving the number of objects stored in indexing structure.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class messif.operations.AbstractOperation |
---|
AbstractOperation.DataEqualOperation, AbstractOperation.OperationConstructor, AbstractOperation.OperationName |
Field Summary | |
---|---|
protected int |
objectCount
The number of objects counted by this operation |
Fields inherited from class messif.operations.AbstractOperation |
---|
errValue, operID, suppData |
Constructor Summary | |
---|---|
GetObjectCountOperation()
Creates a new instance of GetAllObjectsQuery |
Method Summary | |
---|---|
void |
addToAnswer(int objectCount)
Add the specified count to the answer of this 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. |
int |
evaluate(BucketDispatcher dispatcher)
Evaluate this query on a given bucket dispatcher. |
int |
evaluate(LocalBucket bucket)
Evaluate this query on a given bucket. |
int |
getAnswerCount()
Returns the number of objects counted by this operation. |
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. |
java.lang.String |
toString()
Prints out the object count in a fancy way. |
boolean |
wasSuccessful()
Returns true if this operation has finished successfuly. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int objectCount
Constructor Detail |
---|
public GetObjectCountOperation()
Method Detail |
---|
public java.lang.Object getArgument(int index) throws java.lang.IndexOutOfBoundsException
getArgument
in class AbstractOperation
index
- index of an argument passed to constructor
java.lang.IndexOutOfBoundsException
- if index parameter is out of rangepublic int getArgumentCount()
getArgumentCount
in class AbstractOperation
public int evaluate(BucketDispatcher dispatcher)
dispatcher
- the bucket dispatcher to update answer from
public int evaluate(LocalBucket bucket)
bucket
- the bucket to update answer from
public int getAnswerCount()
public void addToAnswer(int objectCount)
objectCount
- the count to addpublic boolean wasSuccessful()
wasSuccessful
in class AbstractOperation
public void endOperation()
endOperation
in class AbstractOperation
public java.lang.String toString()
toString
in class AbstractOperation
protected boolean dataEqualsImpl(AbstractOperation obj)
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()
dataHashCode
in class AbstractOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |