Class CountAllStatement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>>
java.lang.Object
tech.ydb.yoj.repository.ydb.statement.YqlStatement<PARAMS,ENTITY,RESULT>
tech.ydb.yoj.repository.ydb.statement.PredicateStatement<Collection<? extends YqlStatementPart<?>>,ENTITY,Count>
tech.ydb.yoj.repository.ydb.statement.CountAllStatement<ENTITY>
- All Implemented Interfaces:
Statement<Collection<? extends YqlStatementPart<?>>,Count>
public class CountAllStatement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>>
extends PredicateStatement<Collection<? extends YqlStatementPart<?>>,ENTITY,Count>
-
Nested Class Summary
Nested classes/interfaces inherited from class tech.ydb.yoj.repository.ydb.statement.PredicateStatement
PredicateStatement.CollectionKind, PredicateStatement.ComplexFieldNested classes/interfaces inherited from interface tech.ydb.yoj.repository.ydb.statement.Statement
Statement.QueryType -
Field Summary
Fields inherited from class tech.ydb.yoj.repository.ydb.statement.YqlStatement
itemsCollector, ORDER_BY_ID_ASCENDING, resultSchema, resultSetReader, schema, tableDescriptor -
Constructor Summary
ConstructorsConstructorDescriptionCountAllStatement(tech.ydb.yoj.repository.db.TableDescriptor<ENTITY> tableDescriptor, tech.ydb.yoj.repository.db.EntitySchema<ENTITY> schema, List<YqlStatementPart<?>> parts) -
Method Summary
Modifier and TypeMethodDescriptionReturns parameterized YQL for this query.Returns query type (for query merging purposes).toDebugString(Collection<? extends YqlStatementPart<?>> yqlStatementParts) Returns debug representation of this query with the specified parameter values.Methods inherited from class tech.ydb.yoj.repository.ydb.statement.PredicateStatement
createTQueryParameter, declarations, getParams, getYqlType, getYqlValue, toQueryParametersMethods inherited from class tech.ydb.yoj.repository.ydb.statement.YqlStatement
equals, escape, getDeclaration, getInSchemaType, hashCode, isPreparable, mergeParts, mergeParts, nameEqVars, outNames, readResult, resolveParamNames, storeToCache, table, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tech.ydb.yoj.repository.ydb.statement.Statement
readFromCache
-
Constructor Details
-
CountAllStatement
public CountAllStatement(tech.ydb.yoj.repository.db.TableDescriptor<ENTITY> tableDescriptor, tech.ydb.yoj.repository.db.EntitySchema<ENTITY> schema, List<YqlStatementPart<?>> parts)
-
-
Method Details
-
getQuery
Description copied from interface:StatementReturns parameterized YQL for this query.- Parameters:
tablespace- base path for all tables referenced in the query- Returns:
- YQL
-
getQueryType
Description copied from interface:StatementReturns query type (for query merging purposes).- Returns:
- query type
-
toDebugString
Description copied from interface:StatementReturns debug representation of this query with the specified parameter values.- Parameters:
yqlStatementParts- parameter values. Might benulldepending on the statement type, e.g. for DELETE statements.- Returns:
- debug representation of the query parameterized with
params
-