Java Doc for KeywordSearchTupleSet.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.KeywordSearchTupleSet

KeywordSearchTupleSet
public class KeywordSearchTupleSet extends SearchTupleSet (Code)

SearchTupleSet implementation that performs text searches on indexed Tuple data using the Lucene search engine. Lucene is an open source search engine supporting full text indexing and keyword search. Please refer to the Lucene web page for more information. Note that for this class to be used by prefuse applications, the Lucene classes must be included on the application classpath.


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


Field Summary
protected  intm_id
    
protected  LuceneSearcherm_lucene
    
protected  IntObjectHashMapm_map
    
protected  Stringm_query
    
protected  booleanm_storeTermVectors
    

Constructor Summary
public  KeywordSearchTupleSet()
     Creates a new KeywordSearchFocusSet using an in-memory search index.
public  KeywordSearchTupleSet(LuceneSearcher searcher)
     Creates a new TextSearchFocusSet with the given LuceneSearcher.

Method Summary
public  voidclear()
     Removes all search hits and clears out the index.
protected  DocumentgetDocument(int id, String text)
     Create a Lucene Document instance with the given document ID and text.
public  LuceneSearchergetLuceneSearcher()
     Get the LuceneSearcher instance used by this class.
protected  TuplegetMatchingTuple(Document d)
     Return the Tuple matching the given Lucene Document, if any.
Parameters:
  d - the Document to lookup.
public  StringgetQuery()
     Returns the current search query, if any.
public  IntObjectHashMapgetTupleMap()
     Returns a copy of the mapping from Lucene document IDs to prefuse Tuple instances.
public  voidindex(Tuple t, String field)
    
public  booleanisUnindexSupported()
     Returns false, as unindexing values is not currently supported.
public  voidsearch(String query)
     Searches the indexed Tuple fields for matching keywords, using the Lucene search engine.
public  voidunindex(Tuple t, String attrName)
     This method throws an exception, as unidexing is not supported.

Field Detail
m_id
protected int m_id(Code)



m_lucene
protected LuceneSearcher m_lucene(Code)



m_map
protected IntObjectHashMap m_map(Code)



m_query
protected String m_query(Code)



m_storeTermVectors
protected boolean m_storeTermVectors(Code)




Constructor Detail
KeywordSearchTupleSet
public KeywordSearchTupleSet()(Code)
Creates a new KeywordSearchFocusSet using an in-memory search index.



KeywordSearchTupleSet
public KeywordSearchTupleSet(LuceneSearcher searcher)(Code)
Creates a new TextSearchFocusSet with the given LuceneSearcher.
Parameters:
  searcher - the LuceneSearcher to use.




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



getDocument
protected Document getDocument(int id, String text)(Code)
Create a Lucene Document instance with the given document ID and text.
Parameters:
  id - the document ID
Parameters:
  text - the text the Document should contain a new Lucene Document instance



getLuceneSearcher
public LuceneSearcher getLuceneSearcher()(Code)
Get the LuceneSearcher instance used by this class. returns the backing lucene searcher.



getMatchingTuple
protected Tuple getMatchingTuple(Document d)(Code)
Return the Tuple matching the given Lucene Document, if any.
Parameters:
  d - the Document to lookup. the matching Tuple, or null if none.



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



getTupleMap
public IntObjectHashMap getTupleMap()(Code)
Returns a copy of the mapping from Lucene document IDs to prefuse Tuple instances. a copy of the map from lucene doc IDs to prefuse Tuples.



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

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



isUnindexSupported
public boolean isUnindexSupported()(Code)
Returns false, as unindexing values is not currently supported.
See Also:   prefuse.data.search.SearchTupleSet.isUnindexSupported



search
public void search(String query)(Code)
Searches the indexed Tuple fields for matching keywords, using the Lucene search engine. Matching Tuples are available as the members of this TupleSet.
Parameters:
  query - the query string to search for



unindex
public void unindex(Tuple t, String attrName)(Code)
This method throws an exception, as unidexing is not supported.
See Also:   prefuse.data.search.SearchTupleSet.unindex(prefuse.data.Tuplejava.lang.String)
throws:
  UnsupportedOperationException -



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.