Class Type.SchemalessEnum (2.66.0)

public abstract static class Type.SchemalessEnum implements SqlType.Enum

This is a special version of enum that is intended to only be used internally, to facilitate enum schema parsing, which does not have the full information required to parse the protobuf enum messages.

Any attempts to call getForNumber() will throw an exception.

Inheritance

java.lang.Object > Type.SchemalessEnum

Implements

SqlType.Enum

Static Methods

create(String enumName)

public static Type.SchemalessEnum create(String enumName)
Parameter
Name Description
enumName String
Returns
Type Description
Type.SchemalessEnum

fromProto(Type.Enum proto)

public static Type.SchemalessEnum fromProto(Type.Enum proto)
Parameter
Name Description
proto com.google.bigtable.v2.Type.Enum
Returns
Type Description
Type.SchemalessEnum

Constructors

SchemalessEnum()

public SchemalessEnum()

Methods

getCode()

public SqlType.Code getCode()
Returns
Type Description
SqlType.Code

getEnumName()

public abstract String getEnumName()
Returns
Type Description
String

getForNumber()

public Function<Integer,ProtocolMessageEnum> getForNumber()
Returns
Type Description
Function<java.lang.Integer,ProtocolMessageEnum>

toString()

public String toString()
Returns
Type Description
String
Overrides