public abstract class WeightedQuery extends ExemptibleManagerImplementation
Modifier and Type | Class and Description |
---|---|
class |
WeightedQuery.Hit |
static interface |
WeightedQuery.RowInfoProvider |
static class |
WeightedQuery.RowPresentation |
Modifier and Type | Field and Description |
---|---|
DataObject[] |
dos |
static java.lang.String |
SEARCH_DELIMITER |
static java.lang.String |
SORT_BY_ALPHABET |
static java.lang.String |
SORT_BY_RELEVANCE |
protected boolean |
sortRelevance |
Constructor and Description |
---|
WeightedQuery(DataObject[] dos,
WeightedQuery.RowInfoProvider rowInfoProvider,
AliveConfirmer aliveConfirmer) |
Modifier and Type | Method and Description |
---|---|
protected void |
fillHit(WeightedQuery.Hit hit) |
int |
getRowPointer() |
protected void |
increaseRelevance(WeightedQuery.Hit hit,
DataObject dataObject,
java.lang.String columnName,
int weight,
java.lang.String searchValue) |
protected void |
increaseRelevance(WeightedQuery.Hit hit,
int weight,
java.lang.String searchValue)
Increases relevance by checking all text columns of the current row.
|
protected void |
increaseRelevance(WeightedQuery.Hit hit,
java.lang.String columnName,
int weight,
java.lang.String searchValue) |
boolean |
increaseRowPointer() |
boolean |
isToRun() |
void |
resetRowPointer() |
void |
setRowPointer(int rowPointer) |
abstract int |
size() |
free, register
public static final java.lang.String SORT_BY_RELEVANCE
public static final java.lang.String SORT_BY_ALPHABET
public static final java.lang.String SEARCH_DELIMITER
public DataObject[] dos
protected boolean sortRelevance
public WeightedQuery(DataObject[] dos, WeightedQuery.RowInfoProvider rowInfoProvider, AliveConfirmer aliveConfirmer)
protected void fillHit(WeightedQuery.Hit hit)
protected void increaseRelevance(WeightedQuery.Hit hit, int weight, java.lang.String searchValue)
hit
- the hit to be evaluatedweight
- the weight to be added to the relevancesearchValue
- the search term used by userprotected void increaseRelevance(WeightedQuery.Hit hit, java.lang.String columnName, int weight, java.lang.String searchValue)
protected void increaseRelevance(WeightedQuery.Hit hit, DataObject dataObject, java.lang.String columnName, int weight, java.lang.String searchValue)
public boolean isToRun()
public void resetRowPointer()
public boolean increaseRowPointer()
public void setRowPointer(int rowPointer)
public int getRowPointer()
public abstract int size()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de