Modifier and Type | Class and Description |
---|---|
static class |
IndexImpl.NullObject |
Modifier and Type | Field and Description |
---|---|
protected IndexStore |
indexStore |
static IndexImpl.NullObject |
NULL |
protected InternalSerializationService |
ss |
Constructor and Description |
---|
IndexImpl(String attributeName,
boolean ordered,
InternalSerializationService ss,
Extractors extractors,
IndexCopyBehavior copyQueryResultOn) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear out entries from the index
|
IndexStore |
createIndexStore(boolean ordered) |
void |
destroy()
Release all resources hold by the index.
|
String |
getAttributeName() |
TypeConverter |
getConverter()
Provides comparable null object.
|
Set<QueryableEntry> |
getRecords(Comparable attributeValue) |
Set<QueryableEntry> |
getRecords(Comparable[] values) |
Set<QueryableEntry> |
getSubRecords(ComparisonType comparisonType,
Comparable searchedAttributeValue) |
Set<QueryableEntry> |
getSubRecordsBetween(Comparable fromAttributeValue,
Comparable toAttributeValue) |
boolean |
isOrdered() |
void |
removeEntryIndex(Data key,
Object value) |
void |
saveEntryIndex(QueryableEntry entry,
Object oldRecordValue)
Add entry to this index.
|
public static final IndexImpl.NullObject NULL
protected final InternalSerializationService ss
protected final IndexStore indexStore
public IndexImpl(String attributeName, boolean ordered, InternalSerializationService ss, Extractors extractors, IndexCopyBehavior copyQueryResultOn)
public IndexStore createIndexStore(boolean ordered)
public void saveEntryIndex(QueryableEntry entry, Object oldRecordValue) throws QueryException
Index
saveEntryIndex
in interface Index
entry
- entryoldRecordValue
- or null if there is no old valueQueryException
public void removeEntryIndex(Data key, Object value)
removeEntryIndex
in interface Index
public Set<QueryableEntry> getRecords(Comparable[] values)
getRecords
in interface Index
public Set<QueryableEntry> getRecords(Comparable attributeValue)
getRecords
in interface Index
public Set<QueryableEntry> getSubRecords(ComparisonType comparisonType, Comparable searchedAttributeValue)
getSubRecords
in interface Index
public Set<QueryableEntry> getSubRecordsBetween(Comparable fromAttributeValue, Comparable toAttributeValue)
getSubRecordsBetween
in interface Index
public TypeConverter getConverter()
getConverter
in interface Index
public void clear()
Index
public void destroy()
Index
public String getAttributeName()
getAttributeName
in interface Index
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.