com.hazelcast.query.impl
Class IndexImpl

java.lang.Object
  extended by com.hazelcast.query.impl.IndexImpl
All Implemented Interfaces:
Index

public class IndexImpl
extends Object
implements Index

Implementation for Index


Nested Class Summary
static class IndexImpl.NullObject
          Provides comparable null object.
 
Field Summary
static IndexImpl.NullObject NULL
          Creates instance from NullObject is a inner class.
 
Constructor Summary
IndexImpl(String attribute, boolean ordered)
           
 
Method Summary
 void clear()
           
 String getAttributeName()
           
 Set<QueryableEntry> getRecords(Comparable value)
           
 Set<QueryableEntry> getRecords(Comparable[] values)
           
 ConcurrentMap<Data,Comparable> getRecordValues()
           
 Set<QueryableEntry> getSubRecords(ComparisonType comparisonType, Comparable searchedValue)
           
 Set<QueryableEntry> getSubRecordsBetween(Comparable from, Comparable to)
           
 boolean isOrdered()
           
 void removeEntryIndex(Data indexKey)
           
 void saveEntryIndex(QueryableEntry e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final IndexImpl.NullObject NULL
Creates instance from NullObject is a inner class.

Constructor Detail

IndexImpl

public IndexImpl(String attribute,
                 boolean ordered)
Method Detail

removeEntryIndex

public void removeEntryIndex(Data indexKey)
Specified by:
removeEntryIndex in interface Index

clear

public void clear()
Specified by:
clear in interface Index

saveEntryIndex

public void saveEntryIndex(QueryableEntry e)
                    throws QueryException
Specified by:
saveEntryIndex in interface Index
Throws:
QueryException

getRecords

public Set<QueryableEntry> getRecords(Comparable[] values)
Specified by:
getRecords in interface Index

getRecords

public Set<QueryableEntry> getRecords(Comparable value)
Specified by:
getRecords in interface Index

getSubRecordsBetween

public Set<QueryableEntry> getSubRecordsBetween(Comparable from,
                                                Comparable to)
Specified by:
getSubRecordsBetween in interface Index

getSubRecords

public Set<QueryableEntry> getSubRecords(ComparisonType comparisonType,
                                         Comparable searchedValue)
Specified by:
getSubRecords in interface Index

getRecordValues

public ConcurrentMap<Data,Comparable> getRecordValues()

getAttributeName

public String getAttributeName()
Specified by:
getAttributeName in interface Index

isOrdered

public boolean isOrdered()
Specified by:
isOrdered in interface Index


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.