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


prefuse.data.tuple.DefaultTupleSet
   prefuse.data.search.SearchTupleSet

All known Subclasses:   prefuse.data.search.RegexSearchTupleSet,  prefuse.data.search.KeywordSearchTupleSet,  prefuse.data.search.PrefixSearchTupleSet,
SearchTupleSet
abstract public class SearchTupleSet extends DefaultTupleSet (Code)

Abstract base class for TupleSet implementations that support text search. These sets provide search engine functionality -- Tuple data fields can be indexed and then searched over using text queries, the results of which populate the TupleSet. A range of search techniques are provided by subclasses of this class.

NOTE: The SearchTupleSet.addTuple(Tuple) and SearchTupleSet.removeTuple(Tuple) , methods are not supported by this implementation or its derived classes. Calling these methods will result in thrown exceptions. Instead, membership is determined by the search matches found using the SearchTupleSet.search(String) search method, which searches over the terms indexed using the SearchTupleSet.index(Iterator,String) and SearchTupleSet.index(Tuple,String) methods.


author:
   jeffrey heer
See Also:   prefuse.data.query.SearchQueryBinding




Method Summary
public  TupleaddTuple(Tuple t)
     This method is not supported by this implementation.
abstract public  StringgetQuery()
     Returns the current search query, if any.
public  voidindex(Iterator tuples, String field)
     Indexes the data values for the given field name for each Tuple in the provided Iterator.
abstract public  voidindex(Tuple t, String field)
     Index an individual Tuple field, so that it can be searched for.
abstract public  booleanisUnindexSupported()
     Indicates if this TupleSearchSet supports the unindex operation.
public  booleanremoveTuple(Tuple t)
     This method is not supported by this implementation.
abstract public  voidsearch(String query)
     Searches the indexed fields of this TupleSet for matching strings, adding the Tuple instances for each search match to the TupleSet.
abstract public  voidunindex(Tuple t, String field)
     Un-index an individual Tuple field, so that it can no longer be searched for.



Method Detail
addTuple
public Tuple addTuple(Tuple t)(Code)
This method is not supported by this implementation. Don't call it! Instead, use the SearchTupleSet.search(String) search or SearchTupleSet.clear() clear methods.



getQuery
abstract public String getQuery()(Code)
Returns the current search query, if any. the currently active search query



index
public void index(Iterator tuples, String field)(Code)
Indexes the data values for the given field name for each Tuple in the provided Iterator. These values are used to construct an internal data structure allowing fast searches over these attributes. To index multiple fields, simply call this method multiple times with the desired field names.
Parameters:
  tuples - an Iterator over Tuple instances to index
Parameters:
  field - the name of the attribute to index
throws:
  ClassCastException - is a non-Tuple instance isencountered in the iteration.



index
abstract public void index(Tuple t, String field)(Code)
Index an individual Tuple field, so that it can be searched for.
Parameters:
  t - the Tuple
Parameters:
  field - the data field to index



isUnindexSupported
abstract public boolean isUnindexSupported()(Code)
Indicates if this TupleSearchSet supports the unindex operation. true if unindex is supported, false otherwise.
See Also:   SearchTupleSet.unindex(Tuple,String)



removeTuple
public boolean removeTuple(Tuple t)(Code)
This method is not supported by this implementation. Don't call it! Instead, use the SearchTupleSet.search(String) search or SearchTupleSet.clear() clear methods.



search
abstract public void search(String query)(Code)
Searches the indexed fields of this TupleSet for matching strings, adding the Tuple instances for each search match to the TupleSet. The details of how the query is matched to indexed fields is left to subclasses.
Parameters:
  query - the query string to search for. Indexed fieldswith matching text will be added to the TupleSet.



unindex
abstract public void unindex(Tuple t, String field)(Code)
Un-index an individual Tuple field, so that it can no longer be searched for.
Parameters:
  t - the Tuple
Parameters:
  field - the data field to unindex
See Also:   SearchTupleSet.isUnindexSupported()



Fields inherited from prefuse.data.tuple.DefaultTupleSet
protected LinkedHashSet m_tuples(Code)(Java Doc)

Methods inherited from prefuse.data.tuple.DefaultTupleSet
final protected Tuple addInternal(Tuple t)(Code)(Java Doc)
public Tuple addTuple(Tuple t)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public Tuple[] clearInternal()(Code)(Java Doc)
public boolean containsTuple(Tuple t)(Code)(Java Doc)
public int getTupleCount()(Code)(Java Doc)
final protected boolean removeInternal(Tuple t)(Code)(Java Doc)
public boolean removeTuple(Tuple t)(Code)(Java Doc)
public Tuple setTuple(Tuple t)(Code)(Java Doc)
public Tuple[] toArray()(Code)(Java Doc)
public Iterator tuples()(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.