public static final class AutoPrefixTermsWriter.PrefixTerm extends java.lang.Object implements java.lang.Comparable<AutoPrefixTermsWriter.PrefixTerm>
Modifier and Type | Field and Description |
---|---|
int |
floorLeadEnd
The lead byte (inclusive) of the suffix for the term range we match (e.g.
|
int |
floorLeadStart
If this is -2, this is a normal prefix (foo *), else it's the minimum lead byte of the suffix (e.g.
|
byte[] |
prefix
Common prefix
|
BytesRef |
term |
Constructor and Description |
---|
PrefixTerm(byte[] prefix,
int floorLeadStart,
int floorLeadEnd)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AutoPrefixTermsWriter.PrefixTerm other) |
int |
compareTo(BytesRef term) |
TermsEnum |
getTermsEnum(TermsEnum in) |
private static BytesRef |
toBytesRef(byte[] prefix,
int floorLeadStart)
Returns the leading term for this prefix term, e.g.
|
java.lang.String |
toString() |
public final byte[] prefix
public final int floorLeadStart
public final int floorLeadEnd
public final BytesRef term
public PrefixTerm(byte[] prefix, int floorLeadStart, int floorLeadEnd)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(AutoPrefixTermsWriter.PrefixTerm other)
compareTo
in interface java.lang.Comparable<AutoPrefixTermsWriter.PrefixTerm>
private static BytesRef toBytesRef(byte[] prefix, int floorLeadStart)
public int compareTo(BytesRef term)