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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic YqlViewempty()intgetType()index()Deprecated, for removal: This API element is subject to removal in a future version.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
combine, toFullYql
-
Field Details
-
TYPE
- See Also:
-
EMPTY
-
-
Constructor Details
-
YqlView
public YqlView()
-
-
Method Details
-
index
Creates a view clause to fetch rows using effective index- Parameters:
index- index name; must not benull- Returns:
- view clause to fetch rows using index
-
empty
- Returns:
- view clause that uses no index
- See Also:
-
index
Deprecated, for removal: This API element is subject to removal in a future version.This method is confusingly named, because there also is a static constructorindex(String). It will be removed in YOJ 3.0.0. Please use#getIndex()instead. -
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>
-
toString
-
index(String).