public class NamedMatches extends implements Matches
wrapQuery(String, Query)
, and
the matching queries for a particular document can then be pulled from the parent
Query's Matches
object by calling findNamedMatches(Matches)
Constructor and Description |
---|
name,
Matches in)
Wraps a
Matches object and associates a name with it |
Modifier and Type | Method and Description |
---|---|
static <NamedMatches> |
findNamedMatches(Matches matches)
Finds all
NamedMatches in a Matches tree |
MatchesIterator |
field)
Returns a
MatchesIterator over the matches for a single field,
or null if there are no matches in that field. |
|
getName()
Returns the name of this
Matches |
<Matches> |
getSubMatches()
Returns a collection of Matches that make up this instance; if it is not
a composite, then this returns an empty list
|
<> |
iterator() |
static Query |
name,
Query in)
Wrap a Query so that it associates a name with its
Matches |
public getName()
Matches
public field) throws
Matches
MatchesIterator
over the matches for a single field,
or null
if there are no matches in that field.getMatches
in interface Matches
public <Matches> getSubMatches()
Matches
getSubMatches
in interface Matches
public <> iterator()
in interface <>
public static <NamedMatches> findNamedMatches(Matches matches)
NamedMatches
in a Matches
treeCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.