Class QueryIndexDefinition
- java.lang.Object
-
- org.apache.ignite.internal.cache.query.index.sorted.QueryIndexDefinition
-
- All Implemented Interfaces:
IndexDefinition,SortedIndexDefinition
public class QueryIndexDefinition extends Object implements SortedIndexDefinition
Define query index.
-
-
Constructor Summary
Constructors Constructor Description QueryIndexDefinition(GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo, IndexName idxName, String treeName, IndexRowCache idxRowCache, boolean isPrimary, boolean isAffinity, LinkedHashMap<String,IndexKeyDefinition> keyDefs, int cfgInlineSize, IndexKeyTypeSettings keyTypeSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaffinity()Whether this index is affinity key index or not.GridCacheContextInfo<?,?>cacheInfo()Cache info.IndexNameidxName()IndexRowCacheidxRowCache()Cache of index rows.LinkedHashMap<String,IndexKeyDefinition>indexKeyDefinitions()intinlineSize()Inline size.IndexKeyTypeSettingskeyTypeSettings()Index key type settings.booleanprimary()Whether this index is primary key (unique) or not.IndexRowComparatorrowComparator()Comparator for comparing index rows.InlineIndexRowHandlerFactoryrowHandlerFactory()Index row handler.intsegments()Amount of index tree segments.StringtoString()StringtreeName()Represents an index tree name.GridQueryTypeDescriptortypeDescriptor()Type descriptor.
-
-
-
Constructor Detail
-
QueryIndexDefinition
public QueryIndexDefinition(GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo, IndexName idxName, String treeName, IndexRowCache idxRowCache, boolean isPrimary, boolean isAffinity, LinkedHashMap<String,IndexKeyDefinition> keyDefs, int cfgInlineSize, IndexKeyTypeSettings keyTypeSettings)
-
-
Method Detail
-
treeName
public String treeName()
Represents an index tree name.- Specified by:
treeNamein interfaceSortedIndexDefinition
-
indexKeyDefinitions
public LinkedHashMap<String,IndexKeyDefinition> indexKeyDefinitions()
- Specified by:
indexKeyDefinitionsin interfaceIndexDefinition- Returns:
- Ordered map of index field names to index key definitions.
-
rowComparator
public IndexRowComparator rowComparator()
Comparator for comparing index rows.- Specified by:
rowComparatorin interfaceSortedIndexDefinition
-
segments
public int segments()
Amount of index tree segments.- Specified by:
segmentsin interfaceSortedIndexDefinition
-
inlineSize
public int inlineSize()
Inline size.- Specified by:
inlineSizein interfaceSortedIndexDefinition
-
primary
public boolean primary()
Whether this index is primary key (unique) or not.- Specified by:
primaryin interfaceSortedIndexDefinition
-
affinity
public boolean affinity()
Whether this index is affinity key index or not.- Specified by:
affinityin interfaceSortedIndexDefinition
-
rowHandlerFactory
public InlineIndexRowHandlerFactory rowHandlerFactory()
Index row handler.- Specified by:
rowHandlerFactoryin interfaceSortedIndexDefinition
-
keyTypeSettings
public IndexKeyTypeSettings keyTypeSettings()
Index key type settings.- Specified by:
keyTypeSettingsin interfaceSortedIndexDefinition
-
idxRowCache
public IndexRowCache idxRowCache()
Cache of index rows.- Specified by:
idxRowCachein interfaceSortedIndexDefinition
-
idxName
public IndexName idxName()
- Specified by:
idxNamein interfaceIndexDefinition- Returns:
- Index name.
-
typeDescriptor
public GridQueryTypeDescriptor typeDescriptor()
Type descriptor.- Specified by:
typeDescriptorin interfaceSortedIndexDefinition
-
cacheInfo
public GridCacheContextInfo<?,?> cacheInfo()
Cache info.- Specified by:
cacheInfoin interfaceSortedIndexDefinition
-
-