Java Doc for Index.java in  » Database-Client » prefuse » prefuse » data » util » 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 » Database Client » prefuse » prefuse.data.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


prefuse.data.util.Index

All known Subclasses:   prefuse.data.util.TreeIndex,
Index
public interface Index (Code)
Represents an index over a column of data, allowing quick lookups by data value and providing iterators over sorted ranges of data. For convenience, there are index lookup methods for a variety of data types; which ones to use depend on the data type of the column being indexed and calling a lookup method for an incompatible data type could lead to an exception being thrown.
author:
   jeffrey heer


Field Summary
final public static  intTYPE_AEE
     Composite flag for an ascending, left and right exclusive range.
final public static  intTYPE_AEI
     Composite flag for an ascending, left exclusive, right inclusive range.
final public static  intTYPE_AIE
     Composite flag for an ascending, left inclusive, right exclusive range.
final public static  intTYPE_AII
     Composite flag for an ascending, left and right inclusive range.
final public static  intTYPE_ASCENDING
     Flag for an ascending sort order.
final public static  intTYPE_DEE
     Composite flag for a descending, left and right exclusive range.
final public static  intTYPE_DEI
     Composite flag for a descending, left exclusive, right inclusive range.
final public static  intTYPE_DESCENDING
     Flag for a descending sort order.
final public static  intTYPE_DIE
     Composite flag for a descending, left inclusive, right exclusive range.
final public static  intTYPE_DII
     Composite flag for a descending, left and right inclusive range.
final public static  intTYPE_LEFT_EXCLUSIVE
     Flag for excluding the lowest value of a range.
final public static  intTYPE_LEFT_INCLUSIVE
     Flag for including the lowest value of a range.
final public static  intTYPE_RIGHT_EXCLUSIVE
     Flag for excluding the highest value of a range.
final public static  intTYPE_RIGHT_INCLUSIVE
     Flag for including the highest value of a range.


Method Summary
public  IntIteratorallRows(int type)
     Get an iterator over all rows in the index, in sorted order.
Parameters:
  type - the sort type, one of Index.TYPE_ASCENDING orIndex.TYPE_DESCENDING.
public  voiddispose()
     Dispose of an index, deregistering all listeners.
public  intget(Object x)
     Get the first row found with the given data value.
public  intget(int x)
     Get the first row found with the given data value.
public  intget(long x)
     Get the first row found with the given data value.
public  intget(float x)
     Get the first row found with the given data value.
public  intget(double x)
     Get the first row found with the given data value.
public  ComparatorgetComparator()
     Get the comparator used to compare column data values.
public  voidindex()
     Perform an initial indexing of a data column.
public  intmaximum()
     Get the row (or one of the rows) with the maximum data value.
public  intmedian()
     Get the row (or one of the rows) with the median data value.
public  intminimum()
     Get the row (or one of the rows) with the minimum data value.
public  IntIteratorrows(Object lo, Object hi, int type)
     Get an iterator over a sorted range of rows.
public  IntIteratorrows(int lo, int hi, int type)
     Get an iterator over a sorted range of rows.
public  IntIteratorrows(long lo, long hi, int type)
     Get an iterator over a sorted range of rows.
public  IntIteratorrows(float lo, float hi, int type)
     Get an iterator over a sorted range of rows.
public  IntIteratorrows(double lo, double hi, int type)
     Get an iterator over a sorted range of rows.
public  IntIteratorrows(Object val)
     Get an iterator over all rows with the given data value.
public  IntIteratorrows(int val)
     Get an iterator over all rows with the given data value.
public  IntIteratorrows(long val)
     Get an iterator over all rows with the given data value.
public  IntIteratorrows(float val)
     Get an iterator over all rows with the given data value.
public  IntIteratorrows(double val)
     Get an iterator over all rows with the given data value.
public  IntIteratorrows(boolean val)
     Get an iterator over all rows with the given data value.
public  intsize()
     Get the size of this index, the number of data value / row pairs included.
public  intuniqueCount()
     Get the number of unique data values in the index.

Field Detail
TYPE_AEE
final public static int TYPE_AEE(Code)
Composite flag for an ascending, left and right exclusive range.



TYPE_AEI
final public static int TYPE_AEI(Code)
Composite flag for an ascending, left exclusive, right inclusive range.



TYPE_AIE
final public static int TYPE_AIE(Code)
Composite flag for an ascending, left inclusive, right exclusive range.



TYPE_AII
final public static int TYPE_AII(Code)
Composite flag for an ascending, left and right inclusive range.



TYPE_ASCENDING
final public static int TYPE_ASCENDING(Code)
Flag for an ascending sort order.



TYPE_DEE
final public static int TYPE_DEE(Code)
Composite flag for a descending, left and right exclusive range.



TYPE_DEI
final public static int TYPE_DEI(Code)
Composite flag for a descending, left exclusive, right inclusive range.



TYPE_DESCENDING
final public static int TYPE_DESCENDING(Code)
Flag for a descending sort order.



TYPE_DIE
final public static int TYPE_DIE(Code)
Composite flag for a descending, left inclusive, right exclusive range.



TYPE_DII
final public static int TYPE_DII(Code)
Composite flag for a descending, left and right inclusive range.



TYPE_LEFT_EXCLUSIVE
final public static int TYPE_LEFT_EXCLUSIVE(Code)
Flag for excluding the lowest value of a range.



TYPE_LEFT_INCLUSIVE
final public static int TYPE_LEFT_INCLUSIVE(Code)
Flag for including the lowest value of a range.



TYPE_RIGHT_EXCLUSIVE
final public static int TYPE_RIGHT_EXCLUSIVE(Code)
Flag for excluding the highest value of a range.



TYPE_RIGHT_INCLUSIVE
final public static int TYPE_RIGHT_INCLUSIVE(Code)
Flag for including the highest value of a range.





Method Detail
allRows
public IntIterator allRows(int type)(Code)
Get an iterator over all rows in the index, in sorted order.
Parameters:
  type - the sort type, one of Index.TYPE_ASCENDING orIndex.TYPE_DESCENDING. an iterator over all rows in the index



dispose
public void dispose()(Code)
Dispose of an index, deregistering all listeners.



get
public int get(Object x)(Code)
Get the first row found with the given data value.
Parameters:
  x - the data value the first row matching the data value



get
public int get(int x)(Code)
Get the first row found with the given data value.
Parameters:
  x - the data value the first row matching the data value



get
public int get(long x)(Code)
Get the first row found with the given data value.
Parameters:
  x - the data value the first row matching the data value



get
public int get(float x)(Code)
Get the first row found with the given data value.
Parameters:
  x - the data value the first row matching the data value



get
public int get(double x)(Code)
Get the first row found with the given data value.
Parameters:
  x - the data value the first row matching the data value



getComparator
public Comparator getComparator()(Code)
Get the comparator used to compare column data values. the sort comparator



index
public void index()(Code)
Perform an initial indexing of a data column.



maximum
public int maximum()(Code)
Get the row (or one of the rows) with the maximum data value. a row with a maximum data value



median
public int median()(Code)
Get the row (or one of the rows) with the median data value. a row with a median data value



minimum
public int minimum()(Code)
Get the row (or one of the rows) with the minimum data value. a row with a minimum data value



rows
public IntIterator rows(Object lo, Object hi, int type)(Code)
Get an iterator over a sorted range of rows.
Parameters:
  lo - the minimum data value
Parameters:
  hi - the maximum data value
Parameters:
  type - the iteration type, one of the composite flagsinvolving both a sort order, and whether each bound ofthe range should inclusive or exclusive an iterator over a sorted range of rows



rows
public IntIterator rows(int lo, int hi, int type)(Code)
Get an iterator over a sorted range of rows.
Parameters:
  lo - the minimum data value
Parameters:
  hi - the maximum data value
Parameters:
  type - the iteration type, one of the composite flagsinvolving both a sort order, and whether each bound ofthe range should inclusive or exclusive an iterator over a sorted range of rows



rows
public IntIterator rows(long lo, long hi, int type)(Code)
Get an iterator over a sorted range of rows.
Parameters:
  lo - the minimum data value
Parameters:
  hi - the maximum data value
Parameters:
  type - the iteration type, one of the composite flagsinvolving both a sort order, and whether each bound ofthe range should inclusive or exclusive an iterator over a sorted range of rows



rows
public IntIterator rows(float lo, float hi, int type)(Code)
Get an iterator over a sorted range of rows.
Parameters:
  lo - the minimum data value
Parameters:
  hi - the maximum data value
Parameters:
  type - the iteration type, one of the composite flagsinvolving both a sort order, and whether each bound ofthe range should inclusive or exclusive an iterator over a sorted range of rows



rows
public IntIterator rows(double lo, double hi, int type)(Code)
Get an iterator over a sorted range of rows.
Parameters:
  lo - the minimum data value
Parameters:
  hi - the maximum data value
Parameters:
  type - the iteration type, one of the composite flagsinvolving both a sort order, and whether each bound ofthe range should inclusive or exclusive an iterator over a sorted range of rows



rows
public IntIterator rows(Object val)(Code)
Get an iterator over all rows with the given data value.
Parameters:
  val - the data value an iterator over all rows matching the data value



rows
public IntIterator rows(int val)(Code)
Get an iterator over all rows with the given data value.
Parameters:
  val - the data value an iterator over all rows matching the data value



rows
public IntIterator rows(long val)(Code)
Get an iterator over all rows with the given data value.
Parameters:
  val - the data value an iterator over all rows matching the data value



rows
public IntIterator rows(float val)(Code)
Get an iterator over all rows with the given data value.
Parameters:
  val - the data value an iterator over all rows matching the data value



rows
public IntIterator rows(double val)(Code)
Get an iterator over all rows with the given data value.
Parameters:
  val - the data value an iterator over all rows matching the data value



rows
public IntIterator rows(boolean val)(Code)
Get an iterator over all rows with the given data value.
Parameters:
  val - the data value an iterator over all rows matching the data value



size
public int size()(Code)
Get the size of this index, the number of data value / row pairs included. the size of the index



uniqueCount
public int uniqueCount()(Code)
Get the number of unique data values in the index. the number of unique data values



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