java.lang.Object
com.memoire.yapod.YapodAbstractQuery
com.memoire.yapod.YapodGroupQuery
- All Implemented Interfaces:
- YapodConstants, YapodQuery
- public class YapodGroupQuery
- extends YapodAbstractQuery
Regroupe les éléments résultants de _previous par valeurs du champ _field.
Ex : YapodQuery q = new YapodGroupQuery("x", previous)
avec resultat de previous = [ [x=1 y=1], [x=1 y=2], [x=2 y=1], [x=2 y=2] ]
q donne [
pair(1, [ [x=1 y=1], [x=1 y=2] ],
pair(2, [ [x=2 y=1], [x=2 y=2] ]
]
field_
private java.lang.String field_
YapodGroupQuery
public YapodGroupQuery(java.lang.String _field,
YapodQuery _previous)
query
protected java.util.Enumeration query(java.util.Enumeration e)
- Specified by:
query in class YapodAbstractQuery
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
- Overrides:
toString in class YapodAbstractQuery
main
public static void main(java.lang.String[] args)