Package com.clickhouse.client.grpc.impl
Class ExternalTable.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ExternalTable.Builder>
com.clickhouse.client.grpc.impl.ExternalTable.Builder
- All Implemented Interfaces:
ExternalTableOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExternalTable
public static final class ExternalTable.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ExternalTable.Builder>
implements ExternalTableOrBuilder
Describes an external table - a table which will exists only while a query is executing.Protobuf type
clickhouse.grpc.ExternalTable-
Method Summary
Modifier and TypeMethodDescriptionaddAllColumns(Iterable<? extends NameAndType> values) Columns of the table.addColumns(int index, NameAndType value) Columns of the table.addColumns(int index, NameAndType.Builder builderForValue) Columns of the table.addColumns(NameAndType value) Columns of the table.addColumns(NameAndType.Builder builderForValue) Columns of the table.Columns of the table.addColumnsBuilder(int index) Columns of the table.build()clear()Columns of the table.Compression type used to compress `data`.Data to insert to the external table.Format of the data to insert to the external table.Name of the table.booleancontainsSettings(String key) Settings for executing that insertion, applied after QueryInfo.settings.getColumns(int index) Columns of the table.getColumnsBuilder(int index) Columns of the table.Columns of the table.intColumns of the table.Columns of the table.getColumnsOrBuilder(int index) Columns of the table.List<? extends NameAndTypeOrBuilder>Columns of the table.Compression type used to compress `data`.com.google.protobuf.ByteStringCompression type used to compress `data`.com.google.protobuf.ByteStringgetData()Data to insert to the external table.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorFormat of the data to insert to the external table.com.google.protobuf.ByteStringFormat of the data to insert to the external table.Deprecated.getName()Name of the table.com.google.protobuf.ByteStringName of the table.Deprecated.intSettings for executing that insertion, applied after QueryInfo.settings.Settings for executing that insertion, applied after QueryInfo.settings.getSettingsOrDefault(String key, String defaultValue) Settings for executing that insertion, applied after QueryInfo.settings.getSettingsOrThrow(String key) Settings for executing that insertion, applied after QueryInfo.settings.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number) final booleanmergeFrom(ExternalTable other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final ExternalTable.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllSettings(Map<String, String> values) Settings for executing that insertion, applied after QueryInfo.settings.putSettings(String key, String value) Settings for executing that insertion, applied after QueryInfo.settings.removeColumns(int index) Columns of the table.removeSettings(String key) Settings for executing that insertion, applied after QueryInfo.settings.setColumns(int index, NameAndType value) Columns of the table.setColumns(int index, NameAndType.Builder builderForValue) Columns of the table.setCompressionType(String value) Compression type used to compress `data`.setCompressionTypeBytes(com.google.protobuf.ByteString value) Compression type used to compress `data`.setData(com.google.protobuf.ByteString value) Data to insert to the external table.Format of the data to insert to the external table.setFormatBytes(com.google.protobuf.ByteString value) Format of the data to insert to the external table.Name of the table.setNameBytes(com.google.protobuf.ByteString value) Name of the table.final ExternalTable.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExternalTable.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ExternalTable.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ExternalTable.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<ExternalTable.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<ExternalTable.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExternalTable.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ExternalTable.Builder>
-
mergeFrom
public ExternalTable.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<ExternalTable.Builder>- Throws:
IOException
-
getName
Name of the table. If omitted, "_data" is used.
string name = 1;- Specified by:
getNamein interfaceExternalTableOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the table. If omitted, "_data" is used.
string name = 1;- Specified by:
getNameBytesin interfaceExternalTableOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the table. If omitted, "_data" is used.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the table. If omitted, "_data" is used.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the table. If omitted, "_data" is used.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getColumnsList
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2;- Specified by:
getColumnsListin interfaceExternalTableOrBuilder
-
getColumnsCount
public int getColumnsCount()Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2;- Specified by:
getColumnsCountin interfaceExternalTableOrBuilder
-
getColumns
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2;- Specified by:
getColumnsin interfaceExternalTableOrBuilder
-
setColumns
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
setColumns
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
addColumns
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
addColumns
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
addColumns
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
addColumns
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
addAllColumns
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
clearColumns
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
removeColumns
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
getColumnsBuilder
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
getColumnsOrBuilder
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2;- Specified by:
getColumnsOrBuilderin interfaceExternalTableOrBuilder
-
getColumnsOrBuilderList
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2;- Specified by:
getColumnsOrBuilderListin interfaceExternalTableOrBuilder
-
addColumnsBuilder
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
addColumnsBuilder
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
getColumnsBuilderList
Columns of the table. Types are required, names can be omitted. If the names are omitted, "_1", "_2", ... is used.
repeated .clickhouse.grpc.NameAndType columns = 2; -
getData
public com.google.protobuf.ByteString getData()Data to insert to the external table. If a method with streaming input (i.e. ExecuteQueryWithStreamInput() or ExecuteQueryWithStreamIO()) is used, then data for insertion to the same external table can be split between multiple QueryInfos.
bytes data = 3;- Specified by:
getDatain interfaceExternalTableOrBuilder- Returns:
- The data.
-
setData
Data to insert to the external table. If a method with streaming input (i.e. ExecuteQueryWithStreamInput() or ExecuteQueryWithStreamIO()) is used, then data for insertion to the same external table can be split between multiple QueryInfos.
bytes data = 3;- Parameters:
value- The data to set.- Returns:
- This builder for chaining.
-
clearData
Data to insert to the external table. If a method with streaming input (i.e. ExecuteQueryWithStreamInput() or ExecuteQueryWithStreamIO()) is used, then data for insertion to the same external table can be split between multiple QueryInfos.
bytes data = 3;- Returns:
- This builder for chaining.
-
getFormat
Format of the data to insert to the external table.
string format = 4;- Specified by:
getFormatin interfaceExternalTableOrBuilder- Returns:
- The format.
-
getFormatBytes
public com.google.protobuf.ByteString getFormatBytes()Format of the data to insert to the external table.
string format = 4;- Specified by:
getFormatBytesin interfaceExternalTableOrBuilder- Returns:
- The bytes for format.
-
setFormat
Format of the data to insert to the external table.
string format = 4;- Parameters:
value- The format to set.- Returns:
- This builder for chaining.
-
clearFormat
Format of the data to insert to the external table.
string format = 4;- Returns:
- This builder for chaining.
-
setFormatBytes
Format of the data to insert to the external table.
string format = 4;- Parameters:
value- The bytes for format to set.- Returns:
- This builder for chaining.
-
getCompressionType
Compression type used to compress `data`. Supported values: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2.
string compression_type = 6;- Specified by:
getCompressionTypein interfaceExternalTableOrBuilder- Returns:
- The compressionType.
-
getCompressionTypeBytes
public com.google.protobuf.ByteString getCompressionTypeBytes()Compression type used to compress `data`. Supported values: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2.
string compression_type = 6;- Specified by:
getCompressionTypeBytesin interfaceExternalTableOrBuilder- Returns:
- The bytes for compressionType.
-
setCompressionType
Compression type used to compress `data`. Supported values: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2.
string compression_type = 6;- Parameters:
value- The compressionType to set.- Returns:
- This builder for chaining.
-
clearCompressionType
Compression type used to compress `data`. Supported values: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2.
string compression_type = 6;- Returns:
- This builder for chaining.
-
setCompressionTypeBytes
Compression type used to compress `data`. Supported values: none, gzip(gz), deflate, brotli(br), lzma(xz), zstd(zst), lz4, bz2.
string compression_type = 6;- Parameters:
value- The bytes for compressionType to set.- Returns:
- This builder for chaining.
-
getSettingsCount
public int getSettingsCount()Description copied from interface:ExternalTableOrBuilderSettings for executing that insertion, applied after QueryInfo.settings.
map<string, string> settings = 5;- Specified by:
getSettingsCountin interfaceExternalTableOrBuilder
-
containsSettings
Settings for executing that insertion, applied after QueryInfo.settings.
map<string, string> settings = 5;- Specified by:
containsSettingsin interfaceExternalTableOrBuilder
-
getSettings
Deprecated.UsegetSettingsMap()instead.- Specified by:
getSettingsin interfaceExternalTableOrBuilder
-
getSettingsMap
Settings for executing that insertion, applied after QueryInfo.settings.
map<string, string> settings = 5;- Specified by:
getSettingsMapin interfaceExternalTableOrBuilder
-
getSettingsOrDefault
Settings for executing that insertion, applied after QueryInfo.settings.
map<string, string> settings = 5;- Specified by:
getSettingsOrDefaultin interfaceExternalTableOrBuilder
-
getSettingsOrThrow
Settings for executing that insertion, applied after QueryInfo.settings.
map<string, string> settings = 5;- Specified by:
getSettingsOrThrowin interfaceExternalTableOrBuilder
-
clearSettings
-
removeSettings
Settings for executing that insertion, applied after QueryInfo.settings.
map<string, string> settings = 5; -
getMutableSettings
Deprecated.Use alternate mutation accessors instead. -
putSettings
Settings for executing that insertion, applied after QueryInfo.settings.
map<string, string> settings = 5; -
putAllSettings
Settings for executing that insertion, applied after QueryInfo.settings.
map<string, string> settings = 5; -
setUnknownFields
public final ExternalTable.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExternalTable.Builder>
-
mergeUnknownFields
public final ExternalTable.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ExternalTable.Builder>
-