public class SpanFirstQuery extends SpanPositionRangeQuery
SpanPositionRangeQuery
in that it assumes the
start to be zero and only checks the end boundary.Constructor and Description |
---|
SpanFirstQuery(SpanQuery match,
int end)
Construct a SpanFirstQuery matching spans in
match whose end
position is less than or equal to end . |
Modifier and Type | Method and Description |
---|---|
SpanFirstQuery |
clone()
Returns a clone of this query.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString(String field)
Prints a query to a string, with
field assumed to be the
default field and omitted. |
getEnd, getStart
extractTerms, getField, getMatch, getSpans, rewrite
createWeight
public SpanFirstQuery(SpanQuery match, int end)
match
whose end
position is less than or equal to end
.public String toString(String field)
Query
field
assumed to be the
default field and omitted.toString
in class SpanPositionRangeQuery
public SpanFirstQuery clone()
Query
clone
in class SpanPositionRangeQuery
public boolean equals(Object o)
equals
in class SpanPositionRangeQuery
public int hashCode()
hashCode
in class SpanPositionRangeQuery
Copyright © 2010 - 2020 Adobe. All Rights Reserved