public static final class Tablet.SQLBatchRequestQueryRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder> implements Tablet.SQLBatchRequestQueryRequestOrBuilder
Batch request rows encoding:
(1) Multiple rows are stored in attachment consecutively and use `row_sizes`
to find each row's start offset in attachment buffer. Multiple slices in
row are stored consecutively also, with slice size encoded just in slice data.
(2) If non-trival common columns exist
- `row_sizes` store N+1 integers, the first is the total size of common row part,
the next N is total size of each non-common row part from batch.
- `common_slices` represent common row's slices num.
- `non_common_slices` represent non-common row's slices num.
- the actual ith row is concat of common row part and ith non-common row part.
(3) else
- `row_sizes` store N integers, each record total size (sum of slice sizes) of
one row from batch.
- `common_slices` = 0
- `non_common_slices` represent slices num of each row.
Protobuf type openmldb.api.SQLBatchRequestQueryRequest| Modifier and Type | Method and Description |
|---|---|
Tablet.SQLBatchRequestQueryRequest.Builder |
addAllCommonColumnIndices(Iterable<? extends Integer> values)
repeated uint32 common_column_indices = 3; |
Tablet.SQLBatchRequestQueryRequest.Builder |
addAllRowSizes(Iterable<? extends Integer> values)
repeated uint32 row_sizes = 7; |
Tablet.SQLBatchRequestQueryRequest.Builder |
addCommonColumnIndices(int value)
repeated uint32 common_column_indices = 3; |
Tablet.SQLBatchRequestQueryRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Tablet.SQLBatchRequestQueryRequest.Builder |
addRowSizes(int value)
repeated uint32 row_sizes = 7; |
Tablet.SQLBatchRequestQueryRequest |
build() |
Tablet.SQLBatchRequestQueryRequest |
buildPartial() |
Tablet.SQLBatchRequestQueryRequest.Builder |
clear() |
Tablet.SQLBatchRequestQueryRequest.Builder |
clearCommonColumnIndices()
repeated uint32 common_column_indices = 3; |
Tablet.SQLBatchRequestQueryRequest.Builder |
clearCommonSlices()
optional uint32 common_slices = 8; |
Tablet.SQLBatchRequestQueryRequest.Builder |
clearDb()
optional string db = 2; |
Tablet.SQLBatchRequestQueryRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Tablet.SQLBatchRequestQueryRequest.Builder |
clearIsDebug()
optional bool is_debug = 4 [default = false]; |
Tablet.SQLBatchRequestQueryRequest.Builder |
clearIsProcedure()
optional bool is_procedure = 6 [default = false]; |
Tablet.SQLBatchRequestQueryRequest.Builder |
clearNonCommonSlices()
optional uint32 non_common_slices = 9; |
Tablet.SQLBatchRequestQueryRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Tablet.SQLBatchRequestQueryRequest.Builder |
clearRowSizes()
repeated uint32 row_sizes = 7; |
Tablet.SQLBatchRequestQueryRequest.Builder |
clearSpName()
optional string sp_name = 5; |
Tablet.SQLBatchRequestQueryRequest.Builder |
clearSql()
optional string sql = 1; |
Tablet.SQLBatchRequestQueryRequest.Builder |
clearTaskId()
optional uint64 task_id = 10; |
Tablet.SQLBatchRequestQueryRequest.Builder |
clone() |
int |
getCommonColumnIndices(int index)
repeated uint32 common_column_indices = 3; |
int |
getCommonColumnIndicesCount()
repeated uint32 common_column_indices = 3; |
List<Integer> |
getCommonColumnIndicesList()
repeated uint32 common_column_indices = 3; |
int |
getCommonSlices()
optional uint32 common_slices = 8; |
String |
getDb()
optional string db = 2; |
com.google.protobuf.ByteString |
getDbBytes()
optional string db = 2; |
Tablet.SQLBatchRequestQueryRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getIsDebug()
optional bool is_debug = 4 [default = false]; |
boolean |
getIsProcedure()
optional bool is_procedure = 6 [default = false]; |
int |
getNonCommonSlices()
optional uint32 non_common_slices = 9; |
int |
getRowSizes(int index)
repeated uint32 row_sizes = 7; |
int |
getRowSizesCount()
repeated uint32 row_sizes = 7; |
List<Integer> |
getRowSizesList()
repeated uint32 row_sizes = 7; |
String |
getSpName()
optional string sp_name = 5; |
com.google.protobuf.ByteString |
getSpNameBytes()
optional string sp_name = 5; |
String |
getSql()
optional string sql = 1; |
com.google.protobuf.ByteString |
getSqlBytes()
optional string sql = 1; |
long |
getTaskId()
optional uint64 task_id = 10; |
boolean |
hasCommonSlices()
optional uint32 common_slices = 8; |
boolean |
hasDb()
optional string db = 2; |
boolean |
hasIsDebug()
optional bool is_debug = 4 [default = false]; |
boolean |
hasIsProcedure()
optional bool is_procedure = 6 [default = false]; |
boolean |
hasNonCommonSlices()
optional uint32 non_common_slices = 9; |
boolean |
hasSpName()
optional string sp_name = 5; |
boolean |
hasSql()
optional string sql = 1; |
boolean |
hasTaskId()
optional uint64 task_id = 10; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Tablet.SQLBatchRequestQueryRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Tablet.SQLBatchRequestQueryRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
Tablet.SQLBatchRequestQueryRequest.Builder |
mergeFrom(Tablet.SQLBatchRequestQueryRequest other) |
Tablet.SQLBatchRequestQueryRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Tablet.SQLBatchRequestQueryRequest.Builder |
setCommonColumnIndices(int index,
int value)
repeated uint32 common_column_indices = 3; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setCommonSlices(int value)
optional uint32 common_slices = 8; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setDb(String value)
optional string db = 2; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setDbBytes(com.google.protobuf.ByteString value)
optional string db = 2; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Tablet.SQLBatchRequestQueryRequest.Builder |
setIsDebug(boolean value)
optional bool is_debug = 4 [default = false]; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setIsProcedure(boolean value)
optional bool is_procedure = 6 [default = false]; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setNonCommonSlices(int value)
optional uint32 non_common_slices = 9; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Tablet.SQLBatchRequestQueryRequest.Builder |
setRowSizes(int index,
int value)
repeated uint32 row_sizes = 7; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setSpName(String value)
optional string sp_name = 5; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setSpNameBytes(com.google.protobuf.ByteString value)
optional string sp_name = 5; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setSql(String value)
optional string sql = 1; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setSqlBytes(com.google.protobuf.ByteString value)
optional string sql = 1; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setTaskId(long value)
optional uint64 task_id = 10; |
Tablet.SQLBatchRequestQueryRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>public Tablet.SQLBatchRequestQueryRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>public Tablet.SQLBatchRequestQueryRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Tablet.SQLBatchRequestQueryRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Tablet.SQLBatchRequestQueryRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Tablet.SQLBatchRequestQueryRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>public Tablet.SQLBatchRequestQueryRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>public Tablet.SQLBatchRequestQueryRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>public Tablet.SQLBatchRequestQueryRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>public Tablet.SQLBatchRequestQueryRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>public Tablet.SQLBatchRequestQueryRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>public Tablet.SQLBatchRequestQueryRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>public Tablet.SQLBatchRequestQueryRequest.Builder mergeFrom(Tablet.SQLBatchRequestQueryRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>public Tablet.SQLBatchRequestQueryRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>IOExceptionpublic boolean hasSql()
optional string sql = 1;hasSql in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic String getSql()
optional string sql = 1;getSql in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic com.google.protobuf.ByteString getSqlBytes()
optional string sql = 1;getSqlBytes in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic Tablet.SQLBatchRequestQueryRequest.Builder setSql(String value)
optional string sql = 1;public Tablet.SQLBatchRequestQueryRequest.Builder clearSql()
optional string sql = 1;public Tablet.SQLBatchRequestQueryRequest.Builder setSqlBytes(com.google.protobuf.ByteString value)
optional string sql = 1;public boolean hasDb()
optional string db = 2;hasDb in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic String getDb()
optional string db = 2;getDb in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic com.google.protobuf.ByteString getDbBytes()
optional string db = 2;getDbBytes in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic Tablet.SQLBatchRequestQueryRequest.Builder setDb(String value)
optional string db = 2;public Tablet.SQLBatchRequestQueryRequest.Builder clearDb()
optional string db = 2;public Tablet.SQLBatchRequestQueryRequest.Builder setDbBytes(com.google.protobuf.ByteString value)
optional string db = 2;public List<Integer> getCommonColumnIndicesList()
repeated uint32 common_column_indices = 3;getCommonColumnIndicesList in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic int getCommonColumnIndicesCount()
repeated uint32 common_column_indices = 3;getCommonColumnIndicesCount in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic int getCommonColumnIndices(int index)
repeated uint32 common_column_indices = 3;getCommonColumnIndices in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic Tablet.SQLBatchRequestQueryRequest.Builder setCommonColumnIndices(int index, int value)
repeated uint32 common_column_indices = 3;public Tablet.SQLBatchRequestQueryRequest.Builder addCommonColumnIndices(int value)
repeated uint32 common_column_indices = 3;public Tablet.SQLBatchRequestQueryRequest.Builder addAllCommonColumnIndices(Iterable<? extends Integer> values)
repeated uint32 common_column_indices = 3;public Tablet.SQLBatchRequestQueryRequest.Builder clearCommonColumnIndices()
repeated uint32 common_column_indices = 3;public boolean hasIsDebug()
optional bool is_debug = 4 [default = false];hasIsDebug in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic boolean getIsDebug()
optional bool is_debug = 4 [default = false];getIsDebug in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic Tablet.SQLBatchRequestQueryRequest.Builder setIsDebug(boolean value)
optional bool is_debug = 4 [default = false];public Tablet.SQLBatchRequestQueryRequest.Builder clearIsDebug()
optional bool is_debug = 4 [default = false];public boolean hasSpName()
optional string sp_name = 5;hasSpName in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic String getSpName()
optional string sp_name = 5;getSpName in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic com.google.protobuf.ByteString getSpNameBytes()
optional string sp_name = 5;getSpNameBytes in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic Tablet.SQLBatchRequestQueryRequest.Builder setSpName(String value)
optional string sp_name = 5;public Tablet.SQLBatchRequestQueryRequest.Builder clearSpName()
optional string sp_name = 5;public Tablet.SQLBatchRequestQueryRequest.Builder setSpNameBytes(com.google.protobuf.ByteString value)
optional string sp_name = 5;public boolean hasIsProcedure()
optional bool is_procedure = 6 [default = false];hasIsProcedure in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic boolean getIsProcedure()
optional bool is_procedure = 6 [default = false];getIsProcedure in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic Tablet.SQLBatchRequestQueryRequest.Builder setIsProcedure(boolean value)
optional bool is_procedure = 6 [default = false];public Tablet.SQLBatchRequestQueryRequest.Builder clearIsProcedure()
optional bool is_procedure = 6 [default = false];public List<Integer> getRowSizesList()
repeated uint32 row_sizes = 7;getRowSizesList in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic int getRowSizesCount()
repeated uint32 row_sizes = 7;getRowSizesCount in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic int getRowSizes(int index)
repeated uint32 row_sizes = 7;getRowSizes in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic Tablet.SQLBatchRequestQueryRequest.Builder setRowSizes(int index, int value)
repeated uint32 row_sizes = 7;public Tablet.SQLBatchRequestQueryRequest.Builder addRowSizes(int value)
repeated uint32 row_sizes = 7;public Tablet.SQLBatchRequestQueryRequest.Builder addAllRowSizes(Iterable<? extends Integer> values)
repeated uint32 row_sizes = 7;public Tablet.SQLBatchRequestQueryRequest.Builder clearRowSizes()
repeated uint32 row_sizes = 7;public boolean hasCommonSlices()
optional uint32 common_slices = 8;hasCommonSlices in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic int getCommonSlices()
optional uint32 common_slices = 8;getCommonSlices in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic Tablet.SQLBatchRequestQueryRequest.Builder setCommonSlices(int value)
optional uint32 common_slices = 8;public Tablet.SQLBatchRequestQueryRequest.Builder clearCommonSlices()
optional uint32 common_slices = 8;public boolean hasNonCommonSlices()
optional uint32 non_common_slices = 9;hasNonCommonSlices in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic int getNonCommonSlices()
optional uint32 non_common_slices = 9;getNonCommonSlices in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic Tablet.SQLBatchRequestQueryRequest.Builder setNonCommonSlices(int value)
optional uint32 non_common_slices = 9;public Tablet.SQLBatchRequestQueryRequest.Builder clearNonCommonSlices()
optional uint32 non_common_slices = 9;public boolean hasTaskId()
optional uint64 task_id = 10;hasTaskId in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic long getTaskId()
optional uint64 task_id = 10;getTaskId in interface Tablet.SQLBatchRequestQueryRequestOrBuilderpublic Tablet.SQLBatchRequestQueryRequest.Builder setTaskId(long value)
optional uint64 task_id = 10;public Tablet.SQLBatchRequestQueryRequest.Builder clearTaskId()
optional uint64 task_id = 10;public final Tablet.SQLBatchRequestQueryRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>public final Tablet.SQLBatchRequestQueryRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Tablet.SQLBatchRequestQueryRequest.Builder>Copyright © 2023. All rights reserved.