public static final class Mpp.MPPDataPacket.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder> implements Mpp.MPPDataPacketOrBuilder
when TiFlash sends data to TiDB, Data packets wrap tipb.SelectResponse, i.e., serialize tipb.SelectResponse into data; when TiFlash sends data to TiFlash, data blocks are serialized into chunks, and the execution_summaries in tipb.SelectResponse are serialized into data only for the last packet.Protobuf type
mpp.MPPDataPacket
Modifier and Type | Method and Description |
---|---|
Mpp.MPPDataPacket.Builder |
addAllChunks(Iterable<? extends com.google.protobuf.ByteString> values)
repeated bytes chunks = 3; |
Mpp.MPPDataPacket.Builder |
addChunks(com.google.protobuf.ByteString value)
repeated bytes chunks = 3; |
Mpp.MPPDataPacket.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Mpp.MPPDataPacket |
build() |
Mpp.MPPDataPacket |
buildPartial() |
Mpp.MPPDataPacket.Builder |
clear() |
Mpp.MPPDataPacket.Builder |
clearChunks()
repeated bytes chunks = 3; |
Mpp.MPPDataPacket.Builder |
clearData()
bytes data = 1; |
Mpp.MPPDataPacket.Builder |
clearError()
.mpp.Error error = 2; |
Mpp.MPPDataPacket.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Mpp.MPPDataPacket.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Mpp.MPPDataPacket.Builder |
clone() |
com.google.protobuf.ByteString |
getChunks(int index)
repeated bytes chunks = 3; |
int |
getChunksCount()
repeated bytes chunks = 3; |
List<com.google.protobuf.ByteString> |
getChunksList()
repeated bytes chunks = 3; |
com.google.protobuf.ByteString |
getData()
bytes data = 1; |
Mpp.MPPDataPacket |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Mpp.Error |
getError()
.mpp.Error error = 2; |
Mpp.Error.Builder |
getErrorBuilder()
.mpp.Error error = 2; |
Mpp.ErrorOrBuilder |
getErrorOrBuilder()
.mpp.Error error = 2; |
boolean |
hasError()
.mpp.Error error = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Mpp.MPPDataPacket.Builder |
mergeError(Mpp.Error value)
.mpp.Error error = 2; |
Mpp.MPPDataPacket.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Mpp.MPPDataPacket.Builder |
mergeFrom(com.google.protobuf.Message other) |
Mpp.MPPDataPacket.Builder |
mergeFrom(Mpp.MPPDataPacket other) |
Mpp.MPPDataPacket.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Mpp.MPPDataPacket.Builder |
setChunks(int index,
com.google.protobuf.ByteString value)
repeated bytes chunks = 3; |
Mpp.MPPDataPacket.Builder |
setData(com.google.protobuf.ByteString value)
bytes data = 1; |
Mpp.MPPDataPacket.Builder |
setError(Mpp.Error.Builder builderForValue)
.mpp.Error error = 2; |
Mpp.MPPDataPacket.Builder |
setError(Mpp.Error value)
.mpp.Error error = 2; |
Mpp.MPPDataPacket.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Mpp.MPPDataPacket.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Mpp.MPPDataPacket.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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder>
public Mpp.MPPDataPacket.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder>
public Mpp.MPPDataPacket getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Mpp.MPPDataPacket build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Mpp.MPPDataPacket buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Mpp.MPPDataPacket.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder>
public Mpp.MPPDataPacket.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder>
public Mpp.MPPDataPacket.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder>
public Mpp.MPPDataPacket.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder>
public Mpp.MPPDataPacket.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder>
public Mpp.MPPDataPacket.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder>
public Mpp.MPPDataPacket.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Mpp.MPPDataPacket.Builder>
public Mpp.MPPDataPacket.Builder mergeFrom(Mpp.MPPDataPacket other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder>
public Mpp.MPPDataPacket.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Mpp.MPPDataPacket.Builder>
IOException
public com.google.protobuf.ByteString getData()
bytes data = 1;
getData
in interface Mpp.MPPDataPacketOrBuilder
public Mpp.MPPDataPacket.Builder setData(com.google.protobuf.ByteString value)
bytes data = 1;
value
- The data to set.public Mpp.MPPDataPacket.Builder clearData()
bytes data = 1;
public boolean hasError()
.mpp.Error error = 2;
hasError
in interface Mpp.MPPDataPacketOrBuilder
public Mpp.Error getError()
.mpp.Error error = 2;
getError
in interface Mpp.MPPDataPacketOrBuilder
public Mpp.MPPDataPacket.Builder setError(Mpp.Error value)
.mpp.Error error = 2;
public Mpp.MPPDataPacket.Builder setError(Mpp.Error.Builder builderForValue)
.mpp.Error error = 2;
public Mpp.MPPDataPacket.Builder mergeError(Mpp.Error value)
.mpp.Error error = 2;
public Mpp.MPPDataPacket.Builder clearError()
.mpp.Error error = 2;
public Mpp.Error.Builder getErrorBuilder()
.mpp.Error error = 2;
public Mpp.ErrorOrBuilder getErrorOrBuilder()
.mpp.Error error = 2;
getErrorOrBuilder
in interface Mpp.MPPDataPacketOrBuilder
public List<com.google.protobuf.ByteString> getChunksList()
repeated bytes chunks = 3;
getChunksList
in interface Mpp.MPPDataPacketOrBuilder
public int getChunksCount()
repeated bytes chunks = 3;
getChunksCount
in interface Mpp.MPPDataPacketOrBuilder
public com.google.protobuf.ByteString getChunks(int index)
repeated bytes chunks = 3;
getChunks
in interface Mpp.MPPDataPacketOrBuilder
index
- The index of the element to return.public Mpp.MPPDataPacket.Builder setChunks(int index, com.google.protobuf.ByteString value)
repeated bytes chunks = 3;
index
- The index to set the value at.value
- The chunks to set.public Mpp.MPPDataPacket.Builder addChunks(com.google.protobuf.ByteString value)
repeated bytes chunks = 3;
value
- The chunks to add.public Mpp.MPPDataPacket.Builder addAllChunks(Iterable<? extends com.google.protobuf.ByteString> values)
repeated bytes chunks = 3;
values
- The chunks to add.public Mpp.MPPDataPacket.Builder clearChunks()
repeated bytes chunks = 3;
public final Mpp.MPPDataPacket.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder>
public final Mpp.MPPDataPacket.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Mpp.MPPDataPacket.Builder>
Copyright © 2024 PingCAP. All rights reserved.