public abstract class BaseIndexWrapper extends Object implements SearchIndex
NestedKeySearchIndex
,
TypeHierarchyIndex
Modifier and Type | Field and Description |
---|---|
protected SearchIndexDefault |
index |
protected String[] |
path |
Constructor and Description |
---|
BaseIndexWrapper(String... path) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
add(Object o) |
List |
all() |
void |
clear() |
int |
count(Object o) |
abstract boolean |
delete(Object o) |
boolean |
deleteByKey(Object o) |
List |
findBetween(Object start,
Object end) |
List |
findContains(Object keyFrag) |
List |
findEndsWith(Object keyFrag) |
List |
findEquals(Object o) |
Object |
findFirst() |
Object |
findFirstKey() |
List |
findGreaterThan(Object o) |
List |
findGreaterThanEqual(Object o) |
Object |
findLast() |
Object |
findLastKey() |
List |
findLessThan(Object o) |
List |
findLessThanEqual(Object o) |
List |
findStartsWith(Object keyFrag) |
Object |
get(Object o) |
List |
getAll(Object o) |
protected abstract List |
getKeys(Object o) |
boolean |
has(Object key) |
void |
init() |
boolean |
isPrimaryKeyOnly() |
Object |
max() |
Object |
min() |
void |
setBucketSize(int size) |
void |
setComparator(Comparator collator) |
void |
setInputKeyTransformer(Function func) |
void |
setKeyGetter(Function keyGetter) |
int |
size() |
Collection |
toCollection() |
protected final String[] path
protected SearchIndexDefault index
public BaseIndexWrapper(String... path)
public Object findFirst()
findFirst
in interface SearchIndex
public Object findLast()
findLast
in interface SearchIndex
public Object findFirstKey()
findFirstKey
in interface SearchIndex
public Object findLastKey()
findLastKey
in interface SearchIndex
public List findEquals(Object o)
findEquals
in interface SearchIndex
public List findStartsWith(Object keyFrag)
findStartsWith
in interface SearchIndex
public List findEndsWith(Object keyFrag)
findEndsWith
in interface SearchIndex
public List findContains(Object keyFrag)
findContains
in interface SearchIndex
public List findBetween(Object start, Object end)
findBetween
in interface SearchIndex
public List findGreaterThan(Object o)
findGreaterThan
in interface SearchIndex
public List findLessThan(Object o)
findLessThan
in interface SearchIndex
public List findGreaterThanEqual(Object o)
findGreaterThanEqual
in interface SearchIndex
public List findLessThanEqual(Object o)
findLessThanEqual
in interface SearchIndex
public Object min()
min
in interface SearchIndex
public Object max()
max
in interface SearchIndex
public int count(Object o)
count
in interface SearchIndex
public void setComparator(Comparator collator)
setComparator
in interface SearchIndex
public Object get(Object o)
get
in interface LookupIndex
public void setKeyGetter(Function keyGetter)
setKeyGetter
in interface LookupIndex
public List getAll(Object o)
getAll
in interface LookupIndex
public boolean deleteByKey(Object o)
deleteByKey
in interface LookupIndex
public boolean isPrimaryKeyOnly()
isPrimaryKeyOnly
in interface LookupIndex
public void init()
init
in interface LookupIndex
public void setInputKeyTransformer(Function func)
setInputKeyTransformer
in interface LookupIndex
public Collection toCollection()
toCollection
in interface Bag
public void setBucketSize(int size)
setBucketSize
in interface LookupIndex
public boolean has(Object key)
has
in interface LookupIndex
Copyright © 2014. All rights reserved.