public abstract class Index<E extends Entity,F> extends Object
Modifier and Type | Field and Description |
---|---|
protected TreeMap<F,List<E>> |
fieldEntitiesMap |
protected TreeMap<F,List<Number>> |
fieldPkMap |
protected F |
firstKeyInMap |
protected F |
lastKeyInMap |
protected List<E> |
nullValuesEntities |
protected List<Number> |
nullValuesPk |
Modifier | Constructor and Description |
---|---|
|
Index(Column<E,?,EntityRelation> indexedColumn,
EntitiesBufferIndexed<E> buffer) |
protected |
Index(Column<E,?,EntityRelation> indexedColumn,
Map<F,List<E>> fieldEntitiesMap,
List<E> nullValuesEntities) |
Modifier and Type | Method and Description |
---|---|
long |
count() |
protected abstract Index<E,F> |
empty() |
List<E> |
filter(Operator operator,
F... keys) |
abstract List<E> |
filter(Operator operator,
Object key) |
List<E> |
filterNegative(Operator operator,
Object key1) |
List<Number> |
filterPk(Operator operator,
F... keys) |
abstract List<Number> |
filterPk(Operator operator,
Object key) |
List<Number> |
filterPkNegative(Operator operator,
Object key1) |
protected <F> F |
getColumnValue(FakePkEntity<Number,E> entity) |
Column<E,?,EntityRelation> |
getIndexedColumn() |
boolean |
isWorthless() |
protected abstract Index<E,F> |
newInstance(Column<E,?,EntityRelation> indexedColumn,
NavigableMap<F,List<E>> oneToManyMap,
List<E> nullValuesAsPK) |
List<E> |
toPkList() |
protected List<E> |
toPkList(Map<F,List<E>> subManyMap,
List<E> nullValuesAsPK) |
protected List<Number> |
toPkList2(Map<F,List<Number>> subManyMap,
List<Number> nullValuesAsPK) |
protected Index(Column<E,?,EntityRelation> indexedColumn, Map<F,List<E>> fieldEntitiesMap, List<E> nullValuesEntities)
public Index(Column<E,?,EntityRelation> indexedColumn, EntitiesBufferIndexed<E> buffer)
protected <F> F getColumnValue(FakePkEntity<Number,E> entity)
protected List<Number> toPkList2(Map<F,List<Number>> subManyMap, List<Number> nullValuesAsPK)
public long count()
protected abstract Index<E,F> newInstance(Column<E,?,EntityRelation> indexedColumn, NavigableMap<F,List<E>> oneToManyMap, List<E> nullValuesAsPK)
public Column<E,?,EntityRelation> getIndexedColumn()
public boolean isWorthless()
Copyright © 2021. All rights reserved.