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>
  • 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

      public String getQuery(String tablespace)
      Description copied from interface: Statement
      Returns parameterized YQL for this query.
      Parameters:
      tablespace - base path for all tables referenced in the query
      Returns:
      YQL
    • getQueryType

      public Statement.QueryType getQueryType()
      Description copied from interface: Statement
      Returns query type (for query merging purposes).
      Returns:
      query type
    • toDebugString

      public String toDebugString(Collection<? extends YqlStatementPart<?>> yqlStatementParts)
      Description copied from interface: Statement
      Returns debug representation of this query with the specified parameter values.
      Parameters:
      yqlStatementParts - parameter values. Might be null depending on the statement type, e.g. for DELETE statements.
      Returns:
      debug representation of the query parameterized with params