Class YqlView

java.lang.Object
tech.ydb.yoj.repository.ydb.yql.YqlView
All Implemented Interfaces:
YqlStatementPart<YqlView>

public class YqlView extends Object implements YqlStatementPart<YqlView>
Represents a view [index_name] clause in a YQL statement, i.e. index usage
See Also:
  • Field Details

  • Constructor Details

    • YqlView

      public YqlView()
  • Method Details

    • index

      public static YqlView index(@NonNull @NonNull String index)
      Creates a view clause to fetch rows using effective index
      Parameters:
      index - index name; must not be null
      Returns:
      view clause to fetch rows using index
    • empty

      public static YqlView empty()
      Returns:
      view clause that uses no index
      See Also:
    • index

      @Deprecated(forRemoval=true) public String 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 constructor index(String). It will be removed in YOJ 3.0.0. Please use #getIndex() instead.
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface YqlStatementPart<YqlView>
    • getType

      public String getType()
      Specified by:
      getType in interface YqlStatementPart<YqlView>
    • getYqlPrefix

      public String getYqlPrefix()
      Specified by:
      getYqlPrefix in interface YqlStatementPart<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:
      toYql in interface YqlStatementPart<YqlView>
    • toString

      public String toString()
      Overrides:
      toString in class Object