Java Doc for GroupingFunctions.java in  » Development » JoSQL » org » josql » functions » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » JoSQL » org.josql.functions 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.josql.functions.AbstractFunctionHandler
      org.josql.functions.GroupingFunctions

GroupingFunctions
public class GroupingFunctions extends AbstractFunctionHandler (Code)


Field Summary
final public static  StringHANDLER_ID
    
final public static  StringVALUE
    


Method Summary
public  Doubleavg(List allobjs, Expression exp, String saveValueName)
    
public  Doubleavg(Expression exp)
    
public  Doubleavg(List allobjs, Expression exp)
    
public  voidcheckType(Object o, Class expected, Expression exp)
    
public  Stringconcat(List allobjs, Expression exp, String sep, String saveValueName)
    
public  Stringconcat(List allobjs, Expression exp, String sep)
    
public  Stringconcat(Expression exp)
    
public  Stringconcat(List allobjs, Expression exp)
    
public  Objectgreatest(List allobjs, Expression exp, String saveValueName)
    
public  Objectgreatest(List allobjs, Expression exp)
    
public  ObjectgreatestObject(List allobjs, Expression exp)
    
public  Objectleast(List allobjs, Expression exp, String saveValueName)
    
public  Objectleast(List allobjs, Expression exp)
    
public  ObjectleastObject(List allobjs, Expression exp)
    
public  Objectmax(List allobjs, Expression exp, String saveValueName)
    
public  Objectmax(Expression exp)
    
public  Objectmax(List allobjs, Expression exp)
    
public  Map.EntrymaxEntry(Map m, String type)
    
public  ObjectmaxObject(List allobjs, Expression exp)
    
public  ObjectmaxObject(Expression exp)
    
public  Objectmin(Expression exp)
    
public  Objectmin(List allobjs, Expression exp)
    
public  Objectmin(List allobjs, Expression exp, String saveValueName)
    
public  Map.EntryminEntry(Object m, String type)
    
public  Map.EntryminEntry(Map m, String type)
    
public  ObjectminObject(Expression exp)
    
public  ObjectminObject(List allobjs, Expression exp)
    
public  Mapoccurrence(List objs)
     A function that will take each item from the passed in List and determine a "count" for each item, i.e.
public  Mapoccurrence(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  Mapoccurrence(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  Doublesum(List allobjs, Expression exp, String saveValueName)
    
public  Doublesum(Expression exp)
    
public  Doublesum(List objs, Expression exp)
    
public  Doublesum(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.

Field Detail
HANDLER_ID
final public static String HANDLER_ID(Code)



VALUE
final public static String VALUE(Code)





Method Detail
avg
public Double avg(List allobjs, Expression exp, String saveValueName) throws QueryExecutionException(Code)



avg
public Double avg(Expression exp) throws QueryExecutionException(Code)



avg
public Double avg(List allobjs, Expression exp) throws QueryExecutionException(Code)



checkType
public void checkType(Object o, Class expected, Expression exp) throws QueryExecutionException(Code)



concat
public String concat(List allobjs, Expression exp, String sep, String saveValueName) throws QueryExecutionException(Code)



concat
public String concat(List allobjs, Expression exp, String sep) throws QueryExecutionException(Code)



concat
public String concat(Expression exp) throws QueryExecutionException(Code)



concat
public String concat(List allobjs, Expression exp) throws QueryExecutionException(Code)



greatest
public Object greatest(List allobjs, Expression exp, String saveValueName) throws QueryExecutionException(Code)



greatest
public Object greatest(List allobjs, Expression exp) throws QueryExecutionException(Code)



greatestObject
public Object greatestObject(List allobjs, Expression exp) throws QueryExecutionException(Code)



least
public Object least(List allobjs, Expression exp, String saveValueName) throws QueryExecutionException(Code)



least
public Object least(List allobjs, Expression exp) throws QueryExecutionException(Code)



leastObject
public Object leastObject(List allobjs, Expression exp) throws QueryExecutionException(Code)



max
public Object max(List allobjs, Expression exp, String saveValueName) throws QueryExecutionException(Code)



max
public Object max(Expression exp) throws QueryExecutionException(Code)



max
public Object max(List allobjs, Expression exp) throws QueryExecutionException(Code)



maxEntry
public Map.Entry maxEntry(Map m, String type)(Code)



maxObject
public Object maxObject(List allobjs, Expression exp) throws QueryExecutionException(Code)



maxObject
public Object maxObject(Expression exp) throws QueryExecutionException(Code)



min
public Object min(Expression exp) throws QueryExecutionException(Code)



min
public Object min(List allobjs, Expression exp) throws QueryExecutionException(Code)



min
public Object min(List allobjs, Expression exp, String saveValueName) throws QueryExecutionException(Code)



minEntry
public Map.Entry minEntry(Object m, String type) throws QueryExecutionException(Code)



minEntry
public Map.Entry minEntry(Map m, String type)(Code)



minObject
public Object minObject(Expression exp) throws QueryExecutionException(Code)



minObject
public Object minObject(List allobjs, Expression exp) throws QueryExecutionException(Code)



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 allobjs, Expression exp, String saveValueName) throws QueryExecutionException(Code)



sum
public Double sum(Expression exp) throws QueryExecutionException(Code)



sum
public Double sum(List objs, Expression exp) throws QueryExecutionException(Code)



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.



Fields inherited from org.josql.functions.AbstractFunctionHandler
protected Query q(Code)(Java Doc)

Methods inherited from org.josql.functions.AbstractFunctionHandler
public void setQuery(Query q)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.