public abstract class PointInSetQuery extends Query implements Accountable
IntPoint,
 is contained in the specified set.
 
 This is for subclasses and works on the underlying binary encoding: to
 create range queries for lucene's standard Point types, refer to factory
 methods on those classes, e.g. IntPoint.newSetQuery() for 
 fields indexed with IntPoint.
PointValues| Modifier and Type | Class and Description | 
|---|---|
| static class  | PointInSetQuery.StreamIterator of encoded point values. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected static long | BASE_RAM_BYTES | 
NULL_ACCOUNTABLE| Modifier | Constructor and Description | 
|---|---|
| protected  | PointInSetQuery(String field,
               int numDims,
               int bytesPerDim,
               PointInSetQuery.Stream packedPoints)The  packedPointsiterator must be in sorted order. | 
| Modifier and Type | Method and Description | 
|---|---|
| Weight | createWeight(IndexSearcher searcher,
            ScoreMode scoreMode,
            float boost)Expert: Constructs an appropriate Weight implementation for this query. | 
| boolean | equals(Object other)Override and implement query instance equivalence properly in a subclass. | 
| int | getBytesPerDim() | 
| String | getField() | 
| int | getNumDims() | 
| Collection<byte[]> | getPackedPoints() | 
| int | hashCode()Override and implement query hash code properly in a subclass. | 
| long | ramBytesUsed()Return the memory usage of this object in bytes. | 
| protected abstract String | toString(byte[] value)Returns a string of a single value in a human-readable format for debugging. | 
| String | toString(String field)Prints a query to a string, with  fieldassumed to be the 
 default field and omitted. | 
| void | visit(QueryVisitor visitor)Recurse through the query tree, visiting any child queries | 
classHash, rewrite, sameClassAs, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChildResourcesprotected PointInSetQuery(String field, int numDims, int bytesPerDim, PointInSetQuery.Stream packedPoints)
packedPoints iterator must be in sorted order.public void visit(QueryVisitor visitor)
Querypublic final Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
QueryOnly implemented by primitive queries, which re-write to themselves.
createWeight in class QueryscoreMode - How the produced scorers will be consumed.boost - The boost that is propagated by the parent queries.IOExceptionpublic Collection<byte[]> getPackedPoints()
public String getField()
public int getNumDims()
public int getBytesPerDim()
public final int hashCode()
QueryQueryCache works properly.hashCode in class QueryQuery.equals(Object)public final boolean equals(Object other)
QueryQueryCache works properly.
 
 Typically a query will be equal to another only if it's an instance of 
 the same class and its document-filtering properties are identical that other
 instance. Utility methods are provided for certain repetitive code.equals in class QueryQuery.sameClassAs(Object), 
Query.classHash()public final String toString(String field)
Queryfield assumed to be the 
 default field and omitted.protected abstract String toString(byte[] value)
Query.toString().
 The default implementation encodes the individual byte values.value - single value, never nullpublic long ramBytesUsed()
AccountableramBytesUsed in interface AccountableCopyright © 2000-2024 Apache Software Foundation. All Rights Reserved.