Class FindRangeStatement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,ID extends tech.ydb.yoj.repository.db.Entity.Id<ENTITY>,RESULT>

java.lang.Object
tech.ydb.yoj.repository.ydb.statement.YqlStatement<tech.ydb.yoj.repository.db.Range<ID>,ENTITY,RESULT>
tech.ydb.yoj.repository.ydb.statement.FindRangeStatement<ENTITY,ID,RESULT>
All Implemented Interfaces:
Statement<tech.ydb.yoj.repository.db.Range<ID>,RESULT>

public class FindRangeStatement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,ID extends tech.ydb.yoj.repository.db.Entity.Id<ENTITY>,RESULT> extends YqlStatement<tech.ydb.yoj.repository.db.Range<ID>,ENTITY,RESULT>
  • Constructor Details

    • FindRangeStatement

      public FindRangeStatement(tech.ydb.yoj.repository.db.EntitySchema<ENTITY> schema, Schema<RESULT> outSchema, tech.ydb.yoj.repository.db.Range<ID> range)
  • Method Details

    • toQueryParameters

      public Map<String,tech.ydb.proto.ValueProtos.TypedValue> toQueryParameters(tech.ydb.yoj.repository.db.Range<ID> parameters)
      Description copied from interface: Statement
      Returns the query's parameter values as YDB protobuf structures.
      Specified by:
      toQueryParameters in interface Statement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,ID extends tech.ydb.yoj.repository.db.Entity.Id<ENTITY>>
      Overrides:
      toQueryParameters in class YqlStatement<tech.ydb.yoj.repository.db.Range<ID extends tech.ydb.yoj.repository.db.Entity.Id<ENTITY>>,ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,RESULT>
      Parameters:
      parameters - parameter values Might be null depending on the statement type, e.g. for DELETE statements.
      Returns:
      map: parameter name -> value as protobuf
    • getQueryType

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

      public String toDebugString(tech.ydb.yoj.repository.db.Range<ID> idRange)
      Description copied from interface: Statement
      Returns debug representation of this query with the specified parameter values.
      Parameters:
      idRange - parameter values. Might be null depending on the statement type, e.g. for DELETE statements.
      Returns:
      debug representation of the query parameterized with params
    • 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