Class PartialDiskIndex<A extends Comparable<A>,O>
- java.lang.Object
-
- com.googlecode.cqengine.index.support.PartialIndex<A,O,SortedKeyStatisticsAttributeIndex<A,O>>
-
- com.googlecode.cqengine.index.support.PartialSortedKeyStatisticsAttributeIndex<A,O>
-
- com.googlecode.cqengine.index.disk.PartialDiskIndex<A,O>
-
- All Implemented Interfaces:
ModificationListener<O>
,AttributeIndex<A,O>
,Index<O>
,DiskTypeIndex
,KeyStatisticsAttributeIndex<A,O>
,KeyStatisticsIndex<A,O>
,SortedKeyStatisticsAttributeIndex<A,O>
,SortedKeyStatisticsIndex<A,O>
public class PartialDiskIndex<A extends Comparable<A>,O> extends PartialSortedKeyStatisticsAttributeIndex<A,O> implements DiskTypeIndex
APartialIndex
which usesDiskPersistence
.- Author:
- niall.gallagher
-
-
Field Summary
-
Fields inherited from class com.googlecode.cqengine.index.support.PartialIndex
attribute, backingIndex, filterQuery
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SortedKeyStatisticsAttributeIndex<A,O>
createBackingIndex()
static <A extends Comparable<A>,O>
PartialDiskIndex<A,O>onAttributeWithFilterQuery(Attribute<O,A> attribute, Query<O> filterQuery)
Creates a newPartialDiskIndex
.-
Methods inherited from class com.googlecode.cqengine.index.support.PartialSortedKeyStatisticsAttributeIndex
getCountForKey, getCountOfDistinctKeys, getDistinctKeys, getDistinctKeys, getDistinctKeysDescending, getDistinctKeysDescending, getKeysAndValues, getKeysAndValues, getKeysAndValuesDescending, getKeysAndValuesDescending, getStatisticsForDistinctKeys, getStatisticsForDistinctKeysDescending
-
Methods inherited from class com.googlecode.cqengine.index.support.PartialIndex
addAll, backingIndex, clear, destroy, equals, filter, getAttribute, getBackingIndex, getEffectiveIndex, getFilterQuery, hashCode, init, isMutable, isQuantized, removeAll, retrieve, supportsQuery
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.googlecode.cqengine.index.AttributeIndex
getAttribute
-
Methods inherited from interface com.googlecode.cqengine.index.Index
getEffectiveIndex, isMutable, isQuantized, retrieve, supportsQuery
-
-
-
-
Method Detail
-
createBackingIndex
protected SortedKeyStatisticsAttributeIndex<A,O> createBackingIndex()
- Specified by:
createBackingIndex
in classPartialIndex<A extends Comparable<A>,O,SortedKeyStatisticsAttributeIndex<A extends Comparable<A>,O>>
-
onAttributeWithFilterQuery
public static <A extends Comparable<A>,O> PartialDiskIndex<A,O> onAttributeWithFilterQuery(Attribute<O,A> attribute, Query<O> filterQuery)
Creates a newPartialDiskIndex
. This will obtain details of theDiskPersistence
to use from the IndexedCollection, throwing an exception if the IndexedCollection has not been configured with a suitable DiskPersistence.- Type Parameters:
A
- The type of the attribute to be indexed.O
- The type of the object containing the attribute.- Parameters:
attribute
- TheAttribute
on which the index will be built.filterQuery
- The filter query which matches the subset of objects to be stored in this index.- Returns:
- A
DiskIndex
on the given attribute.
-
-