Java Doc for PrefixSearchTupleSet.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.search.SearchTupleSet
   prefuse.data.search.PrefixSearchTupleSet

PrefixSearchTupleSet
public class PrefixSearchTupleSet extends SearchTupleSet (Code)

SearchTupleSet implementation supporting word prefix searches over indexed Tuple data fields. This class uses a Trie Trie data structure to find search results quickly; however, only prefix matches will be identified as valid search matches. Multi-term search queries will result in the union of the results for the individual query terms. That is, Tuples that match any one of the terms will be included in the results.

For more advanced search capabilities, see KeywordSearchTupleSet or RegexSearchTupleSet .


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



Constructor Summary
public  PrefixSearchTupleSet()
     Creates a new KeywordSearchFocusSet that is not case sensitive.
public  PrefixSearchTupleSet(boolean caseSensitive)
     Creates a new KeywordSearchFocusSet with the indicated case sensitivity.

Method Summary
public  voidclear()
     Removes all search hits and clears out the index.
public  StringgetDelimiterString()
     Returns the delimiter string used to divide data values and queries into separate words.
public  StringgetQuery()
    
public  voidindex(Tuple t, String field)
     Indexes the given field of the provided Tuple instance.
public  booleanisUnindexSupported()
     Returns true, as unidexing is supported by this class.
public  voidsearch(String query)
     Searches the indexed Tuple fields for matching string prefixes, adding the Tuple instances for each search match to this TupleSet. The query string is first broken up into separate terms, as determined by the current delimiter string.
public  voidsetDelimiterString(String delim)
     Sets the delimiter string used to divide data values and queries into separate words.
public  voidunindex(Tuple t, String field)
    


Constructor Detail
PrefixSearchTupleSet
public PrefixSearchTupleSet()(Code)
Creates a new KeywordSearchFocusSet that is not case sensitive.



PrefixSearchTupleSet
public PrefixSearchTupleSet(boolean caseSensitive)(Code)
Creates a new KeywordSearchFocusSet with the indicated case sensitivity.
Parameters:
  caseSensitive - true if the search routines should be casesensitive, false otherwise.




Method Detail
clear
public void clear()(Code)
Removes all search hits and clears out the index.
See Also:   prefuse.data.tuple.TupleSet.clear



getDelimiterString
public String getDelimiterString()(Code)
Returns the delimiter string used to divide data values and queries into separate words. By default, the value consists of just whitespace characters. the delimiter string used. This is passed as an argument to ajava.util.StringTokenizer instance that will tokenize the text.
See Also:   java.util.StringTokenizer



getQuery
public String getQuery()(Code)

See Also:   prefuse.data.search.SearchTupleSet.getQuery



index
public void index(Tuple t, String field)(Code)
Indexes the given field of the provided Tuple instance.
See Also:   prefuse.data.search.SearchTupleSet.index(prefuse.data.Tuplejava.lang.String)



isUnindexSupported
public boolean isUnindexSupported()(Code)
Returns true, as unidexing is supported by this class.
See Also:   prefuse.data.search.SearchTupleSet.isUnindexSupported



search
public void search(String query)(Code)
Searches the indexed Tuple fields for matching string prefixes, adding the Tuple instances for each search match to this TupleSet. The query string is first broken up into separate terms, as determined by the current delimiter string. A search for each term is conducted, and all matching Tuples are included in the results.
Parameters:
  query - the query string to search for.
See Also:   PrefixSearchTupleSet.setDelimiterString(String)



setDelimiterString
public void setDelimiterString(String delim)(Code)
Sets the delimiter string used to divide data values and queries into separate words. By default, the delimiter consists of just whitespace characters.
Parameters:
  delim - the delimiter string to use. This is passed as an argumentto a java.util.StringTokenizer instance that will tokenize thetext.
See Also:   java.util.StringTokenizer



unindex
public void unindex(Tuple t, String field)(Code)

See Also:   prefuse.data.search.SearchTupleSet.unindex(prefuse.data.Tuplejava.lang.String)



Methods inherited from prefuse.data.search.SearchTupleSet
public Tuple addTuple(Tuple t)(Code)(Java Doc)
abstract public String getQuery()(Code)(Java Doc)
public void index(Iterator tuples, String field)(Code)(Java Doc)
abstract public void index(Tuple t, String field)(Code)(Java Doc)
abstract public boolean isUnindexSupported()(Code)(Java Doc)
public boolean removeTuple(Tuple t)(Code)(Java Doc)
abstract public void search(String query)(Code)(Java Doc)
abstract public void unindex(Tuple t, String field)(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.