Package tech.ydb.yoj.repository.ydb.yql
Class YqlPrimitiveType
java.lang.Object
tech.ydb.yoj.repository.ydb.yql.YqlPrimitiveType
- All Implemented Interfaces:
YqlType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfromYql(com.yandex.ydb.ValueProtos.Value value) com.yandex.ydb.ValueProtos.Type.Builderstatic @NonNull YqlPrimitiveTypeDeprecated, for removal: This API element is subject to removal in a future version.This method will be removed in YOJ 3.0.0.static @NonNull YqlPrimitiveTypeof(tech.ydb.yoj.databind.schema.Schema.JavaField column) Returns the Yql type of the column.static voidcom.yandex.ydb.ValueProtos.Value.Builder
-
Constructor Details
-
YqlPrimitiveType
public YqlPrimitiveType()
-
-
Method Details
-
changeStringDefaultTypeToUtf8
public static void changeStringDefaultTypeToUtf8() -
resetStringDefaultTypeToDefaults
public static void resetStringDefaultTypeToDefaults() -
of
Deprecated, for removal: This API element is subject to removal in a future version.This method will be removed in YOJ 3.0.0. Nothing in YOJ callsYqlPrimitiveType.of(Type)any more.Please use
YqlPrimitiveType.of(JavaField)because it correcly respects the customizations specified in the@Columnand@CustomValueTypeannotations. -
of
@NonNull public static @NonNull YqlPrimitiveType of(tech.ydb.yoj.databind.schema.Schema.JavaField column) Returns the Yql type of the column.If the
Columnannotation is specified for thecolumnfield, the annotation fielddbTypemay be used to specify the column type.- Returns:
- the Yql type of the column
-
getYqlTypeName
- Specified by:
getYqlTypeNamein interfaceYqlType
-
getYqlTypeBuilder
public com.yandex.ydb.ValueProtos.Type.Builder getYqlTypeBuilder()- Specified by:
getYqlTypeBuilderin interfaceYqlType
-
toYql
-
fromYql
-