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 YqlPrimitiveTypestatic @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
-
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
-