Class YqlPrimitiveType

java.lang.Object
tech.ydb.yoj.repository.ydb.yql.YqlPrimitiveType
All Implemented Interfaces:
YqlType

public class YqlPrimitiveType extends Object implements YqlType
  • Constructor Details

    • YqlPrimitiveType

      public YqlPrimitiveType()
  • Method Details

    • changeStringDefaultTypeToUtf8

      public static void changeStringDefaultTypeToUtf8()
    • resetStringDefaultTypeToDefaults

      public static void resetStringDefaultTypeToDefaults()
    • of

      @NonNull public static @NonNull YqlPrimitiveType of(Type javaType)
    • of

      @NonNull public static @NonNull YqlPrimitiveType of(Schema.JavaField column)
      Returns the Yql type of the column.

      If the Column annotation is specified for the column field, the annotation field dbType may be used to specify the column type.

      Returns:
      the Yql type of the column
    • getYqlTypeName

      public String getYqlTypeName()
      Specified by:
      getYqlTypeName in interface YqlType
    • getYqlTypeBuilder

      public tech.ydb.proto.ValueProtos.Type.Builder getYqlTypeBuilder()
      Specified by:
      getYqlTypeBuilder in interface YqlType
    • toYql

      public tech.ydb.proto.ValueProtos.Value.Builder toYql(Object value)
      Specified by:
      toYql in interface YqlType
    • fromYql

      public Object fromYql(tech.ydb.proto.ValueProtos.Value value)
      Specified by:
      fromYql in interface YqlType