Skip to content

Commit

Permalink
IGNITE-4805: Removed GridQueryIndexType.
Browse files Browse the repository at this point in the history
  • Loading branch information
devozerov committed Mar 9, 2017
1 parent 93e1996 commit 0ea88cd
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 76 deletions.
Expand Up @@ -66,7 +66,6 @@
import org.apache.ignite.cache.store.CacheStoreSessionListener; import org.apache.ignite.cache.store.CacheStoreSessionListener;
import org.apache.ignite.cluster.ClusterNode; import org.apache.ignite.cluster.ClusterNode;
import org.apache.ignite.internal.processors.query.GridQueryIndexDescriptor; import org.apache.ignite.internal.processors.query.GridQueryIndexDescriptor;
import org.apache.ignite.internal.processors.query.GridQueryIndexType;
import org.apache.ignite.internal.util.tostring.GridToStringExclude; import org.apache.ignite.internal.util.tostring.GridToStringExclude;
import org.apache.ignite.internal.util.tostring.GridToStringInclude; import org.apache.ignite.internal.util.tostring.GridToStringInclude;
import org.apache.ignite.internal.util.typedef.F; import org.apache.ignite.internal.util.typedef.F;
Expand All @@ -78,9 +77,6 @@
import org.apache.ignite.plugin.CachePluginConfiguration; import org.apache.ignite.plugin.CachePluginConfiguration;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;


import static org.apache.ignite.internal.processors.query.GridQueryIndexType.FULLTEXT;
import static org.apache.ignite.internal.processors.query.GridQueryIndexType.GEO_SPATIAL;
import static org.apache.ignite.internal.processors.query.GridQueryIndexType.SORTED;
import static org.apache.ignite.internal.processors.query.GridQueryProcessor._VAL; import static org.apache.ignite.internal.processors.query.GridQueryProcessor._VAL;
import static org.apache.ignite.internal.processors.query.GridQueryProcessor.isGeometryClass; import static org.apache.ignite.internal.processors.query.GridQueryProcessor.isGeometryClass;
import static org.apache.ignite.internal.processors.query.GridQueryProcessor.isSqlType; import static org.apache.ignite.internal.processors.query.GridQueryProcessor.isSqlType;
Expand Down Expand Up @@ -2220,7 +2216,7 @@ private static QueryEntity convert(TypeDescriptor desc) {
for (Map.Entry<String, GridQueryIndexDescriptor> idxEntry : desc.indexes().entrySet()) { for (Map.Entry<String, GridQueryIndexDescriptor> idxEntry : desc.indexes().entrySet()) {
GridQueryIndexDescriptor idx = idxEntry.getValue(); GridQueryIndexDescriptor idx = idxEntry.getValue();


if (idx.type() == FULLTEXT) { if (idx.type() == QueryIndexType.FULLTEXT) {
assert txtIdx == null; assert txtIdx == null;


txtIdx = new QueryIndex(); txtIdx = new QueryIndex();
Expand All @@ -2238,7 +2234,7 @@ private static QueryEntity convert(TypeDescriptor desc) {


QueryIndex sortedIdx = new QueryIndex(); QueryIndex sortedIdx = new QueryIndex();


sortedIdx.setIndexType(idx.type() == SORTED ? QueryIndexType.SORTED : QueryIndexType.GEOSPATIAL); sortedIdx.setIndexType(idx.type());


LinkedHashMap<String, Boolean> fields = new LinkedHashMap<>(); LinkedHashMap<String, Boolean> fields = new LinkedHashMap<>();


Expand Down Expand Up @@ -2318,7 +2314,7 @@ private static void processAnnotationsInClass(boolean key, Class<?> cls, TypeDes
if (parent == null && !key && isSqlType(cls)) { // We have to index primitive _val. if (parent == null && !key && isSqlType(cls)) { // We have to index primitive _val.
String idxName = _VAL + "_idx"; String idxName = _VAL + "_idx";


type.addIndex(idxName, isGeometryClass(cls) ? GEO_SPATIAL : SORTED); type.addIndex(idxName, isGeometryClass(cls) ? QueryIndexType.GEOSPATIAL : QueryIndexType.SORTED);


type.addFieldToIndex(idxName, _VAL, 0, false); type.addFieldToIndex(idxName, _VAL, 0, false);
} }
Expand All @@ -2338,13 +2334,13 @@ private static void processAnnotationsInClass(boolean key, Class<?> cls, TypeDes
QueryGroupIndex grpIdx = cls.getAnnotation(QueryGroupIndex.class); QueryGroupIndex grpIdx = cls.getAnnotation(QueryGroupIndex.class);


if (grpIdx != null) if (grpIdx != null)
type.addIndex(grpIdx.name(), SORTED); type.addIndex(grpIdx.name(), QueryIndexType.SORTED);


QueryGroupIndex.List grpIdxList = cls.getAnnotation(QueryGroupIndex.List.class); QueryGroupIndex.List grpIdxList = cls.getAnnotation(QueryGroupIndex.List.class);


if (grpIdxList != null && !F.isEmpty(grpIdxList.value())) { if (grpIdxList != null && !F.isEmpty(grpIdxList.value())) {
for (QueryGroupIndex idx : grpIdxList.value()) for (QueryGroupIndex idx : grpIdxList.value())
type.addIndex(idx.name(), SORTED); type.addIndex(idx.name(), QueryIndexType.SORTED);
} }
} }


Expand Down Expand Up @@ -2417,7 +2413,7 @@ private static void processAnnotation(boolean key, QuerySqlField sqlAnn, QueryTe
if (sqlAnn.index()) { if (sqlAnn.index()) {
String idxName = prop.alias() + "_idx"; String idxName = prop.alias() + "_idx";


desc.addIndex(idxName, isGeometryClass(prop.type()) ? GEO_SPATIAL : SORTED); desc.addIndex(idxName, isGeometryClass(prop.type()) ? QueryIndexType.GEOSPATIAL : QueryIndexType.SORTED);


desc.addFieldToIndex(idxName, prop.fullName(), 0, sqlAnn.descending()); desc.addFieldToIndex(idxName, prop.fullName(), 0, sqlAnn.descending());
} }
Expand Down Expand Up @@ -2506,7 +2502,7 @@ public Map<String, GridQueryIndexDescriptor> indexes() {
* @param type Index type. * @param type Index type.
* @return Index descriptor. * @return Index descriptor.
*/ */
public IndexDescriptor addIndex(String idxName, GridQueryIndexType type) { public IndexDescriptor addIndex(String idxName, QueryIndexType type) {
IndexDescriptor idx = new IndexDescriptor(type); IndexDescriptor idx = new IndexDescriptor(type);


if (indexes.put(idxName, idx) != null) if (indexes.put(idxName, idx) != null)
Expand All @@ -2528,7 +2524,7 @@ public void addFieldToIndex(String idxName, String field, int orderNum,
IndexDescriptor desc = indexes.get(idxName); IndexDescriptor desc = indexes.get(idxName);


if (desc == null) if (desc == null)
desc = addIndex(idxName, SORTED); desc = addIndex(idxName, QueryIndexType.SORTED);


desc.addField(field, orderNum, descending); desc.addField(field, orderNum, descending);
} }
Expand All @@ -2540,7 +2536,7 @@ public void addFieldToIndex(String idxName, String field, int orderNum,
*/ */
public void addFieldToTextIndex(String field) { public void addFieldToTextIndex(String field) {
if (fullTextIdx == null) { if (fullTextIdx == null) {
fullTextIdx = new IndexDescriptor(FULLTEXT); fullTextIdx = new IndexDescriptor(QueryIndexType.FULLTEXT);


indexes.put(null, fullTextIdx); indexes.put(null, fullTextIdx);
} }
Expand Down Expand Up @@ -2640,12 +2636,12 @@ private static class IndexDescriptor implements GridQueryIndexDescriptor {
private Collection<String> descendings; private Collection<String> descendings;


/** */ /** */
private final GridQueryIndexType type; private final QueryIndexType type;


/** /**
* @param type Type. * @param type Type.
*/ */
private IndexDescriptor(GridQueryIndexType type) { private IndexDescriptor(QueryIndexType type) {
assert type != null; assert type != null;


this.type = type; this.type = type;
Expand Down Expand Up @@ -2685,7 +2681,7 @@ public void addField(String field, int orderNum, boolean descending) {
} }


/** {@inheritDoc} */ /** {@inheritDoc} */
@Override public GridQueryIndexType type() { @Override public QueryIndexType type() {
return type; return type;
} }


Expand Down
Expand Up @@ -46,6 +46,7 @@
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.IgniteException; import org.apache.ignite.IgniteException;
import org.apache.ignite.IgniteSystemProperties; import org.apache.ignite.IgniteSystemProperties;
import org.apache.ignite.cache.QueryIndexType;
import org.apache.ignite.cache.query.QueryMetrics; import org.apache.ignite.cache.query.QueryMetrics;
import org.apache.ignite.cluster.ClusterNode; import org.apache.ignite.cluster.ClusterNode;
import org.apache.ignite.configuration.CacheConfiguration; import org.apache.ignite.configuration.CacheConfiguration;
Expand Down Expand Up @@ -81,7 +82,6 @@
import org.apache.ignite.internal.processors.platform.cache.PlatformCacheEntryFilter; import org.apache.ignite.internal.processors.platform.cache.PlatformCacheEntryFilter;
import org.apache.ignite.internal.processors.query.GridQueryFieldMetadata; import org.apache.ignite.internal.processors.query.GridQueryFieldMetadata;
import org.apache.ignite.internal.processors.query.GridQueryIndexDescriptor; import org.apache.ignite.internal.processors.query.GridQueryIndexDescriptor;
import org.apache.ignite.internal.processors.query.GridQueryIndexType;
import org.apache.ignite.internal.processors.query.GridQueryProcessor; import org.apache.ignite.internal.processors.query.GridQueryProcessor;
import org.apache.ignite.internal.processors.query.GridQueryTypeDescriptor; import org.apache.ignite.internal.processors.query.GridQueryTypeDescriptor;
import org.apache.ignite.internal.processors.task.GridInternal; import org.apache.ignite.internal.processors.task.GridInternal;
Expand Down Expand Up @@ -2469,7 +2469,7 @@ private static class MetadataJob implements IgniteCallable<Collection<CacheSqlMe
GridQueryIndexDescriptor desc = e.getValue(); GridQueryIndexDescriptor desc = e.getValue();


// Add only SQL indexes. // Add only SQL indexes.
if (desc.type() == GridQueryIndexType.SORTED) { if (desc.type() == QueryIndexType.SORTED) {
Collection<String> idxFields = new LinkedList<>(); Collection<String> idxFields = new LinkedList<>();
Collection<String> descendings = new LinkedList<>(); Collection<String> descendings = new LinkedList<>();


Expand Down
Expand Up @@ -17,6 +17,8 @@


package org.apache.ignite.internal.processors.query; package org.apache.ignite.internal.processors.query;


import org.apache.ignite.cache.QueryIndexType;

import java.util.Collection; import java.util.Collection;


/** /**
Expand Down Expand Up @@ -46,5 +48,5 @@ public interface GridQueryIndexDescriptor {
* *
* @return Type. * @return Type.
*/ */
public GridQueryIndexType type(); public QueryIndexType type();
} }

This file was deleted.

Expand Up @@ -101,9 +101,6 @@


import static org.apache.ignite.events.EventType.EVT_CACHE_QUERY_EXECUTED; import static org.apache.ignite.events.EventType.EVT_CACHE_QUERY_EXECUTED;
import static org.apache.ignite.internal.IgniteComponentType.INDEXING; import static org.apache.ignite.internal.IgniteComponentType.INDEXING;
import static org.apache.ignite.internal.processors.query.GridQueryIndexType.FULLTEXT;
import static org.apache.ignite.internal.processors.query.GridQueryIndexType.GEO_SPATIAL;
import static org.apache.ignite.internal.processors.query.GridQueryIndexType.SORTED;


/** /**
* Indexing processor. * Indexing processor.
Expand Down Expand Up @@ -1399,7 +1396,7 @@ private void addToIndex(
idxName = propName + "_idx"; idxName = propName + "_idx";


if (idxOrder == 0) // Add index only on the first field. if (idxOrder == 0) // Add index only on the first field.
d.addIndex(idxName, isGeometryClass(propCls) ? GEO_SPATIAL : SORTED); d.addIndex(idxName, isGeometryClass(propCls) ? QueryIndexType.GEOSPATIAL : QueryIndexType.SORTED);


if (idxType == IndexType.TEXT) if (idxType == IndexType.TEXT)
d.addFieldToTextIndex(propName); d.addFieldToTextIndex(propName);
Expand Down Expand Up @@ -1429,7 +1426,7 @@ private void processBinaryMeta(CacheTypeMetadata meta, TypeDescriptor d)


String idxName = prop.name() + "_idx"; String idxName = prop.name() + "_idx";


d.addIndex(idxName, isGeometryClass(prop.type()) ? GEO_SPATIAL : SORTED); d.addIndex(idxName, isGeometryClass(prop.type()) ? QueryIndexType.GEOSPATIAL : QueryIndexType.SORTED);


d.addFieldToIndex(idxName, prop.name(), 0, false); d.addFieldToIndex(idxName, prop.name(), 0, false);
} }
Expand All @@ -1441,7 +1438,7 @@ private void processBinaryMeta(CacheTypeMetadata meta, TypeDescriptor d)


String idxName = prop.name() + "_idx"; String idxName = prop.name() + "_idx";


d.addIndex(idxName, isGeometryClass(prop.type()) ? GEO_SPATIAL : SORTED); d.addIndex(idxName, isGeometryClass(prop.type()) ? QueryIndexType.GEOSPATIAL : QueryIndexType.SORTED);


d.addFieldToIndex(idxName, prop.name(), 0, true); d.addFieldToIndex(idxName, prop.name(), 0, true);
} }
Expand Down Expand Up @@ -1591,7 +1588,7 @@ private void processIndexes(QueryEntity qryEntity, TypeDescriptor d) throws Igni
QueryIndexType idxTyp = idx.getIndexType(); QueryIndexType idxTyp = idx.getIndexType();


if (idxTyp == QueryIndexType.SORTED || idxTyp == QueryIndexType.GEOSPATIAL) { if (idxTyp == QueryIndexType.SORTED || idxTyp == QueryIndexType.GEOSPATIAL) {
d.addIndex(idxName, idxTyp == QueryIndexType.SORTED ? SORTED : GEO_SPATIAL); d.addIndex(idxName, idxTyp);


int i = 0; int i = 0;


Expand Down Expand Up @@ -2413,7 +2410,7 @@ public void tableName(String tblName) {
* @return Index descriptor. * @return Index descriptor.
* @throws IgniteCheckedException In case of error. * @throws IgniteCheckedException In case of error.
*/ */
public IndexDescriptor addIndex(String idxName, GridQueryIndexType type) throws IgniteCheckedException { public IndexDescriptor addIndex(String idxName, QueryIndexType type) throws IgniteCheckedException {
IndexDescriptor idx = new IndexDescriptor(type); IndexDescriptor idx = new IndexDescriptor(type);


if (indexes.put(idxName, idx) != null) if (indexes.put(idxName, idx) != null)
Expand All @@ -2436,7 +2433,7 @@ public void addFieldToIndex(String idxName, String field, int orderNum,
IndexDescriptor desc = indexes.get(idxName); IndexDescriptor desc = indexes.get(idxName);


if (desc == null) if (desc == null)
desc = addIndex(idxName, SORTED); desc = addIndex(idxName, QueryIndexType.SORTED);


desc.addField(field, orderNum, descending); desc.addField(field, orderNum, descending);
} }
Expand All @@ -2448,7 +2445,7 @@ public void addFieldToIndex(String idxName, String field, int orderNum,
*/ */
public void addFieldToTextIndex(String field) { public void addFieldToTextIndex(String field) {
if (fullTextIdx == null) { if (fullTextIdx == null) {
fullTextIdx = new IndexDescriptor(FULLTEXT); fullTextIdx = new IndexDescriptor(QueryIndexType.FULLTEXT);


indexes.put(null, fullTextIdx); indexes.put(null, fullTextIdx);
} }
Expand Down Expand Up @@ -2583,12 +2580,12 @@ private static class IndexDescriptor implements GridQueryIndexDescriptor {
private Collection<String> descendings; private Collection<String> descendings;


/** */ /** */
private final GridQueryIndexType type; private final QueryIndexType type;


/** /**
* @param type Type. * @param type Type.
*/ */
private IndexDescriptor(GridQueryIndexType type) { private IndexDescriptor(QueryIndexType type) {
assert type != null; assert type != null;


this.type = type; this.type = type;
Expand Down Expand Up @@ -2628,7 +2625,7 @@ public void addField(String field, int orderNum, boolean descending) {
} }


/** {@inheritDoc} */ /** {@inheritDoc} */
@Override public GridQueryIndexType type() { @Override public QueryIndexType type() {
return type; return type;
} }


Expand Down
Expand Up @@ -1276,7 +1276,6 @@ org.apache.ignite.internal.processors.platform.utils.PlatformFutureUtils$Interna
org.apache.ignite.internal.processors.platform.websession.PlatformDotNetSessionLockProcessor org.apache.ignite.internal.processors.platform.websession.PlatformDotNetSessionLockProcessor
org.apache.ignite.internal.processors.platform.websession.PlatformDotNetSessionSetAndUnlockProcessor org.apache.ignite.internal.processors.platform.websession.PlatformDotNetSessionSetAndUnlockProcessor
org.apache.ignite.internal.processors.query.GridQueryFieldMetadata org.apache.ignite.internal.processors.query.GridQueryFieldMetadata
org.apache.ignite.internal.processors.query.GridQueryIndexType
org.apache.ignite.internal.processors.query.GridQueryProcessor$3 org.apache.ignite.internal.processors.query.GridQueryProcessor$3
org.apache.ignite.internal.processors.query.GridQueryProcessor$4 org.apache.ignite.internal.processors.query.GridQueryProcessor$4
org.apache.ignite.internal.processors.query.GridQueryProcessor$5 org.apache.ignite.internal.processors.query.GridQueryProcessor$5
Expand Down
Expand Up @@ -59,6 +59,7 @@
import org.apache.ignite.IgniteException; import org.apache.ignite.IgniteException;
import org.apache.ignite.IgniteLogger; import org.apache.ignite.IgniteLogger;
import org.apache.ignite.cache.CacheMemoryMode; import org.apache.ignite.cache.CacheMemoryMode;
import org.apache.ignite.cache.QueryIndexType;
import org.apache.ignite.cache.query.QueryCancelledException; import org.apache.ignite.cache.query.QueryCancelledException;
import org.apache.ignite.cache.query.QueryCursor; import org.apache.ignite.cache.query.QueryCursor;
import org.apache.ignite.cache.query.SqlFieldsQuery; import org.apache.ignite.cache.query.SqlFieldsQuery;
Expand Down Expand Up @@ -184,9 +185,6 @@
import static org.apache.ignite.internal.processors.cache.query.GridCacheQueryType.SQL; import static org.apache.ignite.internal.processors.cache.query.GridCacheQueryType.SQL;
import static org.apache.ignite.internal.processors.cache.query.GridCacheQueryType.SQL_FIELDS; import static org.apache.ignite.internal.processors.cache.query.GridCacheQueryType.SQL_FIELDS;
import static org.apache.ignite.internal.processors.cache.query.GridCacheQueryType.TEXT; import static org.apache.ignite.internal.processors.cache.query.GridCacheQueryType.TEXT;
import static org.apache.ignite.internal.processors.query.GridQueryIndexType.FULLTEXT;
import static org.apache.ignite.internal.processors.query.GridQueryIndexType.GEO_SPATIAL;
import static org.apache.ignite.internal.processors.query.GridQueryIndexType.SORTED;
import static org.apache.ignite.internal.processors.query.h2.opt.GridH2AbstractKeyValueRow.KEY_COL; import static org.apache.ignite.internal.processors.query.h2.opt.GridH2AbstractKeyValueRow.KEY_COL;
import static org.apache.ignite.internal.processors.query.h2.opt.GridH2QueryType.LOCAL; import static org.apache.ignite.internal.processors.query.h2.opt.GridH2QueryType.LOCAL;
import static org.apache.ignite.internal.processors.query.h2.opt.GridH2QueryType.PREPARE; import static org.apache.ignite.internal.processors.query.h2.opt.GridH2QueryType.PREPARE;
Expand Down Expand Up @@ -2590,7 +2588,7 @@ GridQueryTypeDescriptor type() {
String name = e.getKey(); String name = e.getKey();
GridQueryIndexDescriptor idx = e.getValue(); GridQueryIndexDescriptor idx = e.getValue();


if (idx.type() == FULLTEXT) { if (idx.type() == QueryIndexType.FULLTEXT) {
try { try {
luceneIdx = new GridLuceneIndex(ctx, schema.offheap, schema.spaceName, type); luceneIdx = new GridLuceneIndex(ctx, schema.offheap, schema.spaceName, type);
} }
Expand All @@ -2612,15 +2610,15 @@ GridQueryTypeDescriptor type() {
idx.descending(field) ? SortOrder.DESCENDING : SortOrder.ASCENDING)); idx.descending(field) ? SortOrder.DESCENDING : SortOrder.ASCENDING));
} }


if (idx.type() == SORTED) { if (idx.type() == QueryIndexType.SORTED) {
// We don't care about number of fields in affinity index, just affinity key must be the first. // We don't care about number of fields in affinity index, just affinity key must be the first.
affIdxFound |= affCol != null && equal(cols.get(0), affCol); affIdxFound |= affCol != null && equal(cols.get(0), affCol);


cols = treeIndexColumns(cols, keyCol, affCol); cols = treeIndexColumns(cols, keyCol, affCol);


idxs.add(new GridH2TreeIndex(name, tbl, false, cols)); idxs.add(new GridH2TreeIndex(name, tbl, false, cols));
} }
else if (idx.type() == GEO_SPATIAL) else if (idx.type() == QueryIndexType.GEOSPATIAL)
idxs.add(createH2SpatialIndex(tbl, name, cols.toArray(new IndexColumn[cols.size()]))); idxs.add(createH2SpatialIndex(tbl, name, cols.toArray(new IndexColumn[cols.size()])));
else else
throw new IllegalStateException("Index type: " + idx.type()); throw new IllegalStateException("Index type: " + idx.type());
Expand Down
Expand Up @@ -21,11 +21,11 @@
import java.util.Collection; import java.util.Collection;
import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.atomic.AtomicLong;
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.cache.QueryIndexType;
import org.apache.ignite.internal.GridKernalContext; import org.apache.ignite.internal.GridKernalContext;
import org.apache.ignite.internal.processors.cache.CacheObject; import org.apache.ignite.internal.processors.cache.CacheObject;
import org.apache.ignite.internal.processors.cache.CacheObjectContext; import org.apache.ignite.internal.processors.cache.CacheObjectContext;
import org.apache.ignite.internal.processors.query.GridQueryIndexDescriptor; import org.apache.ignite.internal.processors.query.GridQueryIndexDescriptor;
import org.apache.ignite.internal.processors.query.GridQueryIndexType;
import org.apache.ignite.internal.processors.query.GridQueryTypeDescriptor; import org.apache.ignite.internal.processors.query.GridQueryTypeDescriptor;
import org.apache.ignite.internal.util.GridAtomicLong; import org.apache.ignite.internal.util.GridAtomicLong;
import org.apache.ignite.internal.util.GridCloseableIteratorAdapter; import org.apache.ignite.internal.util.GridCloseableIteratorAdapter;
Expand Down Expand Up @@ -118,7 +118,7 @@ public GridLuceneIndex(GridKernalContext ctx, @Nullable GridUnsafeMemory mem,
GridQueryIndexDescriptor idx = null; GridQueryIndexDescriptor idx = null;


for (GridQueryIndexDescriptor descriptor : type.indexes().values()) { for (GridQueryIndexDescriptor descriptor : type.indexes().values()) {
if (descriptor.type() == GridQueryIndexType.FULLTEXT) { if (descriptor.type() == QueryIndexType.FULLTEXT) {
idx = descriptor; idx = descriptor;


break; break;
Expand Down
Expand Up @@ -27,12 +27,12 @@
import java.util.Map; import java.util.Map;
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.IgniteLogger; import org.apache.ignite.IgniteLogger;
import org.apache.ignite.cache.QueryIndexType;
import org.apache.ignite.configuration.CacheConfiguration; import org.apache.ignite.configuration.CacheConfiguration;
import org.apache.ignite.internal.processors.cache.CacheObject; import org.apache.ignite.internal.processors.cache.CacheObject;
import org.apache.ignite.internal.processors.cache.CacheObjectContext; import org.apache.ignite.internal.processors.cache.CacheObjectContext;
import org.apache.ignite.internal.processors.query.GridQueryFieldsResult; import org.apache.ignite.internal.processors.query.GridQueryFieldsResult;
import org.apache.ignite.internal.processors.query.GridQueryIndexDescriptor; import org.apache.ignite.internal.processors.query.GridQueryIndexDescriptor;
import org.apache.ignite.internal.processors.query.GridQueryIndexType;
import org.apache.ignite.internal.processors.query.GridQueryProperty; import org.apache.ignite.internal.processors.query.GridQueryProperty;
import org.apache.ignite.internal.processors.query.GridQueryTypeDescriptor; import org.apache.ignite.internal.processors.query.GridQueryTypeDescriptor;
import org.apache.ignite.internal.util.typedef.F; import org.apache.ignite.internal.util.typedef.F;
Expand Down Expand Up @@ -502,8 +502,8 @@ private TextIndex(Collection<String> fields) {
} }


/** {@inheritDoc} */ /** {@inheritDoc} */
@Override public GridQueryIndexType type() { @Override public QueryIndexType type() {
return GridQueryIndexType.FULLTEXT; return QueryIndexType.FULLTEXT;
} }
} }


Expand Down

0 comments on commit 0ea88cd

Please sign in to comment.