Package org.apache.drill.exec.proto
Class UserProtos.ResultColumnMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<UserProtos.ResultColumnMetadata.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,UserProtos.ResultColumnMetadataOrBuilder
- Enclosing class:
UserProtos.ResultColumnMetadata
public static final class UserProtos.ResultColumnMetadata.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
implements UserProtos.ResultColumnMetadataOrBuilder
Metadata of a column in query result setProtobuf type
exec.user.ResultColumnMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()whether the designated column is automatically incremented.Whether column's case matters for collations and comparisons.Designated column's catalog name.A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column.column nameData type in string format.Maximum number of characters required to display data from the column.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Is the column an aliased column.Is the data type a currency type? For JDBC only.optional bool is_nullable = 7;Column label name for display or print purposes.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) For numeric data, this is the maximum precision.Column's number of digits to right of the decimal point.Designated column's schema name.optional .exec.user.ColumnSearchability searchability = 13;Indicates whether values in the designated column are signed numbers.whether the column can be used in ORDER BY clauseDesignated column's table name.Defaults to READ_ONLYclone()booleanwhether the designated column is automatically incremented.booleanWhether column's case matters for collations and comparisons.Designated column's catalog name.com.google.protobuf.ByteStringDesignated column's catalog name.A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column.com.google.protobuf.ByteStringA fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column.column namecom.google.protobuf.ByteStringcolumn nameData type in string format.com.google.protobuf.ByteStringData type in string format.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintMaximum number of characters required to display data from the column.booleanIs the column an aliased column.booleanIs the data type a currency type? For JDBC only.booleanoptional bool is_nullable = 7;getLabel()Column label name for display or print purposes.com.google.protobuf.ByteStringColumn label name for display or print purposes.intFor numeric data, this is the maximum precision.intgetScale()Column's number of digits to right of the decimal point.Designated column's schema name.com.google.protobuf.ByteStringDesignated column's schema name.optional .exec.user.ColumnSearchability searchability = 13;booleanIndicates whether values in the designated column are signed numbers.booleanwhether the column can be used in ORDER BY clauseDesignated column's table name.com.google.protobuf.ByteStringDesignated column's table name.Defaults to READ_ONLYbooleanwhether the designated column is automatically incremented.booleanWhether column's case matters for collations and comparisons.booleanDesignated column's catalog name.booleanA fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column.booleancolumn namebooleanData type in string format.booleanMaximum number of characters required to display data from the column.booleanIs the column an aliased column.booleanIs the data type a currency type? For JDBC only.booleanoptional bool is_nullable = 7;booleanhasLabel()Column label name for display or print purposes.booleanFor numeric data, this is the maximum precision.booleanhasScale()Column's number of digits to right of the decimal point.booleanDesignated column's schema name.booleanoptional .exec.user.ColumnSearchability searchability = 13;booleanIndicates whether values in the designated column are signed numbers.booleanwhether the column can be used in ORDER BY clausebooleanDesignated column's table name.booleanDefaults to READ_ONLYprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAutoIncrement(boolean value) whether the designated column is automatically incremented.setCaseSensitivity(boolean value) Whether column's case matters for collations and comparisons.setCatalogName(String value) Designated column's catalog name.setCatalogNameBytes(com.google.protobuf.ByteString value) Designated column's catalog name.setClassName(String value) A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column.setClassNameBytes(com.google.protobuf.ByteString value) A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column.setColumnName(String value) column namesetColumnNameBytes(com.google.protobuf.ByteString value) column namesetDataType(String value) Data type in string format.setDataTypeBytes(com.google.protobuf.ByteString value) Data type in string format.setDisplaySize(int value) Maximum number of characters required to display data from the column.setIsAliased(boolean value) Is the column an aliased column.setIsCurrency(boolean value) Is the data type a currency type? For JDBC only.setIsNullable(boolean value) optional bool is_nullable = 7;Column label name for display or print purposes.setLabelBytes(com.google.protobuf.ByteString value) Column label name for display or print purposes.setPrecision(int value) For numeric data, this is the maximum precision.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setScale(int value) Column's number of digits to right of the decimal point.setSchemaName(String value) Designated column's schema name.setSchemaNameBytes(com.google.protobuf.ByteString value) Designated column's schema name.optional .exec.user.ColumnSearchability searchability = 13;setSigned(boolean value) Indicates whether values in the designated column are signed numbers.setSortable(boolean value) whether the column can be used in ORDER BY clausesetTableName(String value) Designated column's table name.setTableNameBytes(com.google.protobuf.ByteString value) Designated column's table name.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Defaults to READ_ONLYMethods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
setField
public UserProtos.ResultColumnMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
clearField
public UserProtos.ResultColumnMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
clearOneof
public UserProtos.ResultColumnMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
setRepeatedField
public UserProtos.ResultColumnMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
addRepeatedField
public UserProtos.ResultColumnMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UserProtos.ResultColumnMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
mergeFrom
public UserProtos.ResultColumnMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UserProtos.ResultColumnMetadata.Builder>- Throws:
IOException
-
hasCatalogName
public boolean hasCatalogName()Designated column's catalog name. Empty string if not applicable. Defaults to "DRILL" as drill has only one catalog.
optional string catalog_name = 1;- Specified by:
hasCatalogNamein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the catalogName field is set.
-
getCatalogName
Designated column's catalog name. Empty string if not applicable. Defaults to "DRILL" as drill has only one catalog.
optional string catalog_name = 1;- Specified by:
getCatalogNamein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The catalogName.
-
getCatalogNameBytes
public com.google.protobuf.ByteString getCatalogNameBytes()Designated column's catalog name. Empty string if not applicable. Defaults to "DRILL" as drill has only one catalog.
optional string catalog_name = 1;- Specified by:
getCatalogNameBytesin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The bytes for catalogName.
-
setCatalogName
Designated column's catalog name. Empty string if not applicable. Defaults to "DRILL" as drill has only one catalog.
optional string catalog_name = 1;- Parameters:
value- The catalogName to set.- Returns:
- This builder for chaining.
-
clearCatalogName
Designated column's catalog name. Empty string if not applicable. Defaults to "DRILL" as drill has only one catalog.
optional string catalog_name = 1;- Returns:
- This builder for chaining.
-
setCatalogNameBytes
public UserProtos.ResultColumnMetadata.Builder setCatalogNameBytes(com.google.protobuf.ByteString value) Designated column's catalog name. Empty string if not applicable. Defaults to "DRILL" as drill has only one catalog.
optional string catalog_name = 1;- Parameters:
value- The bytes for catalogName to set.- Returns:
- This builder for chaining.
-
hasSchemaName
public boolean hasSchemaName()Designated column's schema name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and schema info is lost. If we derive the schema from plan, we may get the right value.
optional string schema_name = 2;- Specified by:
hasSchemaNamein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the schemaName field is set.
-
getSchemaName
Designated column's schema name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and schema info is lost. If we derive the schema from plan, we may get the right value.
optional string schema_name = 2;- Specified by:
getSchemaNamein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The schemaName.
-
getSchemaNameBytes
public com.google.protobuf.ByteString getSchemaNameBytes()Designated column's schema name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and schema info is lost. If we derive the schema from plan, we may get the right value.
optional string schema_name = 2;- Specified by:
getSchemaNameBytesin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The bytes for schemaName.
-
setSchemaName
Designated column's schema name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and schema info is lost. If we derive the schema from plan, we may get the right value.
optional string schema_name = 2;- Parameters:
value- The schemaName to set.- Returns:
- This builder for chaining.
-
clearSchemaName
Designated column's schema name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and schema info is lost. If we derive the schema from plan, we may get the right value.
optional string schema_name = 2;- Returns:
- This builder for chaining.
-
setSchemaNameBytes
public UserProtos.ResultColumnMetadata.Builder setSchemaNameBytes(com.google.protobuf.ByteString value) Designated column's schema name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and schema info is lost. If we derive the schema from plan, we may get the right value.
optional string schema_name = 2;- Parameters:
value- The bytes for schemaName to set.- Returns:
- This builder for chaining.
-
hasTableName
public boolean hasTableName()Designated column's table name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and table info is lost. If we derive the schema from query plan, we may get the right value.
optional string table_name = 3;- Specified by:
hasTableNamein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the tableName field is set.
-
getTableName
Designated column's table name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and table info is lost. If we derive the schema from query plan, we may get the right value.
optional string table_name = 3;- Specified by:
getTableNamein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The tableName.
-
getTableNameBytes
public com.google.protobuf.ByteString getTableNameBytes()Designated column's table name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and table info is lost. If we derive the schema from query plan, we may get the right value.
optional string table_name = 3;- Specified by:
getTableNameBytesin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The bytes for tableName.
-
setTableName
Designated column's table name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and table info is lost. If we derive the schema from query plan, we may get the right value.
optional string table_name = 3;- Parameters:
value- The tableName to set.- Returns:
- This builder for chaining.
-
clearTableName
Designated column's table name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and table info is lost. If we derive the schema from query plan, we may get the right value.
optional string table_name = 3;- Returns:
- This builder for chaining.
-
setTableNameBytes
public UserProtos.ResultColumnMetadata.Builder setTableNameBytes(com.google.protobuf.ByteString value) Designated column's table name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and table info is lost. If we derive the schema from query plan, we may get the right value.
optional string table_name = 3;- Parameters:
value- The bytes for tableName to set.- Returns:
- This builder for chaining.
-
hasColumnName
public boolean hasColumnName()column name
optional string column_name = 4;- Specified by:
hasColumnNamein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the columnName field is set.
-
getColumnName
column name
optional string column_name = 4;- Specified by:
getColumnNamein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The columnName.
-
getColumnNameBytes
public com.google.protobuf.ByteString getColumnNameBytes()column name
optional string column_name = 4;- Specified by:
getColumnNameBytesin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The bytes for columnName.
-
setColumnName
column name
optional string column_name = 4;- Parameters:
value- The columnName to set.- Returns:
- This builder for chaining.
-
clearColumnName
column name
optional string column_name = 4;- Returns:
- This builder for chaining.
-
setColumnNameBytes
public UserProtos.ResultColumnMetadata.Builder setColumnNameBytes(com.google.protobuf.ByteString value) column name
optional string column_name = 4;- Parameters:
value- The bytes for columnName to set.- Returns:
- This builder for chaining.
-
hasLabel
public boolean hasLabel()Column label name for display or print purposes. Ex. a column named "empName" might be labeled as "Employee Name".
optional string label = 5;- Specified by:
hasLabelin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the label field is set.
-
getLabel
Column label name for display or print purposes. Ex. a column named "empName" might be labeled as "Employee Name".
optional string label = 5;- Specified by:
getLabelin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()Column label name for display or print purposes. Ex. a column named "empName" might be labeled as "Employee Name".
optional string label = 5;- Specified by:
getLabelBytesin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The bytes for label.
-
setLabel
Column label name for display or print purposes. Ex. a column named "empName" might be labeled as "Employee Name".
optional string label = 5;- Parameters:
value- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
Column label name for display or print purposes. Ex. a column named "empName" might be labeled as "Employee Name".
optional string label = 5;- Returns:
- This builder for chaining.
-
setLabelBytes
Column label name for display or print purposes. Ex. a column named "empName" might be labeled as "Employee Name".
optional string label = 5;- Parameters:
value- The bytes for label to set.- Returns:
- This builder for chaining.
-
hasDataType
public boolean hasDataType()Data type in string format. Value is SQL standard type.
optional string data_type = 6;- Specified by:
hasDataTypein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the dataType field is set.
-
getDataType
Data type in string format. Value is SQL standard type.
optional string data_type = 6;- Specified by:
getDataTypein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The dataType.
-
getDataTypeBytes
public com.google.protobuf.ByteString getDataTypeBytes()Data type in string format. Value is SQL standard type.
optional string data_type = 6;- Specified by:
getDataTypeBytesin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The bytes for dataType.
-
setDataType
Data type in string format. Value is SQL standard type.
optional string data_type = 6;- Parameters:
value- The dataType to set.- Returns:
- This builder for chaining.
-
clearDataType
Data type in string format. Value is SQL standard type.
optional string data_type = 6;- Returns:
- This builder for chaining.
-
setDataTypeBytes
public UserProtos.ResultColumnMetadata.Builder setDataTypeBytes(com.google.protobuf.ByteString value) Data type in string format. Value is SQL standard type.
optional string data_type = 6;- Parameters:
value- The bytes for dataType to set.- Returns:
- This builder for chaining.
-
hasIsNullable
public boolean hasIsNullable()optional bool is_nullable = 7;- Specified by:
hasIsNullablein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the isNullable field is set.
-
getIsNullable
public boolean getIsNullable()optional bool is_nullable = 7;- Specified by:
getIsNullablein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The isNullable.
-
setIsNullable
optional bool is_nullable = 7;- Parameters:
value- The isNullable to set.- Returns:
- This builder for chaining.
-
clearIsNullable
optional bool is_nullable = 7;- Returns:
- This builder for chaining.
-
hasPrecision
public boolean hasPrecision()For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For all other types 0 is returned where the column size is not applicable.optional int32 precision = 8;- Specified by:
hasPrecisionin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the precision field is set.
-
getPrecision
public int getPrecision()For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For all other types 0 is returned where the column size is not applicable.optional int32 precision = 8;- Specified by:
getPrecisionin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The precision.
-
setPrecision
For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For all other types 0 is returned where the column size is not applicable.optional int32 precision = 8;- Parameters:
value- The precision to set.- Returns:
- This builder for chaining.
-
clearPrecision
For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For all other types 0 is returned where the column size is not applicable.optional int32 precision = 8;- Returns:
- This builder for chaining.
-
hasScale
public boolean hasScale()Column's number of digits to right of the decimal point. 0 is returned for types where the scale is not applicable
optional int32 scale = 9;- Specified by:
hasScalein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the scale field is set.
-
getScale
public int getScale()Column's number of digits to right of the decimal point. 0 is returned for types where the scale is not applicable
optional int32 scale = 9;- Specified by:
getScalein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The scale.
-
setScale
Column's number of digits to right of the decimal point. 0 is returned for types where the scale is not applicable
optional int32 scale = 9;- Parameters:
value- The scale to set.- Returns:
- This builder for chaining.
-
clearScale
Column's number of digits to right of the decimal point. 0 is returned for types where the scale is not applicable
optional int32 scale = 9;- Returns:
- This builder for chaining.
-
hasSigned
public boolean hasSigned()Indicates whether values in the designated column are signed numbers.
optional bool signed = 10;- Specified by:
hasSignedin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the signed field is set.
-
getSigned
public boolean getSigned()Indicates whether values in the designated column are signed numbers.
optional bool signed = 10;- Specified by:
getSignedin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The signed.
-
setSigned
Indicates whether values in the designated column are signed numbers.
optional bool signed = 10;- Parameters:
value- The signed to set.- Returns:
- This builder for chaining.
-
clearSigned
Indicates whether values in the designated column are signed numbers.
optional bool signed = 10;- Returns:
- This builder for chaining.
-
hasDisplaySize
public boolean hasDisplaySize()Maximum number of characters required to display data from the column.
optional int32 display_size = 11;- Specified by:
hasDisplaySizein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the displaySize field is set.
-
getDisplaySize
public int getDisplaySize()Maximum number of characters required to display data from the column.
optional int32 display_size = 11;- Specified by:
getDisplaySizein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The displaySize.
-
setDisplaySize
Maximum number of characters required to display data from the column.
optional int32 display_size = 11;- Parameters:
value- The displaySize to set.- Returns:
- This builder for chaining.
-
clearDisplaySize
Maximum number of characters required to display data from the column.
optional int32 display_size = 11;- Returns:
- This builder for chaining.
-
hasIsAliased
public boolean hasIsAliased()Is the column an aliased column. Initial implementation defaults to true as we derive schema from LIMIT 0 query and not the query plan.
optional bool is_aliased = 12;- Specified by:
hasIsAliasedin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the isAliased field is set.
-
getIsAliased
public boolean getIsAliased()Is the column an aliased column. Initial implementation defaults to true as we derive schema from LIMIT 0 query and not the query plan.
optional bool is_aliased = 12;- Specified by:
getIsAliasedin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The isAliased.
-
setIsAliased
Is the column an aliased column. Initial implementation defaults to true as we derive schema from LIMIT 0 query and not the query plan.
optional bool is_aliased = 12;- Parameters:
value- The isAliased to set.- Returns:
- This builder for chaining.
-
clearIsAliased
Is the column an aliased column. Initial implementation defaults to true as we derive schema from LIMIT 0 query and not the query plan.
optional bool is_aliased = 12;- Returns:
- This builder for chaining.
-
hasSearchability
public boolean hasSearchability()optional .exec.user.ColumnSearchability searchability = 13;- Specified by:
hasSearchabilityin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the searchability field is set.
-
getSearchability
optional .exec.user.ColumnSearchability searchability = 13;- Specified by:
getSearchabilityin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The searchability.
-
setSearchability
public UserProtos.ResultColumnMetadata.Builder setSearchability(UserProtos.ColumnSearchability value) optional .exec.user.ColumnSearchability searchability = 13;- Parameters:
value- The searchability to set.- Returns:
- This builder for chaining.
-
clearSearchability
optional .exec.user.ColumnSearchability searchability = 13;- Returns:
- This builder for chaining.
-
hasUpdatability
public boolean hasUpdatability()Defaults to READ_ONLY
optional .exec.user.ColumnUpdatability updatability = 14;- Specified by:
hasUpdatabilityin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the updatability field is set.
-
getUpdatability
Defaults to READ_ONLY
optional .exec.user.ColumnUpdatability updatability = 14;- Specified by:
getUpdatabilityin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The updatability.
-
setUpdatability
Defaults to READ_ONLY
optional .exec.user.ColumnUpdatability updatability = 14;- Parameters:
value- The updatability to set.- Returns:
- This builder for chaining.
-
clearUpdatability
Defaults to READ_ONLY
optional .exec.user.ColumnUpdatability updatability = 14;- Returns:
- This builder for chaining.
-
hasAutoIncrement
public boolean hasAutoIncrement()whether the designated column is automatically incremented.
optional bool auto_increment = 15;- Specified by:
hasAutoIncrementin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the autoIncrement field is set.
-
getAutoIncrement
public boolean getAutoIncrement()whether the designated column is automatically incremented.
optional bool auto_increment = 15;- Specified by:
getAutoIncrementin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The autoIncrement.
-
setAutoIncrement
whether the designated column is automatically incremented.
optional bool auto_increment = 15;- Parameters:
value- The autoIncrement to set.- Returns:
- This builder for chaining.
-
clearAutoIncrement
whether the designated column is automatically incremented.
optional bool auto_increment = 15;- Returns:
- This builder for chaining.
-
hasCaseSensitivity
public boolean hasCaseSensitivity()Whether column's case matters for collations and comparisons. Defaults to true.
optional bool case_sensitivity = 16;- Specified by:
hasCaseSensitivityin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the caseSensitivity field is set.
-
getCaseSensitivity
public boolean getCaseSensitivity()Whether column's case matters for collations and comparisons. Defaults to true.
optional bool case_sensitivity = 16;- Specified by:
getCaseSensitivityin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The caseSensitivity.
-
setCaseSensitivity
Whether column's case matters for collations and comparisons. Defaults to true.
optional bool case_sensitivity = 16;- Parameters:
value- The caseSensitivity to set.- Returns:
- This builder for chaining.
-
clearCaseSensitivity
Whether column's case matters for collations and comparisons. Defaults to true.
optional bool case_sensitivity = 16;- Returns:
- This builder for chaining.
-
hasSortable
public boolean hasSortable()whether the column can be used in ORDER BY clause
optional bool sortable = 17;- Specified by:
hasSortablein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the sortable field is set.
-
getSortable
public boolean getSortable()whether the column can be used in ORDER BY clause
optional bool sortable = 17;- Specified by:
getSortablein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The sortable.
-
setSortable
whether the column can be used in ORDER BY clause
optional bool sortable = 17;- Parameters:
value- The sortable to set.- Returns:
- This builder for chaining.
-
clearSortable
whether the column can be used in ORDER BY clause
optional bool sortable = 17;- Returns:
- This builder for chaining.
-
hasClassName
public boolean hasClassName()A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column. Applicable only to JDBC clients.
optional string class_name = 18;- Specified by:
hasClassNamein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the className field is set.
-
getClassName
A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column. Applicable only to JDBC clients.
optional string class_name = 18;- Specified by:
getClassNamein interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The className.
-
getClassNameBytes
public com.google.protobuf.ByteString getClassNameBytes()A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column. Applicable only to JDBC clients.
optional string class_name = 18;- Specified by:
getClassNameBytesin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The bytes for className.
-
setClassName
A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column. Applicable only to JDBC clients.
optional string class_name = 18;- Parameters:
value- The className to set.- Returns:
- This builder for chaining.
-
clearClassName
A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column. Applicable only to JDBC clients.
optional string class_name = 18;- Returns:
- This builder for chaining.
-
setClassNameBytes
public UserProtos.ResultColumnMetadata.Builder setClassNameBytes(com.google.protobuf.ByteString value) A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column. Applicable only to JDBC clients.
optional string class_name = 18;- Parameters:
value- The bytes for className to set.- Returns:
- This builder for chaining.
-
hasIsCurrency
public boolean hasIsCurrency()Is the data type a currency type? For JDBC only.
optional bool is_currency = 20;- Specified by:
hasIsCurrencyin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- Whether the isCurrency field is set.
-
getIsCurrency
public boolean getIsCurrency()Is the data type a currency type? For JDBC only.
optional bool is_currency = 20;- Specified by:
getIsCurrencyin interfaceUserProtos.ResultColumnMetadataOrBuilder- Returns:
- The isCurrency.
-
setIsCurrency
Is the data type a currency type? For JDBC only.
optional bool is_currency = 20;- Parameters:
value- The isCurrency to set.- Returns:
- This builder for chaining.
-
clearIsCurrency
Is the data type a currency type? For JDBC only.
optional bool is_currency = 20;- Returns:
- This builder for chaining.
-
setUnknownFields
public final UserProtos.ResultColumnMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
mergeUnknownFields
public final UserProtos.ResultColumnMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-