[7588] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
---|
| 2 | <!--NewPage--> |
---|
| 3 | <HTML> |
---|
| 4 | <HEAD> |
---|
| 5 | <!-- Generated by javadoc (build 1.6.0_24) on Mon Jun 25 15:26:25 EDT 2012 --> |
---|
| 6 | <META http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
| 7 | <TITLE> |
---|
| 8 | BitDocSet (Solr 4.0.0-ALPHA API) |
---|
| 9 | </TITLE> |
---|
| 10 | |
---|
| 11 | <META NAME="date" CONTENT="2012-06-25"> |
---|
| 12 | |
---|
| 13 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
---|
| 14 | |
---|
| 15 | <SCRIPT type="text/javascript"> |
---|
| 16 | function windowTitle() |
---|
| 17 | { |
---|
| 18 | if (location.href.indexOf('is-external=true') == -1) { |
---|
| 19 | parent.document.title="BitDocSet (Solr 4.0.0-ALPHA API)"; |
---|
| 20 | } |
---|
| 21 | } |
---|
| 22 | </SCRIPT> |
---|
| 23 | <NOSCRIPT> |
---|
| 24 | </NOSCRIPT> |
---|
| 25 | |
---|
| 26 | </HEAD> |
---|
| 27 | |
---|
| 28 | <BODY BGCOLOR="white" onload="windowTitle();"> |
---|
| 29 | <HR> |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | <!-- ========= START OF TOP NAVBAR ======= --> |
---|
| 33 | <A NAME="navbar_top"><!-- --></A> |
---|
| 34 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
---|
| 35 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 36 | <TR> |
---|
| 37 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 38 | <A NAME="navbar_top_firstrow"><!-- --></A> |
---|
| 39 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 40 | <TR ALIGN="center" VALIGN="top"> |
---|
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 42 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 43 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/BitDocSet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 48 | </TR> |
---|
| 49 | </TABLE> |
---|
| 50 | </TD> |
---|
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 52 | </EM> |
---|
| 53 | </TD> |
---|
| 54 | </TR> |
---|
| 55 | |
---|
| 56 | <TR> |
---|
| 57 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 58 | PREV CLASS |
---|
| 59 | <A HREF="../../../../org/apache/solr/search/BoostQParserPlugin.html" title="class in org.apache.solr.search"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 60 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 61 | <A HREF="../../../../index.html?org/apache/solr/search/BitDocSet.html" target="_top"><B>FRAMES</B></A> |
---|
| 62 | <A HREF="BitDocSet.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 63 | <SCRIPT type="text/javascript"> |
---|
| 64 | <!-- |
---|
| 65 | if(window==top) { |
---|
| 66 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 67 | } |
---|
| 68 | //--> |
---|
| 69 | </SCRIPT> |
---|
| 70 | <NOSCRIPT> |
---|
| 71 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 72 | </NOSCRIPT> |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | </FONT></TD> |
---|
| 76 | </TR> |
---|
| 77 | <TR> |
---|
| 78 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 79 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 80 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 81 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 82 | </TR> |
---|
| 83 | </TABLE> |
---|
| 84 | <A NAME="skip-navbar_top"></A> |
---|
| 85 | <!-- ========= END OF TOP NAVBAR ========= --> |
---|
| 86 | |
---|
| 87 | <HR> |
---|
| 88 | <!-- ======== START OF CLASS DATA ======== --> |
---|
| 89 | <H2> |
---|
| 90 | <FONT SIZE="-1"> |
---|
| 91 | org.apache.solr.search</FONT> |
---|
| 92 | <BR> |
---|
| 93 | Class BitDocSet</H2> |
---|
| 94 | <PRE> |
---|
| 95 | <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> |
---|
| 96 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.solr.search.BitDocSet</B> |
---|
| 97 | </PRE> |
---|
| 98 | <DL> |
---|
| 99 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></DD> |
---|
| 100 | </DL> |
---|
| 101 | <HR> |
---|
| 102 | <DL> |
---|
| 103 | <DT><PRE>public class <B>BitDocSet</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> |
---|
| 104 | </PRE> |
---|
| 105 | |
---|
| 106 | <P> |
---|
| 107 | <code>BitDocSet</code> represents an unordered set of Lucene Document Ids |
---|
| 108 | using a BitSet. A set bit represents inclusion in the set for that document. |
---|
| 109 | <P> |
---|
| 110 | |
---|
| 111 | <P> |
---|
| 112 | <DL> |
---|
| 113 | <DT><B>Since:</B></DT> |
---|
| 114 | <DD>solr 0.9</DD> |
---|
| 115 | </DL> |
---|
| 116 | <HR> |
---|
| 117 | |
---|
| 118 | <P> |
---|
| 119 | <!-- =========== FIELD SUMMARY =========== --> |
---|
| 120 | |
---|
| 121 | <A NAME="field_summary"><!-- --></A> |
---|
| 122 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 123 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 124 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 125 | <B>Field Summary</B></FONT></TH> |
---|
| 126 | </TR> |
---|
| 127 | </TABLE> |
---|
| 128 | <A NAME="fields_inherited_from_class_org.apache.solr.search.DocSet"><!-- --></A> |
---|
| 129 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 130 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 131 | <TH ALIGN="left"><B>Fields inherited from interface org.apache.solr.search.<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></B></TH> |
---|
| 132 | </TR> |
---|
| 133 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 134 | <TD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#EMPTY">EMPTY</A></CODE></TD> |
---|
| 135 | </TR> |
---|
| 136 | </TABLE> |
---|
| 137 | |
---|
| 138 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
---|
| 139 | |
---|
| 140 | <A NAME="constructor_summary"><!-- --></A> |
---|
| 141 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 142 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 143 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 144 | <B>Constructor Summary</B></FONT></TH> |
---|
| 145 | </TR> |
---|
| 146 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 147 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#BitDocSet()">BitDocSet</A></B>()</CODE> |
---|
| 148 | |
---|
| 149 | <BR> |
---|
| 150 | </TD> |
---|
| 151 | </TR> |
---|
| 152 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 153 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#BitDocSet(org.apache.lucene.util.OpenBitSet)">BitDocSet</A></B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/util/OpenBitSet.html?is-external=true" title="class or interface in org.apache.lucene.util">OpenBitSet</A> bits)</CODE> |
---|
| 154 | |
---|
| 155 | <BR> |
---|
| 156 | Construct a BitDocSet.</TD> |
---|
| 157 | </TR> |
---|
| 158 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 159 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#BitDocSet(org.apache.lucene.util.OpenBitSet, int)">BitDocSet</A></B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/util/OpenBitSet.html?is-external=true" title="class or interface in org.apache.lucene.util">OpenBitSet</A> bits, |
---|
| 160 | int size)</CODE> |
---|
| 161 | |
---|
| 162 | <BR> |
---|
| 163 | Construct a BitDocSet, and provides the number of set bits.</TD> |
---|
| 164 | </TR> |
---|
| 165 | </TABLE> |
---|
| 166 | |
---|
| 167 | <!-- ========== METHOD SUMMARY =========== --> |
---|
| 168 | |
---|
| 169 | <A NAME="method_summary"><!-- --></A> |
---|
| 170 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 171 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 172 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
---|
| 173 | <B>Method Summary</B></FONT></TH> |
---|
| 174 | </TR> |
---|
| 175 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 176 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 177 | <CODE> void</CODE></FONT></TD> |
---|
| 178 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#add(int)">add</A></B>(int doc)</CODE> |
---|
| 179 | |
---|
| 180 | <BR> |
---|
| 181 | Adds the specified document if it is not currently in the DocSet |
---|
| 182 | (optional operation).</TD> |
---|
| 183 | </TR> |
---|
| 184 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 185 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 186 | <CODE> void</CODE></FONT></TD> |
---|
| 187 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#addUnique(int)">addUnique</A></B>(int doc)</CODE> |
---|
| 188 | |
---|
| 189 | <BR> |
---|
| 190 | Adds a document the caller knows is not currently in the DocSet |
---|
| 191 | (optional operation).</TD> |
---|
| 192 | </TR> |
---|
| 193 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 194 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 195 | <CODE> <A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></FONT></TD> |
---|
| 196 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#andNot(org.apache.solr.search.DocSet)">andNot</A></B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</CODE> |
---|
| 197 | |
---|
| 198 | <BR> |
---|
| 199 | Returns the documents in this set that are not in the other set.</TD> |
---|
| 200 | </TR> |
---|
| 201 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 202 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 203 | <CODE> int</CODE></FONT></TD> |
---|
| 204 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#andNotSize(org.apache.solr.search.DocSet)">andNotSize</A></B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</CODE> |
---|
| 205 | |
---|
| 206 | <BR> |
---|
| 207 | Returns the number of documents in this set that are not in the other set.</TD> |
---|
| 208 | </TR> |
---|
| 209 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 210 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 211 | <CODE>protected <A HREF="../../../../org/apache/solr/search/BitDocSet.html" title="class in org.apache.solr.search">BitDocSet</A></CODE></FONT></TD> |
---|
| 212 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#clone()">clone</A></B>()</CODE> |
---|
| 213 | |
---|
| 214 | <BR> |
---|
| 215 | </TD> |
---|
| 216 | </TR> |
---|
| 217 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 218 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 219 | <CODE> boolean</CODE></FONT></TD> |
---|
| 220 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> obj)</CODE> |
---|
| 221 | |
---|
| 222 | <BR> |
---|
| 223 | </TD> |
---|
| 224 | </TR> |
---|
| 225 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 226 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 227 | <CODE> boolean</CODE></FONT></TD> |
---|
| 228 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#exists(int)">exists</A></B>(int doc)</CODE> |
---|
| 229 | |
---|
| 230 | <BR> |
---|
| 231 | Returns true of the doc exists in the set.</TD> |
---|
| 232 | </TR> |
---|
| 233 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 234 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 235 | <CODE> <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/util/OpenBitSet.html?is-external=true" title="class or interface in org.apache.lucene.util">OpenBitSet</A></CODE></FONT></TD> |
---|
| 236 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#getBits()">getBits</A></B>()</CODE> |
---|
| 237 | |
---|
| 238 | <BR> |
---|
| 239 | Inefficient base implementation.</TD> |
---|
| 240 | </TR> |
---|
| 241 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 242 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 243 | <CODE> <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Filter.html?is-external=true" title="class or interface in org.apache.lucene.search">Filter</A></CODE></FONT></TD> |
---|
| 244 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#getTopFilter()">getTopFilter</A></B>()</CODE> |
---|
| 245 | |
---|
| 246 | <BR> |
---|
| 247 | Returns a Filter for use in Lucene search methods, assuming this DocSet |
---|
| 248 | was generated from the top-level MultiReader that the Lucene search |
---|
| 249 | methods will be invoked with.</TD> |
---|
| 250 | </TR> |
---|
| 251 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 252 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 253 | <CODE> <A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></FONT></TD> |
---|
| 254 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#intersection(org.apache.solr.search.DocSet)">intersection</A></B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</CODE> |
---|
| 255 | |
---|
| 256 | <BR> |
---|
| 257 | Returns the intersection of this set with another set.</TD> |
---|
| 258 | </TR> |
---|
| 259 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 260 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 261 | <CODE> int</CODE></FONT></TD> |
---|
| 262 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#intersectionSize(org.apache.solr.search.DocSet)">intersectionSize</A></B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</CODE> |
---|
| 263 | |
---|
| 264 | <BR> |
---|
| 265 | Returns the number of documents of the intersection of this set with another set.</TD> |
---|
| 266 | </TR> |
---|
| 267 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 268 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 269 | <CODE> boolean</CODE></FONT></TD> |
---|
| 270 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#intersects(org.apache.solr.search.DocSet)">intersects</A></B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</CODE> |
---|
| 271 | |
---|
| 272 | <BR> |
---|
| 273 | Returns true if these sets have any elements in common</TD> |
---|
| 274 | </TR> |
---|
| 275 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 276 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 277 | <CODE> void</CODE></FONT></TD> |
---|
| 278 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#invalidateSize()">invalidateSize</A></B>()</CODE> |
---|
| 279 | |
---|
| 280 | <BR> |
---|
| 281 | The number of set bits - size - is cached.</TD> |
---|
| 282 | </TR> |
---|
| 283 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 284 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 285 | <CODE> <A HREF="../../../../org/apache/solr/search/DocIterator.html" title="interface in org.apache.solr.search">DocIterator</A></CODE></FONT></TD> |
---|
| 286 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#iterator()">iterator</A></B>()</CODE> |
---|
| 287 | |
---|
| 288 | <BR> |
---|
| 289 | DocIterator using nextSetBit() |
---|
| 290 | public DocIterator iterator() { |
---|
| 291 | return new DocIterator() { |
---|
| 292 | int pos=bits.nextSetBit(0); |
---|
| 293 | public boolean hasNext() { |
---|
| 294 | return pos>=0; |
---|
| 295 | } |
---|
| 296 | |
---|
| 297 | public Integer next() { |
---|
| 298 | return nextDoc(); |
---|
| 299 | } |
---|
| 300 | |
---|
| 301 | public void remove() { |
---|
| 302 | bits.clear(pos); |
---|
| 303 | } |
---|
| 304 | |
---|
| 305 | public int nextDoc() { |
---|
| 306 | int old=pos; |
---|
| 307 | pos=bits.nextSetBit(old+1); |
---|
| 308 | return old; |
---|
| 309 | } |
---|
| 310 | |
---|
| 311 | public float score() { |
---|
| 312 | return 0.0f; |
---|
| 313 | } |
---|
| 314 | }; |
---|
| 315 | }</TD> |
---|
| 316 | </TR> |
---|
| 317 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 318 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 319 | <CODE> long</CODE></FONT></TD> |
---|
| 320 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#memSize()">memSize</A></B>()</CODE> |
---|
| 321 | |
---|
| 322 | <BR> |
---|
| 323 | Returns the approximate amount of memory taken by this DocSet.</TD> |
---|
| 324 | </TR> |
---|
| 325 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 326 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 327 | <CODE> void</CODE></FONT></TD> |
---|
| 328 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#setBitsOn(org.apache.lucene.util.OpenBitSet)">setBitsOn</A></B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/util/OpenBitSet.html?is-external=true" title="class or interface in org.apache.lucene.util">OpenBitSet</A> target)</CODE> |
---|
| 329 | |
---|
| 330 | <BR> |
---|
| 331 | Takes the docs from this set and sets those bits on the target OpenBitSet.</TD> |
---|
| 332 | </TR> |
---|
| 333 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 334 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 335 | <CODE> int</CODE></FONT></TD> |
---|
| 336 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#size()">size</A></B>()</CODE> |
---|
| 337 | |
---|
| 338 | <BR> |
---|
| 339 | Returns the number of documents in the set.</TD> |
---|
| 340 | </TR> |
---|
| 341 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 342 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 343 | <CODE> <A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></FONT></TD> |
---|
| 344 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#union(org.apache.solr.search.DocSet)">union</A></B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</CODE> |
---|
| 345 | |
---|
| 346 | <BR> |
---|
| 347 | Returns the union of this set with another set.</TD> |
---|
| 348 | </TR> |
---|
| 349 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 350 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
---|
| 351 | <CODE> int</CODE></FONT></TD> |
---|
| 352 | <TD><CODE><B><A HREF="../../../../org/apache/solr/search/BitDocSet.html#unionSize(org.apache.solr.search.DocSet)">unionSize</A></B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</CODE> |
---|
| 353 | |
---|
| 354 | <BR> |
---|
| 355 | Returns the number of documents of the union of this set with another set.</TD> |
---|
| 356 | </TR> |
---|
| 357 | </TABLE> |
---|
| 358 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
---|
| 359 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 360 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
---|
| 361 | <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> |
---|
| 362 | </TR> |
---|
| 363 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
---|
| 364 | <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> |
---|
| 365 | </TR> |
---|
| 366 | </TABLE> |
---|
| 367 | |
---|
| 368 | <P> |
---|
| 369 | |
---|
| 370 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
---|
| 371 | |
---|
| 372 | <A NAME="constructor_detail"><!-- --></A> |
---|
| 373 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 374 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 375 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 376 | <B>Constructor Detail</B></FONT></TH> |
---|
| 377 | </TR> |
---|
| 378 | </TABLE> |
---|
| 379 | |
---|
| 380 | <A NAME="BitDocSet()"><!-- --></A><H3> |
---|
| 381 | BitDocSet</H3> |
---|
| 382 | <PRE> |
---|
| 383 | public <B>BitDocSet</B>()</PRE> |
---|
| 384 | <DL> |
---|
| 385 | </DL> |
---|
| 386 | <HR> |
---|
| 387 | |
---|
| 388 | <A NAME="BitDocSet(org.apache.lucene.util.OpenBitSet)"><!-- --></A><H3> |
---|
| 389 | BitDocSet</H3> |
---|
| 390 | <PRE> |
---|
| 391 | public <B>BitDocSet</B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/util/OpenBitSet.html?is-external=true" title="class or interface in org.apache.lucene.util">OpenBitSet</A> bits)</PRE> |
---|
| 392 | <DL> |
---|
| 393 | <DD>Construct a BitDocSet. |
---|
| 394 | The capacity of the OpenBitSet should be at least maxDoc() |
---|
| 395 | <P> |
---|
| 396 | </DL> |
---|
| 397 | <HR> |
---|
| 398 | |
---|
| 399 | <A NAME="BitDocSet(org.apache.lucene.util.OpenBitSet, int)"><!-- --></A><H3> |
---|
| 400 | BitDocSet</H3> |
---|
| 401 | <PRE> |
---|
| 402 | public <B>BitDocSet</B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/util/OpenBitSet.html?is-external=true" title="class or interface in org.apache.lucene.util">OpenBitSet</A> bits, |
---|
| 403 | int size)</PRE> |
---|
| 404 | <DL> |
---|
| 405 | <DD>Construct a BitDocSet, and provides the number of set bits. |
---|
| 406 | The capacity of the OpenBitSet should be at least maxDoc() |
---|
| 407 | <P> |
---|
| 408 | </DL> |
---|
| 409 | |
---|
| 410 | <!-- ============ METHOD DETAIL ========== --> |
---|
| 411 | |
---|
| 412 | <A NAME="method_detail"><!-- --></A> |
---|
| 413 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
---|
| 414 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
---|
| 415 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
---|
| 416 | <B>Method Detail</B></FONT></TH> |
---|
| 417 | </TR> |
---|
| 418 | </TABLE> |
---|
| 419 | |
---|
| 420 | <A NAME="iterator()"><!-- --></A><H3> |
---|
| 421 | iterator</H3> |
---|
| 422 | <PRE> |
---|
| 423 | public <A HREF="../../../../org/apache/solr/search/DocIterator.html" title="interface in org.apache.solr.search">DocIterator</A> <B>iterator</B>()</PRE> |
---|
| 424 | <DL> |
---|
| 425 | <DD>DocIterator using nextSetBit() |
---|
| 426 | public DocIterator iterator() { |
---|
| 427 | return new DocIterator() { |
---|
| 428 | int pos=bits.nextSetBit(0); |
---|
| 429 | public boolean hasNext() { |
---|
| 430 | return pos>=0; |
---|
| 431 | } |
---|
| 432 | |
---|
| 433 | public Integer next() { |
---|
| 434 | return nextDoc(); |
---|
| 435 | } |
---|
| 436 | |
---|
| 437 | public void remove() { |
---|
| 438 | bits.clear(pos); |
---|
| 439 | } |
---|
| 440 | |
---|
| 441 | public int nextDoc() { |
---|
| 442 | int old=pos; |
---|
| 443 | pos=bits.nextSetBit(old+1); |
---|
| 444 | return old; |
---|
| 445 | } |
---|
| 446 | |
---|
| 447 | public float score() { |
---|
| 448 | return 0.0f; |
---|
| 449 | } |
---|
| 450 | }; |
---|
| 451 | } |
---|
| 452 | <P> |
---|
| 453 | <DD><DL> |
---|
| 454 | </DL> |
---|
| 455 | </DD> |
---|
| 456 | </DL> |
---|
| 457 | <HR> |
---|
| 458 | |
---|
| 459 | <A NAME="getBits()"><!-- --></A><H3> |
---|
| 460 | getBits</H3> |
---|
| 461 | <PRE> |
---|
| 462 | public <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/util/OpenBitSet.html?is-external=true" title="class or interface in org.apache.lucene.util">OpenBitSet</A> <B>getBits</B>()</PRE> |
---|
| 463 | <DL> |
---|
| 464 | <DD>Inefficient base implementation. |
---|
| 465 | <P> |
---|
| 466 | <DD><DL> |
---|
| 467 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#getBits()">getBits</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></DL> |
---|
| 468 | </DD> |
---|
| 469 | <DD><DL> |
---|
| 470 | |
---|
| 471 | <DT><B>Returns:</B><DD>the <b>internal</b> OpenBitSet that should <b>not</b> be modified.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/solr/search/BitDocSet.html#getBits()"><CODE>getBits()</CODE></A></DL> |
---|
| 472 | </DD> |
---|
| 473 | </DL> |
---|
| 474 | <HR> |
---|
| 475 | |
---|
| 476 | <A NAME="add(int)"><!-- --></A><H3> |
---|
| 477 | add</H3> |
---|
| 478 | <PRE> |
---|
| 479 | public void <B>add</B>(int doc)</PRE> |
---|
| 480 | <DL> |
---|
| 481 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#add(int)">DocSet</A></CODE></B></DD> |
---|
| 482 | <DD>Adds the specified document if it is not currently in the DocSet |
---|
| 483 | (optional operation). |
---|
| 484 | <P> |
---|
| 485 | <DD><DL> |
---|
| 486 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#add(int)">add</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></DL> |
---|
| 487 | </DD> |
---|
| 488 | <DD><DL> |
---|
| 489 | <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/solr/search/DocSet.html#addUnique(int)"><CODE>DocSet.addUnique(int)</CODE></A></DL> |
---|
| 490 | </DD> |
---|
| 491 | </DL> |
---|
| 492 | <HR> |
---|
| 493 | |
---|
| 494 | <A NAME="addUnique(int)"><!-- --></A><H3> |
---|
| 495 | addUnique</H3> |
---|
| 496 | <PRE> |
---|
| 497 | public void <B>addUnique</B>(int doc)</PRE> |
---|
| 498 | <DL> |
---|
| 499 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#addUnique(int)">DocSet</A></CODE></B></DD> |
---|
| 500 | <DD>Adds a document the caller knows is not currently in the DocSet |
---|
| 501 | (optional operation). |
---|
| 502 | |
---|
| 503 | <p> |
---|
| 504 | This method may be faster then <code>add(doc)</code> in some |
---|
| 505 | implementaions provided the caller is certain of the precondition. |
---|
| 506 | </p> |
---|
| 507 | <P> |
---|
| 508 | <DD><DL> |
---|
| 509 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#addUnique(int)">addUnique</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></DL> |
---|
| 510 | </DD> |
---|
| 511 | <DD><DL> |
---|
| 512 | <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/solr/search/DocSet.html#add(int)"><CODE>DocSet.add(int)</CODE></A></DL> |
---|
| 513 | </DD> |
---|
| 514 | </DL> |
---|
| 515 | <HR> |
---|
| 516 | |
---|
| 517 | <A NAME="size()"><!-- --></A><H3> |
---|
| 518 | size</H3> |
---|
| 519 | <PRE> |
---|
| 520 | public int <B>size</B>()</PRE> |
---|
| 521 | <DL> |
---|
| 522 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#size()">DocSet</A></CODE></B></DD> |
---|
| 523 | <DD>Returns the number of documents in the set. |
---|
| 524 | <P> |
---|
| 525 | <DD><DL> |
---|
| 526 | </DL> |
---|
| 527 | </DD> |
---|
| 528 | </DL> |
---|
| 529 | <HR> |
---|
| 530 | |
---|
| 531 | <A NAME="invalidateSize()"><!-- --></A><H3> |
---|
| 532 | invalidateSize</H3> |
---|
| 533 | <PRE> |
---|
| 534 | public void <B>invalidateSize</B>()</PRE> |
---|
| 535 | <DL> |
---|
| 536 | <DD>The number of set bits - size - is cached. If the bitset is changed externally, |
---|
| 537 | this method should be used to invalidate the previously cached size. |
---|
| 538 | <P> |
---|
| 539 | <DD><DL> |
---|
| 540 | </DL> |
---|
| 541 | </DD> |
---|
| 542 | </DL> |
---|
| 543 | <HR> |
---|
| 544 | |
---|
| 545 | <A NAME="exists(int)"><!-- --></A><H3> |
---|
| 546 | exists</H3> |
---|
| 547 | <PRE> |
---|
| 548 | public boolean <B>exists</B>(int doc)</PRE> |
---|
| 549 | <DL> |
---|
| 550 | <DD>Returns true of the doc exists in the set. |
---|
| 551 | Should only be called when doc < OpenBitSet.size() |
---|
| 552 | <P> |
---|
| 553 | <DD><DL> |
---|
| 554 | </DL> |
---|
| 555 | </DD> |
---|
| 556 | </DL> |
---|
| 557 | <HR> |
---|
| 558 | |
---|
| 559 | <A NAME="intersectionSize(org.apache.solr.search.DocSet)"><!-- --></A><H3> |
---|
| 560 | intersectionSize</H3> |
---|
| 561 | <PRE> |
---|
| 562 | public int <B>intersectionSize</B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</PRE> |
---|
| 563 | <DL> |
---|
| 564 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#intersectionSize(org.apache.solr.search.DocSet)">DocSet</A></CODE></B></DD> |
---|
| 565 | <DD>Returns the number of documents of the intersection of this set with another set. |
---|
| 566 | May be more efficient than actually creating the intersection and then getting it's size. |
---|
| 567 | <P> |
---|
| 568 | <DD><DL> |
---|
| 569 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#intersectionSize(org.apache.solr.search.DocSet)">intersectionSize</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></DL> |
---|
| 570 | </DD> |
---|
| 571 | <DD><DL> |
---|
| 572 | </DL> |
---|
| 573 | </DD> |
---|
| 574 | </DL> |
---|
| 575 | <HR> |
---|
| 576 | |
---|
| 577 | <A NAME="intersects(org.apache.solr.search.DocSet)"><!-- --></A><H3> |
---|
| 578 | intersects</H3> |
---|
| 579 | <PRE> |
---|
| 580 | public boolean <B>intersects</B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</PRE> |
---|
| 581 | <DL> |
---|
| 582 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#intersects(org.apache.solr.search.DocSet)">DocSet</A></CODE></B></DD> |
---|
| 583 | <DD>Returns true if these sets have any elements in common |
---|
| 584 | <P> |
---|
| 585 | <DD><DL> |
---|
| 586 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#intersects(org.apache.solr.search.DocSet)">intersects</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></DL> |
---|
| 587 | </DD> |
---|
| 588 | <DD><DL> |
---|
| 589 | </DL> |
---|
| 590 | </DD> |
---|
| 591 | </DL> |
---|
| 592 | <HR> |
---|
| 593 | |
---|
| 594 | <A NAME="unionSize(org.apache.solr.search.DocSet)"><!-- --></A><H3> |
---|
| 595 | unionSize</H3> |
---|
| 596 | <PRE> |
---|
| 597 | public int <B>unionSize</B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</PRE> |
---|
| 598 | <DL> |
---|
| 599 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#unionSize(org.apache.solr.search.DocSet)">DocSet</A></CODE></B></DD> |
---|
| 600 | <DD>Returns the number of documents of the union of this set with another set. |
---|
| 601 | May be more efficient than actually creating the union and then getting it's size. |
---|
| 602 | <P> |
---|
| 603 | <DD><DL> |
---|
| 604 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#unionSize(org.apache.solr.search.DocSet)">unionSize</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></DL> |
---|
| 605 | </DD> |
---|
| 606 | <DD><DL> |
---|
| 607 | </DL> |
---|
| 608 | </DD> |
---|
| 609 | </DL> |
---|
| 610 | <HR> |
---|
| 611 | |
---|
| 612 | <A NAME="andNotSize(org.apache.solr.search.DocSet)"><!-- --></A><H3> |
---|
| 613 | andNotSize</H3> |
---|
| 614 | <PRE> |
---|
| 615 | public int <B>andNotSize</B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</PRE> |
---|
| 616 | <DL> |
---|
| 617 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#andNotSize(org.apache.solr.search.DocSet)">DocSet</A></CODE></B></DD> |
---|
| 618 | <DD>Returns the number of documents in this set that are not in the other set. |
---|
| 619 | <P> |
---|
| 620 | <DD><DL> |
---|
| 621 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#andNotSize(org.apache.solr.search.DocSet)">andNotSize</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></DL> |
---|
| 622 | </DD> |
---|
| 623 | <DD><DL> |
---|
| 624 | </DL> |
---|
| 625 | </DD> |
---|
| 626 | </DL> |
---|
| 627 | <HR> |
---|
| 628 | |
---|
| 629 | <A NAME="setBitsOn(org.apache.lucene.util.OpenBitSet)"><!-- --></A><H3> |
---|
| 630 | setBitsOn</H3> |
---|
| 631 | <PRE> |
---|
| 632 | public void <B>setBitsOn</B>(<A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/util/OpenBitSet.html?is-external=true" title="class or interface in org.apache.lucene.util">OpenBitSet</A> target)</PRE> |
---|
| 633 | <DL> |
---|
| 634 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#setBitsOn(org.apache.lucene.util.OpenBitSet)">DocSet</A></CODE></B></DD> |
---|
| 635 | <DD>Takes the docs from this set and sets those bits on the target OpenBitSet. |
---|
| 636 | The target should be sized large enough to accommodate all of the documents before calling this method. |
---|
| 637 | <P> |
---|
| 638 | <DD><DL> |
---|
| 639 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#setBitsOn(org.apache.lucene.util.OpenBitSet)">setBitsOn</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></DL> |
---|
| 640 | </DD> |
---|
| 641 | <DD><DL> |
---|
| 642 | </DL> |
---|
| 643 | </DD> |
---|
| 644 | </DL> |
---|
| 645 | <HR> |
---|
| 646 | |
---|
| 647 | <A NAME="andNot(org.apache.solr.search.DocSet)"><!-- --></A><H3> |
---|
| 648 | andNot</H3> |
---|
| 649 | <PRE> |
---|
| 650 | public <A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> <B>andNot</B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</PRE> |
---|
| 651 | <DL> |
---|
| 652 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#andNot(org.apache.solr.search.DocSet)">DocSet</A></CODE></B></DD> |
---|
| 653 | <DD>Returns the documents in this set that are not in the other set. Neither set is modified - a new DocSet is |
---|
| 654 | created and returned. |
---|
| 655 | <P> |
---|
| 656 | <DD><DL> |
---|
| 657 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#andNot(org.apache.solr.search.DocSet)">andNot</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></DL> |
---|
| 658 | </DD> |
---|
| 659 | <DD><DL> |
---|
| 660 | |
---|
| 661 | <DT><B>Returns:</B><DD>a DocSet representing this AND NOT other</DL> |
---|
| 662 | </DD> |
---|
| 663 | </DL> |
---|
| 664 | <HR> |
---|
| 665 | |
---|
| 666 | <A NAME="union(org.apache.solr.search.DocSet)"><!-- --></A><H3> |
---|
| 667 | union</H3> |
---|
| 668 | <PRE> |
---|
| 669 | public <A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> <B>union</B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</PRE> |
---|
| 670 | <DL> |
---|
| 671 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#union(org.apache.solr.search.DocSet)">DocSet</A></CODE></B></DD> |
---|
| 672 | <DD>Returns the union of this set with another set. Neither set is modified - a new DocSet is |
---|
| 673 | created and returned. |
---|
| 674 | <P> |
---|
| 675 | <DD><DL> |
---|
| 676 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#union(org.apache.solr.search.DocSet)">union</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></DL> |
---|
| 677 | </DD> |
---|
| 678 | <DD><DL> |
---|
| 679 | |
---|
| 680 | <DT><B>Returns:</B><DD>a DocSet representing the union</DL> |
---|
| 681 | </DD> |
---|
| 682 | </DL> |
---|
| 683 | <HR> |
---|
| 684 | |
---|
| 685 | <A NAME="memSize()"><!-- --></A><H3> |
---|
| 686 | memSize</H3> |
---|
| 687 | <PRE> |
---|
| 688 | public long <B>memSize</B>()</PRE> |
---|
| 689 | <DL> |
---|
| 690 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#memSize()">DocSet</A></CODE></B></DD> |
---|
| 691 | <DD>Returns the approximate amount of memory taken by this DocSet. |
---|
| 692 | This is only an approximation and doesn't take into account java object overhead. |
---|
| 693 | <P> |
---|
| 694 | <DD><DL> |
---|
| 695 | |
---|
| 696 | <DT><B>Returns:</B><DD>the approximate memory consumption in bytes</DL> |
---|
| 697 | </DD> |
---|
| 698 | </DL> |
---|
| 699 | <HR> |
---|
| 700 | |
---|
| 701 | <A NAME="clone()"><!-- --></A><H3> |
---|
| 702 | clone</H3> |
---|
| 703 | <PRE> |
---|
| 704 | protected <A HREF="../../../../org/apache/solr/search/BitDocSet.html" title="class in org.apache.solr.search">BitDocSet</A> <B>clone</B>()</PRE> |
---|
| 705 | <DL> |
---|
| 706 | <DD><DL> |
---|
| 707 | <DT><B>Overrides:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> |
---|
| 708 | </DD> |
---|
| 709 | <DD><DL> |
---|
| 710 | </DL> |
---|
| 711 | </DD> |
---|
| 712 | </DL> |
---|
| 713 | <HR> |
---|
| 714 | |
---|
| 715 | <A NAME="getTopFilter()"><!-- --></A><H3> |
---|
| 716 | getTopFilter</H3> |
---|
| 717 | <PRE> |
---|
| 718 | public <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//core/org/apache/lucene/search/Filter.html?is-external=true" title="class or interface in org.apache.lucene.search">Filter</A> <B>getTopFilter</B>()</PRE> |
---|
| 719 | <DL> |
---|
| 720 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#getTopFilter()">DocSet</A></CODE></B></DD> |
---|
| 721 | <DD>Returns a Filter for use in Lucene search methods, assuming this DocSet |
---|
| 722 | was generated from the top-level MultiReader that the Lucene search |
---|
| 723 | methods will be invoked with. |
---|
| 724 | <P> |
---|
| 725 | <DD><DL> |
---|
| 726 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#getTopFilter()">getTopFilter</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></DL> |
---|
| 727 | </DD> |
---|
| 728 | <DD><DL> |
---|
| 729 | </DL> |
---|
| 730 | </DD> |
---|
| 731 | </DL> |
---|
| 732 | <HR> |
---|
| 733 | |
---|
| 734 | <A NAME="equals(java.lang.Object)"><!-- --></A><H3> |
---|
| 735 | equals</H3> |
---|
| 736 | <PRE> |
---|
| 737 | public boolean <B>equals</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> obj)</PRE> |
---|
| 738 | <DL> |
---|
| 739 | <DD><DL> |
---|
| 740 | <DT><B>Overrides:</B><DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A></CODE> in class <CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> |
---|
| 741 | </DD> |
---|
| 742 | <DD><DL> |
---|
| 743 | </DL> |
---|
| 744 | </DD> |
---|
| 745 | </DL> |
---|
| 746 | <HR> |
---|
| 747 | |
---|
| 748 | <A NAME="intersection(org.apache.solr.search.DocSet)"><!-- --></A><H3> |
---|
| 749 | intersection</H3> |
---|
| 750 | <PRE> |
---|
| 751 | public <A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> <B>intersection</B>(<A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A> other)</PRE> |
---|
| 752 | <DL> |
---|
| 753 | <DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#intersection(org.apache.solr.search.DocSet)">DocSet</A></CODE></B></DD> |
---|
| 754 | <DD>Returns the intersection of this set with another set. Neither set is modified - a new DocSet is |
---|
| 755 | created and returned. |
---|
| 756 | <P> |
---|
| 757 | <DD><DL> |
---|
| 758 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/solr/search/DocSet.html#intersection(org.apache.solr.search.DocSet)">intersection</A></CODE> in interface <CODE><A HREF="../../../../org/apache/solr/search/DocSet.html" title="interface in org.apache.solr.search">DocSet</A></CODE></DL> |
---|
| 759 | </DD> |
---|
| 760 | <DD><DL> |
---|
| 761 | |
---|
| 762 | <DT><B>Returns:</B><DD>a DocSet representing the intersection</DL> |
---|
| 763 | </DD> |
---|
| 764 | </DL> |
---|
| 765 | <!-- ========= END OF CLASS DATA ========= --> |
---|
| 766 | <HR> |
---|
| 767 | |
---|
| 768 | |
---|
| 769 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
---|
| 770 | <A NAME="navbar_bottom"><!-- --></A> |
---|
| 771 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
---|
| 772 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
---|
| 773 | <TR> |
---|
| 774 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
---|
| 775 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
---|
| 776 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
---|
| 777 | <TR ALIGN="center" VALIGN="top"> |
---|
| 778 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
---|
| 779 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
---|
| 780 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
---|
| 781 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/BitDocSet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
---|
| 782 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
---|
| 783 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
---|
| 784 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
---|
| 785 | </TR> |
---|
| 786 | </TABLE> |
---|
| 787 | </TD> |
---|
| 788 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
---|
| 789 | </EM> |
---|
| 790 | </TD> |
---|
| 791 | </TR> |
---|
| 792 | |
---|
| 793 | <TR> |
---|
| 794 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 795 | PREV CLASS |
---|
| 796 | <A HREF="../../../../org/apache/solr/search/BoostQParserPlugin.html" title="class in org.apache.solr.search"><B>NEXT CLASS</B></A></FONT></TD> |
---|
| 797 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
---|
| 798 | <A HREF="../../../../index.html?org/apache/solr/search/BitDocSet.html" target="_top"><B>FRAMES</B></A> |
---|
| 799 | <A HREF="BitDocSet.html" target="_top"><B>NO FRAMES</B></A> |
---|
| 800 | <SCRIPT type="text/javascript"> |
---|
| 801 | <!-- |
---|
| 802 | if(window==top) { |
---|
| 803 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
---|
| 804 | } |
---|
| 805 | //--> |
---|
| 806 | </SCRIPT> |
---|
| 807 | <NOSCRIPT> |
---|
| 808 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
---|
| 809 | </NOSCRIPT> |
---|
| 810 | |
---|
| 811 | |
---|
| 812 | </FONT></TD> |
---|
| 813 | </TR> |
---|
| 814 | <TR> |
---|
| 815 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 816 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
---|
| 817 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
---|
| 818 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
---|
| 819 | </TR> |
---|
| 820 | </TABLE> |
---|
| 821 | <A NAME="skip-navbar_bottom"></A> |
---|
| 822 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
---|
| 823 | |
---|
| 824 | <HR> |
---|
| 825 | |
---|
| 826 | <address>Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.</address> |
---|
| 827 | <script src='../../../../prettify.js' type='text/javascript'></script> |
---|
| 828 | <script type='text/javascript'> |
---|
| 829 | (function(){ |
---|
| 830 | var oldonload = window.onload; |
---|
| 831 | if (typeof oldonload != 'function') { |
---|
| 832 | window.onload = prettyPrint; |
---|
| 833 | } else { |
---|
| 834 | window.onload = function() { |
---|
| 835 | oldonload(); |
---|
| 836 | prettyPrint(); |
---|
| 837 | } |
---|
| 838 | } |
---|
| 839 | })(); |
---|
| 840 | </script> |
---|
| 841 | |
---|
| 842 | </BODY> |
---|
| 843 | </HTML> |
---|