Java Doc for DocSet.java in  » Search-Engine » apache-solr-1.2.0 » org » apache » solr » 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 » Search Engine » apache solr 1.2.0 » org.apache.solr.search 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.solr.search.DocSet

DocSet
public interface DocSet (Code)
DocSet represents an unordered set of Lucene Document Ids.

WARNING: Any DocSet returned from SolrIndexSearcher should not be modified as it may have been retrieved from a cache and could be shared.


author:
   yonik
version:
   $Id: DocSet.java 542679 2007-05-29 22:28:21Z ryan $
since:
   solr 0.9




Method Summary
public  voidadd(int doc)
     Adds the specified document if it is not currently in the DocSet (optional operation).
public  voidaddUnique(int doc)
     Adds a document the caller knows is not currently in the DocSet (optional operation).
public  DocSetandNot(DocSet other)
     Returns the documents in this set that are not in the other set.
public  intandNotSize(DocSet other)
     Returns the number of documents in this set that are not in the other set.
public  booleanexists(int docid)
     Returns true if a document is in the DocSet.
public  OpenBitSetgetBits()
     Returns a BitSet view of the DocSet.
public  DocSetintersection(DocSet other)
     Returns the intersection of this set with another set.
public  intintersectionSize(DocSet other)
     Returns the number of documents of the intersection of this set with another set.
public  DocIteratoriterator()
     Returns an iterator that may be used to iterate over all of the documents in the set.
public  longmemSize()
     Returns the approximate amount of memory taken by this DocSet.
public  intsize()
     Returns the number of documents in the set.
public  DocSetunion(DocSet other)
     Returns the union of this set with another set.
public  intunionSize(DocSet other)
     Returns the number of documents of the union of this set with another set.



Method Detail
add
public void add(int doc)(Code)
Adds the specified document if it is not currently in the DocSet (optional operation).
See Also:   DocSet.addUnique
throws:
  SolrException - if the implementation does not allow modifications



addUnique
public void addUnique(int doc)(Code)
Adds a document the caller knows is not currently in the DocSet (optional operation).

This method may be faster then add(doc) in some implementaions provided the caller is certain of the precondition.


See Also:   DocSet.add
throws:
  SolrException - if the implementation does not allow modifications



andNot
public DocSet andNot(DocSet other)(Code)
Returns the documents in this set that are not in the other set. Neither set is modified - a new DocSet is created and returned. a DocSet representing this AND NOT other



andNotSize
public int andNotSize(DocSet other)(Code)
Returns the number of documents in this set that are not in the other set.



exists
public boolean exists(int docid)(Code)
Returns true if a document is in the DocSet.



getBits
public OpenBitSet getBits()(Code)
Returns a BitSet view of the DocSet. Any changes to this BitSet may be reflected in the DocSet, hence if the DocSet is shared or was returned from a SolrIndexSearcher method, it's not safe to modify the BitSet. An OpenBitSet with the bit number of every docid set in the set.



intersection
public DocSet intersection(DocSet other)(Code)
Returns the intersection of this set with another set. Neither set is modified - a new DocSet is created and returned. a DocSet representing the intersection



intersectionSize
public int intersectionSize(DocSet other)(Code)
Returns the number of documents of the intersection of this set with another set. May be more efficient than actually creating the intersection and then getting it's size.



iterator
public DocIterator iterator()(Code)
Returns an iterator that may be used to iterate over all of the documents in the set.

The order of the documents returned by this iterator is non-deterministic, and any scoring information is meaningless




memSize
public long memSize()(Code)
Returns the approximate amount of memory taken by this DocSet. This is only an approximation and doesn't take into account java object overhead. the approximate memory consumption in bytes



size
public int size()(Code)
Returns the number of documents in the set.



union
public DocSet union(DocSet other)(Code)
Returns the union of this set with another set. Neither set is modified - a new DocSet is created and returned. a DocSet representing the union



unionSize
public int unionSize(DocSet other)(Code)
Returns the number of documents of the union of this set with another set. May be more efficient than actually creating the union and then getting it's size.



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