public class GridCacheQueriesProxy<K,V> extends Object implements GridCacheQueriesEx<K,V>, Externalizable
| Constructor and Description |
|---|
GridCacheQueriesProxy()
Required by
Externalizable. |
GridCacheQueriesProxy(GridCacheContext<K,V> cctx,
GridCacheProjectionImpl<K,V> prj,
GridCacheQueriesEx<K,V> delegate)
Create cache queries implementation.
|
| Modifier and Type | Method and Description |
|---|---|
CacheQuery<Map.Entry<K,V>> |
createFullTextQuery(Class<?> cls,
String search)
Creates user's full text query, queried class, and query clause.
|
CacheQuery<Map.Entry<K,V>> |
createFullTextQuery(String clsName,
String search)
Creates user's full text query, queried class, and query clause.
|
CacheQuery<Map.Entry<K,V>> |
createScanQuery(IgniteBiPredicate<K,V> filter)
Creates user's predicate based scan query.
|
<R> CacheQuery<R> |
createSpiQuery()
Creates SPI query.
|
CacheQuery<List<?>> |
createSqlFieldsQuery(String qry)
Creates user's SQL fields query for given clause.
|
CacheQuery<List<?>> |
createSqlFieldsQuery(String qry,
boolean incMeta)
Creates SQL fields query which will include results metadata if needed.
|
CacheQuery<Map.Entry<K,V>> |
createSqlQuery(Class<?> cls,
String clause)
Creates user's SQL query, queried class, and query clause which is generally
a where clause.
|
CacheQuery<Map.Entry<K,V>> |
createSqlQuery(String clsName,
String clause)
Creates user's SQL query, queried class, and query clause which is generally
a where clause.
|
IgniteInternalFuture<GridCacheSqlResult> |
execute(String space,
GridCacheTwoStepQuery qry) |
IgniteInternalFuture<GridCacheSqlResult> |
executeTwoStepQuery(String space,
String sqlQry,
Object[] params) |
QueryMetrics |
metrics()
Accumulated metrics for all queries executed for this cache.
|
CacheProjection<K,V> |
projection()
Gets cache projection.
|
void |
readExternal(ObjectInput in) |
IgniteInternalFuture<?> |
rebuildAllIndexes()
Forces this cache to rebuild search indexes of all types.
|
IgniteInternalFuture<?> |
rebuildIndexes(Class<?> cls)
Forces this cache to rebuild all search indexes of given value type.
|
IgniteInternalFuture<?> |
rebuildIndexes(String typeName)
Forces this cache to rebuild all search indexes of given value type.
|
void |
resetMetrics()
Resets accumulated metrics.
|
Collection<GridCacheSqlMetadata> |
sqlMetadata()
Gets SQL metadata.
|
void |
writeExternal(ObjectOutput out) |
public GridCacheQueriesProxy()
Externalizable.public GridCacheQueriesProxy(GridCacheContext<K,V> cctx, @Nullable GridCacheProjectionImpl<K,V> prj, GridCacheQueriesEx<K,V> delegate)
cctx - Context.prj - Optional cache projection.delegate - Delegate object.public CacheProjection<K,V> projection()
public CacheQuery<Map.Entry<K,V>> createSqlQuery(Class<?> cls, String clause)
CacheQuery documentation.createSqlQuery in interface CacheQueries<K,V>cls - Query class.clause - Query clause.public CacheQuery<Map.Entry<K,V>> createSqlQuery(String clsName, String clause)
CacheQuery documentation.createSqlQuery in interface CacheQueries<K,V>clsName - Query class name.clause - Query clause.public CacheQuery<List<?>> createSqlFieldsQuery(String qry)
CacheQuery documentation.createSqlFieldsQuery in interface CacheQueries<K,V>qry - Query.public CacheQuery<Map.Entry<K,V>> createFullTextQuery(Class<?> cls, String search)
CacheQuery documentation.createFullTextQuery in interface CacheQueries<K,V>cls - Query class.search - Search clause.public CacheQuery<Map.Entry<K,V>> createFullTextQuery(String clsName, String search)
CacheQuery documentation.createFullTextQuery in interface CacheQueries<K,V>clsName - Query class name.search - Search clause.public CacheQuery<Map.Entry<K,V>> createScanQuery(@Nullable IgniteBiPredicate<K,V> filter)
createScanQuery in interface CacheQueries<K,V>filter - Scan filter.public <R> CacheQuery<R> createSpiQuery()
createSpiQuery in interface GridCacheQueriesEx<K,V>public IgniteInternalFuture<GridCacheSqlResult> execute(String space, GridCacheTwoStepQuery qry)
execute in interface GridCacheQueriesEx<K,V>space - Space name.qry - Query.public IgniteInternalFuture<GridCacheSqlResult> executeTwoStepQuery(String space, String sqlQry, Object[] params)
executeTwoStepQuery in interface GridCacheQueriesEx<K,V>space - Space.sqlQry - Query.params - Parameters.public IgniteInternalFuture<?> rebuildIndexes(Class<?> cls)
rebuildIndexes in interface CacheQueries<K,V>cls - Value type to rebuild indexes for.public IgniteInternalFuture<?> rebuildIndexes(String typeName)
rebuildIndexes in interface CacheQueries<K,V>typeName - Value type name to rebuild indexes for.public IgniteInternalFuture<?> rebuildAllIndexes()
rebuildAllIndexes in interface CacheQueries<K,V>public QueryMetrics metrics()
metrics in interface CacheQueries<K,V>public void resetMetrics()
resetMetrics in interface CacheQueries<K,V>public Collection<GridCacheSqlMetadata> sqlMetadata() throws IgniteCheckedException
sqlMetadata in interface GridCacheQueriesEx<K,V>IgniteCheckedException - In case of error.public CacheQuery<List<?>> createSqlFieldsQuery(String qry, boolean incMeta)
createSqlFieldsQuery in interface GridCacheQueriesEx<K,V>qry - SQL query.incMeta - Whether to include results metadata.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015