Class FindStatement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,RESULT>

java.lang.Object
tech.ydb.yoj.repository.ydb.statement.YqlStatement<PARAMS,ENTITY,RESULT>
tech.ydb.yoj.repository.ydb.statement.PredicateStatement<Collection<? extends YqlStatementPart<?>>,ENTITY,RESULT>
tech.ydb.yoj.repository.ydb.statement.FindStatement<ENTITY,RESULT>
All Implemented Interfaces:
Statement<Collection<? extends YqlStatementPart<?>>,RESULT>

public class FindStatement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,RESULT> extends PredicateStatement<Collection<? extends YqlStatementPart<?>>,ENTITY,RESULT>
  • Method Details

    • from

      public static <E extends tech.ydb.yoj.repository.db.Entity<E>, R> FindStatement<E,R> from(@NonNull @NonNull tech.ydb.yoj.repository.db.TableDescriptor<E> tableDescriptor, @NonNull @NonNull tech.ydb.yoj.repository.db.EntitySchema<E> schema, @NonNull @NonNull Schema<R> outSchema, @NonNull @NonNull Collection<? extends YqlStatementPart<?>> parts, boolean distinct)
    • 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