Package tech.ydb.yoj.repository.ydb.yql
Class YqlView
java.lang.Object
tech.ydb.yoj.repository.ydb.yql.YqlView
- All Implemented Interfaces:
YqlStatementPart<YqlView>
Represents a
view [index_name] clause in a YQL statement, i.e. index usage- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionList<? extends YqlStatementPart<?>>static YqlViewempty()intgetType()index()static YqlViewCreates a view clause to fetch rows using effective indextoString()<T extends tech.ydb.yoj.repository.db.Entity<T>>
StringtoYql(@NonNull tech.ydb.yoj.repository.db.EntitySchema<T> schema) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tech.ydb.yoj.repository.ydb.yql.YqlStatementPart
toFullYql
-
Field Details
-
TYPE
- See Also:
-
EMPTY
-
-
Method Details
-
index
Creates a view clause to fetch rows using effective index- Parameters:
index- index- Returns:
- view clause to fetch rows using index
-
empty
- Returns:
- view clause that uses no index
- See Also:
-
index
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceYqlStatementPart<YqlView>
-
getType
- Specified by:
getTypein interfaceYqlStatementPart<YqlView>
-
getYqlPrefix
- Specified by:
getYqlPrefixin interfaceYqlStatementPart<YqlView>
-
toYql
public <T extends tech.ydb.yoj.repository.db.Entity<T>> String toYql(@NonNull @NonNull tech.ydb.yoj.repository.db.EntitySchema<T> schema) - Specified by:
toYqlin interfaceYqlStatementPart<YqlView>
-
combine
- Specified by:
combinein interfaceYqlStatementPart<YqlView>
-
toString
-