|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp | +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp
Implementation of the XATQueryObject interface. Any object that wants to have a reference to the statistics gatherer -or- be able to be stored in the StatisticsGatherer needs to derive from this class.
This also provides a standard means for operators to define which statistics they support. This is new b/c previously, the properties and statistics were lumped together.
Field Summary | |
protected StatisticsGatherer |
stats
each instance of this class also has the StatisticsGatherer available for use |
protected boolean |
statsPresent
|
Constructor Summary | |
XATQueryObjectImp()
Instantiates the XATQueryObject |
Method Summary | |
protected void |
addStatistic(java.lang.String name)
Adds a new Statistic that will be supported |
int |
compareTo(java.lang.Object o)
Note: this class has a natural ordering that is inconsistent with equals. |
java.util.Enumeration |
getStatistics()
returns an enumeration of Statistics supported by this query object |
boolean |
isValidStatistic(java.lang.String nameToCheck)
Checks if the given property is valid for this QueryObject. |
protected void |
setDefaultProperties()
called by the constructor. |
protected void |
setDefaultStatistics()
called by the constructor. |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp |
addProperty,
getProperties,
getProperty,
isValidPropertyName,
setNewPropertyValue,
setProperty |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected boolean statsPresent
protected StatisticsGatherer stats
Constructor Detail |
public XATQueryObjectImp()
Method Detail |
protected void addStatistic(java.lang.String name)
name
- java.lang.String the name of the propertypublic int compareTo(java.lang.Object o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
The implementor must ensure sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception iff y.compareTo(x) throws an exception.)
The implementor must also ensure that the relation is transitive: (x.compareTo(y)>0 && y.compareTo(z)>0) implies x.compareTo(z)>0.
Finally, the implementer must ensure that x.compareTo(y)==0 implies that sgn(x.compareTo(z)) == sgn(y.compareTo(z)), for all z.
It is strongly recommended, but not strictly required that (x.compareTo(y)==0) == (x.equals(y)). Generally speaking, any class that implements the Comparable interface and violates this condition should clearly indicate this fact. The recommended language is "Note: this class has a natural ordering that is inconsistent with equals."
o
- the Object to be compared.public java.util.Enumeration getStatistics()
public boolean isValidStatistic(java.lang.String nameToCheck)
protected void setDefaultProperties()
protected void setDefaultStatistics()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |