Java Doc for GroupingFeatureIterator.java in  » GIS » GeoTools-2.4.1 » org » geotools » data » complex » 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 » GIS » GeoTools 2.4.1 » org.geotools.data.complex 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.data.complex.AbstractMappingFeatureIterator
      org.geotools.data.complex.GroupingFeatureIterator

GroupingFeatureIterator
class GroupingFeatureIterator extends AbstractMappingFeatureIterator (Code)
A Feature can be stored in many tables of database. Restoring that feature may be did by join, the resulting table can be explored using this iterator class. This iterator return Features with simple or complex attributes.

In the FeatureTypeMapping must be defined the grouping attributes, this value will be used to distinguish different features in the data sotore.

The next can be a posible data store.
station_no (string) sitename (string) anzlic_no (string) project_no (string) id (string) sample_collection_date (string) determinand_description (string) results_value (float) location (Point)
station_1 sitename_1 anzlic_no_1 project_no_1 id_1_1 sample_collection_date_1_1 determinand_description_1_1 1.1 POINT(1, 1)
station_2 sitename_2 anzlic_no_2 project_no_2 id_2_1 sample_collection_date_2_1 determinand_description_2_1 2.1 POINT(2, 2)
station_2 sitename_2 anzlic_no_2 project_no_2 id_2_2 sample_collection_date_2_2 determinand_description_2_2 2.2 POINT(2, 2)
...
station_10 sitename_10 anzlic_no_10 project_no_10 id_10_10 sample_collection_date_10_9 determinand_description_10_9 10.10 POINT(10, 10)
station_10 sitename_10 anzlic_no_10 project_no_10 id_10_10 sample_collection_date_10_10 determinand_description_10_10 10.10 POINT(10, 10)


author:
   Mauricio Pazos, Axios Engineering
author:
   Gabriel Roldan, Axios Engineering
version:
   $Id: GroupingFeatureIterator.java 27862 2007-11-12 19:51:19Z desruisseaux $
since:
   2.4



Constructor Summary
public  GroupingFeatureIterator(ComplexDataStore store, FeatureTypeMapping mappings, Query query)
    

Method Summary
 ListcreateCurrentGroup()
     Iterate over the source features while they belong to the same set of grouping attributes.
protected  QuerygetUnrolledQuery(Query query)
    
final public  booleanhasNext()
    
final public  Objectnext()
    


Constructor Detail
GroupingFeatureIterator
public GroupingFeatureIterator(ComplexDataStore store, FeatureTypeMapping mappings, Query query) throws IOException(Code)
New instance of GroupingFeatureIterator
Parameters:
  mapping -
Parameters:
  query -
Parameters:
  groupByAttributeNames - list of attribute identifies for grouping the source feature
throws:
  IOException -




Method Detail
createCurrentGroup
List createCurrentGroup()(Code)
Iterate over the source features while they belong to the same set of grouping attributes.

Each time this method is called GroupingFeatureIterator.hasNextCalled is set to false

the set of Features from the source resultset that belongs to thesame group.



getUnrolledQuery
protected Query getUnrolledQuery(Query query)(Code)



hasNext
final public boolean hasNext()(Code)
boolean true if exist next feature, false in other case.



next
final public Object next()(Code)
Feature the next feature.



Fields inherited from org.geotools.data.complex.AbstractMappingFeatureIterator
protected FeatureFactory attf(Code)(Java Doc)
protected Expression featureFidMapping(Code)(Java Doc)
protected Source featureSource(Code)(Java Doc)
protected FeatureCollection features(Code)(Java Doc)
protected FeatureTypeMapping mapping(Code)(Java Doc)
protected Iterator sourceFeatures(Code)(Java Doc)
protected ComplexDataStore store(Code)(Java Doc)

Methods inherited from org.geotools.data.complex.AbstractMappingFeatureIterator
public void close()(Code)(Java Doc)
protected String extractIdForAttribute(Expression idExpression, ComplexAttribute sourceInstance)(Code)(Java Doc)
protected String extractIdForFeature(ComplexAttribute sourceInstance)(Code)(Java Doc)
abstract protected Query getUnrolledQuery(Query query)(Code)(Java Doc)
protected Object getValue(Expression expression, Object sourceFeature)(Code)(Java Doc)
public void remove()(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.