|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.imemex.operators.AbstractPushOperator<E>
E - public class AbstractPushOperator<E>
An abstract implementation of PushOperator based on the pull paradigm.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.imemex.operators.Operator |
|---|
Operator.ExecTimeType |
| Constructor Summary | |
|---|---|
AbstractPushOperator()
|
|
| Method Summary | |
|---|---|
void |
addExecTime(long nanos,
Operator.ExecTimeType type)
If an operator implementor wants - and it would if everyone did, he may collect execution times using this method. |
void |
close()
Does nothing. |
java.lang.String |
getDesc()
Get description. |
long |
getExecTime(Operator.ExecTimeType type)
Get collected execution times. |
OperatorMetaData |
getMetaData()
Get additional information about this operator. |
long |
getNumberOfElementsPassed()
Get the number of results produced so far. |
void |
open()
Does nothing. |
void |
pass(E object)
Passes the next |
void |
setDesc(java.lang.String description)
Set description. |
java.lang.String |
toXML()
Get an XML representation of this pull operator. |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractPushOperator()
| Method Detail |
|---|
public void open()
open in interface Operatorpublic void pass(E object)
PushOperatorpublic void close()
close in interface Operatorpublic OperatorMetaData getMetaData()
Operator
getMetaData in interface Operatorpublic java.lang.String toXML()
Operator
toXML in interface Operatorpublic java.lang.String getDesc()
Operator
getDesc in interface Operatorpublic void setDesc(java.lang.String description)
Operator
setDesc in interface Operatorpublic final long getNumberOfElementsPassed()
Operator
getNumberOfElementsPassed in interface Operator
public final void addExecTime(long nanos,
Operator.ExecTimeType type)
Operator
addExecTime in interface Operatornanos - number of nanoseconds to add to given time type.type - type of execution time.public final long getExecTime(Operator.ExecTimeType type)
Operator
getExecTime in interface Operatortype - type of execution time.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||