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>
-
Nested Class Summary
Nested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns parameterized YQL for this query.Returns query type (for query merging purposes).toDebugString(tech.ydb.yoj.repository.db.Range<ID> idRange) Returns debug representation of this query with the specified parameter values.toQueryParameters(tech.ydb.yoj.repository.db.Range<ID> parameters) Returns the query's parameter values as YDB protobuf structures.Methods inherited from class tech.ydb.yoj.repository.ydb.statement.YqlStatement
createTQueryParameter, declarations, equals, escape, getDeclaration, getInSchemaType, getParams, getYqlType, getYqlValue, 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
-
FindRangeStatement
-
-
Method Details
-
toQueryParameters
public Map<String,tech.ydb.proto.ValueProtos.TypedValue> toQueryParameters(tech.ydb.yoj.repository.db.Range<ID> parameters) Description copied from interface:StatementReturns the query's parameter values as YDB protobuf structures.- Specified by:
toQueryParametersin interfaceStatement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,ID extends tech.ydb.yoj.repository.db.Entity.Id<ENTITY>> - Overrides:
toQueryParametersin classYqlStatement<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 benulldepending on the statement type, e.g. for DELETE statements.- Returns:
- map: parameter name -> value as protobuf
-
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:
idRange- parameter values. Might benulldepending on the statement type, e.g. for DELETE statements.- Returns:
- debug representation of the query parameterized with
params
-
getQuery
Description copied from interface:StatementReturns parameterized YQL for this query.- Parameters:
tablespace- base path for all tables referenced in the query- Returns:
- YQL
-