| Constructor and Description |
|---|
PrefixIndex(Table<T> table,
int[] indexColumns,
org.apache.commons.collections15.Transformer<T,Set<String>> prefixExtractor) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(List<? extends T> row) |
static <T> PrefixIndex<T> |
attach(org.apache.commons.collections15.Transformer<T,Set<String>> prefixExtractor,
Table<T> table,
String... columnNames) |
List<String> |
getIndexColumnNames() |
int[] |
getIndexColumns() |
IndexMetaNode |
getRoot() |
Object |
getStore() |
Table<T> |
getTable() |
void |
index(String... row) |
void |
lookup(Constraint... constraints)
The constraints given as arguments are interpreted as conjunctions.
|
Collection<List<T>> |
lookup(List<Set<String>> prefixesList) |
void |
lookup(List<Set<String>> prefixesList,
int i,
NavigableMap<String,Object> current,
Collection<List<T>> result) |
void |
lookupRemaining(Object tmp,
int i,
Collection<List<T>> result) |
Collection<List<T>> |
lookupSimple(List<String> prefixList) |
void |
lookupSimple(List<String> prefixList,
int i,
Object tmp,
Collection<List<T>> result) |
Collection<List<T>> |
lookupSimpleLonger(List<String> prefixList) |
void |
lookupSimpleLonger(List<String> prefixList,
int i,
NavigableMap<String,Object> current,
Collection<List<T>> result) |
void |
postAdd(List<? extends T> row) |
boolean |
preAdd(List<? extends T> row)
Only table should call this.
|
String |
toString() |
public void index(String... row)
public void lookup(Constraint... constraints)
constraints - public Collection<List<T>> lookupSimple(List<String> prefixList)
public Collection<List<T>> lookupSimpleLonger(List<String> prefixList)
public void lookupSimple(List<String> prefixList, int i, Object tmp, Collection<List<T>> result)
public void lookupSimpleLonger(List<String> prefixList, int i, NavigableMap<String,Object> current, Collection<List<T>> result)
public void lookupRemaining(Object tmp, int i, Collection<List<T>> result)
public void lookup(List<Set<String>> prefixesList, int i, NavigableMap<String,Object> current, Collection<List<T>> result)
public static <T> PrefixIndex<T> attach(org.apache.commons.collections15.Transformer<T,Set<String>> prefixExtractor, Table<T> table, String... columnNames)
public boolean preAdd(List<? extends T> row)
Indexpublic int[] getIndexColumns()
getIndexColumns in interface Index<T>public List<String> getIndexColumnNames()
getIndexColumnNames in interface Index<T>public IndexMetaNode getRoot()
Copyright © 2014. All rights reserved.