public final class QueryInfo extends Object
Modifier and Type | Method and Description |
---|---|
static QueryInfo |
create(BlackLabIndex index) |
static QueryInfo |
create(BlackLabIndex index,
AnnotatedField field) |
static QueryInfo |
create(BlackLabIndex index,
AnnotatedField field,
boolean useCache) |
static QueryInfo |
create(BlackLabIndex index,
AnnotatedField field,
boolean useCache,
SearchLogger searchLogger) |
boolean |
equals(Object obj) |
AnnotatedField |
field() |
int |
hashCode() |
BlackLabIndex |
index() |
void |
log(LogLevel level,
String msg)
Log to the configured search logger, if any.
|
SearchLogger |
searchLogger() |
boolean |
useCache() |
QueryInfo |
withIndex(BlackLabIndex newIndex)
Return a copy with a different index.
|
public static QueryInfo create(BlackLabIndex index)
public static QueryInfo create(BlackLabIndex index, AnnotatedField field)
public static QueryInfo create(BlackLabIndex index, AnnotatedField field, boolean useCache)
public static QueryInfo create(BlackLabIndex index, AnnotatedField field, boolean useCache, SearchLogger searchLogger)
public QueryInfo withIndex(BlackLabIndex newIndex)
newIndex
- index to usepublic void log(LogLevel level, String msg)
level
- log levelmsg
- message to logpublic BlackLabIndex index()
public AnnotatedField field()
public boolean useCache()
public SearchLogger searchLogger()
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.