Modifier and Type | Method and Description |
---|---|
static TextScan |
getScanForQuery(Index index,
QueryComponent filter,
boolean hasSort,
FilterSatisfiedMask filterMask)
Get a scan that matches a filter in the list of filters provided.
|
@Nullable public static TextScan getScanForQuery(@Nonnull Index index, @Nonnull QueryComponent filter, boolean hasSort, @Nonnull FilterSatisfiedMask filterMask)
index
- the text index to checkfilter
- a filter that the query must satisfyhasSort
- whether the query has a sort associated with itfilterMask
- a mask over the filter containing state about which filters have been satisfiednull
if none is found