public static final class SampleCollector.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SampleCollector.Builder> implements SampleCollectorOrBuilder
SampleCollector is used for collect samples and calculate the count and ndv of an column.Protobuf type
tipb.SampleCollector
Modifier and Type | Method and Description |
---|---|
SampleCollector.Builder |
addAllSamples(Iterable<? extends com.google.protobuf.ByteString> values)
repeated bytes samples = 1; |
SampleCollector.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SampleCollector.Builder |
addSamples(com.google.protobuf.ByteString value)
repeated bytes samples = 1; |
SampleCollector |
build() |
SampleCollector |
buildPartial() |
SampleCollector.Builder |
clear() |
SampleCollector.Builder |
clearCmSketch()
optional .tipb.CMSketch cm_sketch = 5; |
SampleCollector.Builder |
clearCount()
optional int64 count = 3 [(.gogoproto.nullable) = false]; |
SampleCollector.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SampleCollector.Builder |
clearFmSketch()
optional .tipb.FMSketch fm_sketch = 4; |
SampleCollector.Builder |
clearNullCount()
optional int64 null_count = 2 [(.gogoproto.nullable) = false]; |
SampleCollector.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SampleCollector.Builder |
clearSamples()
repeated bytes samples = 1; |
SampleCollector.Builder |
clearTotalSize()
optional int64 total_size = 6; |
SampleCollector.Builder |
clone() |
CMSketch |
getCmSketch()
optional .tipb.CMSketch cm_sketch = 5; |
CMSketch.Builder |
getCmSketchBuilder()
optional .tipb.CMSketch cm_sketch = 5; |
CMSketchOrBuilder |
getCmSketchOrBuilder()
optional .tipb.CMSketch cm_sketch = 5; |
long |
getCount()
optional int64 count = 3 [(.gogoproto.nullable) = false]; |
SampleCollector |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
FMSketch |
getFmSketch()
optional .tipb.FMSketch fm_sketch = 4; |
FMSketch.Builder |
getFmSketchBuilder()
optional .tipb.FMSketch fm_sketch = 4; |
FMSketchOrBuilder |
getFmSketchOrBuilder()
optional .tipb.FMSketch fm_sketch = 4; |
long |
getNullCount()
optional int64 null_count = 2 [(.gogoproto.nullable) = false]; |
com.google.protobuf.ByteString |
getSamples(int index)
repeated bytes samples = 1; |
int |
getSamplesCount()
repeated bytes samples = 1; |
List<com.google.protobuf.ByteString> |
getSamplesList()
repeated bytes samples = 1; |
long |
getTotalSize()
optional int64 total_size = 6; |
boolean |
hasCmSketch()
optional .tipb.CMSketch cm_sketch = 5; |
boolean |
hasCount()
optional int64 count = 3 [(.gogoproto.nullable) = false]; |
boolean |
hasFmSketch()
optional .tipb.FMSketch fm_sketch = 4; |
boolean |
hasNullCount()
optional int64 null_count = 2 [(.gogoproto.nullable) = false]; |
boolean |
hasTotalSize()
optional int64 total_size = 6; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SampleCollector.Builder |
mergeCmSketch(CMSketch value)
optional .tipb.CMSketch cm_sketch = 5; |
SampleCollector.Builder |
mergeFmSketch(FMSketch value)
optional .tipb.FMSketch fm_sketch = 4; |
SampleCollector.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SampleCollector.Builder |
mergeFrom(com.google.protobuf.Message other) |
SampleCollector.Builder |
mergeFrom(SampleCollector other) |
SampleCollector.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SampleCollector.Builder |
setCmSketch(CMSketch.Builder builderForValue)
optional .tipb.CMSketch cm_sketch = 5; |
SampleCollector.Builder |
setCmSketch(CMSketch value)
optional .tipb.CMSketch cm_sketch = 5; |
SampleCollector.Builder |
setCount(long value)
optional int64 count = 3 [(.gogoproto.nullable) = false]; |
SampleCollector.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SampleCollector.Builder |
setFmSketch(FMSketch.Builder builderForValue)
optional .tipb.FMSketch fm_sketch = 4; |
SampleCollector.Builder |
setFmSketch(FMSketch value)
optional .tipb.FMSketch fm_sketch = 4; |
SampleCollector.Builder |
setNullCount(long value)
optional int64 null_count = 2 [(.gogoproto.nullable) = false]; |
SampleCollector.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SampleCollector.Builder |
setSamples(int index,
com.google.protobuf.ByteString value)
repeated bytes samples = 1; |
SampleCollector.Builder |
setTotalSize(long value)
optional int64 total_size = 6; |
SampleCollector.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<SampleCollector.Builder>
public SampleCollector.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<SampleCollector.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<SampleCollector.Builder>
public SampleCollector getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public SampleCollector build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public SampleCollector buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public SampleCollector.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<SampleCollector.Builder>
public SampleCollector.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<SampleCollector.Builder>
public SampleCollector.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<SampleCollector.Builder>
public SampleCollector.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<SampleCollector.Builder>
public SampleCollector.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<SampleCollector.Builder>
public SampleCollector.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<SampleCollector.Builder>
public SampleCollector.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<SampleCollector.Builder>
public SampleCollector.Builder mergeFrom(SampleCollector other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<SampleCollector.Builder>
public SampleCollector.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<SampleCollector.Builder>
IOException
public List<com.google.protobuf.ByteString> getSamplesList()
repeated bytes samples = 1;
getSamplesList
in interface SampleCollectorOrBuilder
public int getSamplesCount()
repeated bytes samples = 1;
getSamplesCount
in interface SampleCollectorOrBuilder
public com.google.protobuf.ByteString getSamples(int index)
repeated bytes samples = 1;
getSamples
in interface SampleCollectorOrBuilder
index
- The index of the element to return.public SampleCollector.Builder setSamples(int index, com.google.protobuf.ByteString value)
repeated bytes samples = 1;
index
- The index to set the value at.value
- The samples to set.public SampleCollector.Builder addSamples(com.google.protobuf.ByteString value)
repeated bytes samples = 1;
value
- The samples to add.public SampleCollector.Builder addAllSamples(Iterable<? extends com.google.protobuf.ByteString> values)
repeated bytes samples = 1;
values
- The samples to add.public SampleCollector.Builder clearSamples()
repeated bytes samples = 1;
public boolean hasNullCount()
optional int64 null_count = 2 [(.gogoproto.nullable) = false];
hasNullCount
in interface SampleCollectorOrBuilder
public long getNullCount()
optional int64 null_count = 2 [(.gogoproto.nullable) = false];
getNullCount
in interface SampleCollectorOrBuilder
public SampleCollector.Builder setNullCount(long value)
optional int64 null_count = 2 [(.gogoproto.nullable) = false];
value
- The nullCount to set.public SampleCollector.Builder clearNullCount()
optional int64 null_count = 2 [(.gogoproto.nullable) = false];
public boolean hasCount()
optional int64 count = 3 [(.gogoproto.nullable) = false];
hasCount
in interface SampleCollectorOrBuilder
public long getCount()
optional int64 count = 3 [(.gogoproto.nullable) = false];
getCount
in interface SampleCollectorOrBuilder
public SampleCollector.Builder setCount(long value)
optional int64 count = 3 [(.gogoproto.nullable) = false];
value
- The count to set.public SampleCollector.Builder clearCount()
optional int64 count = 3 [(.gogoproto.nullable) = false];
public boolean hasFmSketch()
optional .tipb.FMSketch fm_sketch = 4;
hasFmSketch
in interface SampleCollectorOrBuilder
public FMSketch getFmSketch()
optional .tipb.FMSketch fm_sketch = 4;
getFmSketch
in interface SampleCollectorOrBuilder
public SampleCollector.Builder setFmSketch(FMSketch value)
optional .tipb.FMSketch fm_sketch = 4;
public SampleCollector.Builder setFmSketch(FMSketch.Builder builderForValue)
optional .tipb.FMSketch fm_sketch = 4;
public SampleCollector.Builder mergeFmSketch(FMSketch value)
optional .tipb.FMSketch fm_sketch = 4;
public SampleCollector.Builder clearFmSketch()
optional .tipb.FMSketch fm_sketch = 4;
public FMSketch.Builder getFmSketchBuilder()
optional .tipb.FMSketch fm_sketch = 4;
public FMSketchOrBuilder getFmSketchOrBuilder()
optional .tipb.FMSketch fm_sketch = 4;
getFmSketchOrBuilder
in interface SampleCollectorOrBuilder
public boolean hasCmSketch()
optional .tipb.CMSketch cm_sketch = 5;
hasCmSketch
in interface SampleCollectorOrBuilder
public CMSketch getCmSketch()
optional .tipb.CMSketch cm_sketch = 5;
getCmSketch
in interface SampleCollectorOrBuilder
public SampleCollector.Builder setCmSketch(CMSketch value)
optional .tipb.CMSketch cm_sketch = 5;
public SampleCollector.Builder setCmSketch(CMSketch.Builder builderForValue)
optional .tipb.CMSketch cm_sketch = 5;
public SampleCollector.Builder mergeCmSketch(CMSketch value)
optional .tipb.CMSketch cm_sketch = 5;
public SampleCollector.Builder clearCmSketch()
optional .tipb.CMSketch cm_sketch = 5;
public CMSketch.Builder getCmSketchBuilder()
optional .tipb.CMSketch cm_sketch = 5;
public CMSketchOrBuilder getCmSketchOrBuilder()
optional .tipb.CMSketch cm_sketch = 5;
getCmSketchOrBuilder
in interface SampleCollectorOrBuilder
public boolean hasTotalSize()
optional int64 total_size = 6;
hasTotalSize
in interface SampleCollectorOrBuilder
public long getTotalSize()
optional int64 total_size = 6;
getTotalSize
in interface SampleCollectorOrBuilder
public SampleCollector.Builder setTotalSize(long value)
optional int64 total_size = 6;
value
- The totalSize to set.public SampleCollector.Builder clearTotalSize()
optional int64 total_size = 6;
public final SampleCollector.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<SampleCollector.Builder>
public final SampleCollector.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<SampleCollector.Builder>
Copyright © 2024 PingCAP. All rights reserved.