| java.lang.Object org.josql.functions.AbstractFunctionHandler org.josql.functions.GroupingFunctions
Method Summary | |
public Double | avg(List allobjs, Expression exp, String saveValueName) | public Double | avg(Expression exp) | public Double | avg(List allobjs, Expression exp) | public void | checkType(Object o, Class expected, Expression exp) | public String | concat(List allobjs, Expression exp, String sep, String saveValueName) | public String | concat(List allobjs, Expression exp, String sep) | public String | concat(Expression exp) | public String | concat(List allobjs, Expression exp) | public Object | greatest(List allobjs, Expression exp, String saveValueName) | public Object | greatest(List allobjs, Expression exp) | public Object | greatestObject(List allobjs, Expression exp) | public Object | least(List allobjs, Expression exp, String saveValueName) | public Object | least(List allobjs, Expression exp) | public Object | leastObject(List allobjs, Expression exp) | public Object | max(List allobjs, Expression exp, String saveValueName) | public Object | max(Expression exp) | public Object | max(List allobjs, Expression exp) | public Map.Entry | maxEntry(Map m, String type) | public Object | maxObject(List allobjs, Expression exp) | public Object | maxObject(Expression exp) | public Object | min(Expression exp) | public Object | min(List allobjs, Expression exp) | public Object | min(List allobjs, Expression exp, String saveValueName) | public Map.Entry | minEntry(Object m, String type) | public Map.Entry | minEntry(Map m, String type) | public Object | minObject(Expression exp) | public Object | minObject(List allobjs, Expression exp) | public Map | occurrence(List objs) A function that will take each item from the passed in List and
determine a "count" for each item, i.e. | public Map | occurrence(List objs, Expression exp) A function that will take each item from the passed in List and
determine a "count" for each item, i.e. | public Map | occurrence(List objs, Expression exp, Expression limitExp) This is the same as
GroupingFunctions.occurrence(List,Expression) except that the
second expression should evaluate to a number that will be used to limit the
results, the occurrence count must be greater than or equal to the value from
the expression.
Parameters: objs - The List of objects to operate on. Parameters: exp - An optional expression that should be performed on each objectand the value returned used instead. Parameters: limitExp - An expression that when evaluated should return a number, thiswill then be used to limit the results returned to those that have anoccurrence count >= that number. | public Double | sum(List allobjs, Expression exp, String saveValueName) | public Double | sum(Expression exp) | public Double | sum(List objs, Expression exp) | public Double | sum(List objs, String acc) This function allows you to specify your own accessor as a string that will
be used to access the relevant value for each of the objects in the objs
List. |
occurrence | public Map occurrence(List objs) throws QueryExecutionException(Code) | | A function that will take each item from the passed in List and
determine a "count" for each item, i.e. how many times each item appears.
Parameters: objs - The List of objects to operate on. A Map of object to a count of the number of times the object appears in the list. throws: QueryExecutionException - Won't happen in this method. |
occurrence | public Map occurrence(List objs, Expression exp) throws QueryExecutionException(Code) | | A function that will take each item from the passed in List and
determine a "count" for each item, i.e. how many times each item appears.
Parameters: objs - The List of objects to operate on. Parameters: exp - An optional expression that should be performed on each objectand the value returned used instead. A Map of object to a count of the number of times the object appears in the list. throws: QueryExecutionException - If the expression cannot be evaluated. |
occurrence | public Map occurrence(List objs, Expression exp, Expression limitExp) throws QueryExecutionException(Code) | | This is the same as
GroupingFunctions.occurrence(List,Expression) except that the
second expression should evaluate to a number that will be used to limit the
results, the occurrence count must be greater than or equal to the value from
the expression.
Parameters: objs - The List of objects to operate on. Parameters: exp - An optional expression that should be performed on each objectand the value returned used instead. Parameters: limitExp - An expression that when evaluated should return a number, thiswill then be used to limit the results returned to those that have anoccurrence count >= that number. A Map of object to a count of the number of times the object appears in the list. throws: QueryExecutionException - If the expression cannot be evaluated or the limitExparg does not evaulate to a number. |
sum | public Double sum(List objs, String acc) throws QueryExecutionException(Code) | | This function allows you to specify your own accessor as a string that will
be used to access the relevant value for each of the objects in the objs
List.
Parameters: objs - The List of objects you wish to sum over. Parameters: acc - The accessor to create for accessing the value in each of the objects in objs. The summed value. throws: QueryExecutionException - If the accessor is not valid for the objects in the list orif the accessor throws an exception. |
Methods inherited from org.josql.functions.AbstractFunctionHandler | public void setQuery(Query q)(Code)(Java Doc)
|
|
|