Package io.milvus.grpc
Class SearchAggregationSpec
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.milvus.grpc.SearchAggregationSpec
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SearchAggregationSpecOrBuilder,Serializable
public final class SearchAggregationSpec extends com.google.protobuf.GeneratedMessageV3 implements SearchAggregationSpecOrBuilder
Protobuf typemilvus.proto.common.SearchAggregationSpec- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchAggregationSpec.BuilderProtobuf typemilvus.proto.common.SearchAggregationSpec-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intFIELDS_FIELD_NUMBERstatic intMETRICS_FIELD_NUMBERstatic intORDER_FIELD_NUMBERstatic intSEARCH_SIZE_FIELD_NUMBERstatic intSIZE_FIELD_NUMBERstatic intSUB_AGGREGATION_FIELD_NUMBERstatic intTOP_HITS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsMetrics(String key)alias -> MetricAggSpecbooleanequals(Object obj)static SearchAggregationSpecgetDefaultInstance()SearchAggregationSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetFields(int index)field names, JSON path expression OKcom.google.protobuf.ByteStringgetFieldsBytes(int index)field names, JSON path expression OKintgetFieldsCount()field names, JSON path expression OKcom.google.protobuf.ProtocolStringListgetFieldsList()field names, JSON path expression OKMap<String,MetricAggSpec>getMetrics()Deprecated.intgetMetricsCount()alias -> MetricAggSpecMap<String,MetricAggSpec>getMetricsMap()alias -> MetricAggSpecMetricAggSpecgetMetricsOrDefault(String key, MetricAggSpec defaultValue)alias -> MetricAggSpecMetricAggSpecgetMetricsOrThrow(String key)alias -> MetricAggSpecOrderSpecgetOrder(int index)index 0 = highest priorityintgetOrderCount()index 0 = highest priorityList<OrderSpec>getOrderList()index 0 = highest priorityOrderSpecOrBuildergetOrderOrBuilder(int index)index 0 = highest priorityList<? extends OrderSpecOrBuilder>getOrderOrBuilderList()index 0 = highest prioritycom.google.protobuf.Parser<SearchAggregationSpec>getParserForType()longgetSearchSize()candidate buckets searched at this level; 0 means sizeintgetSerializedSize()longgetSize()max buckets returned at this levelSearchAggregationSpecgetSubAggregation()recursive nestingSearchAggregationSpecOrBuildergetSubAggregationOrBuilder()recursive nestingTopHitsSpecgetTopHits()nil = pure aggregation levelTopHitsSpecOrBuildergetTopHitsOrBuilder()nil = pure aggregation levelinthashCode()booleanhasSubAggregation()recursive nestingbooleanhasTopHits()nil = pure aggregation levelprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static SearchAggregationSpec.BuildernewBuilder()static SearchAggregationSpec.BuildernewBuilder(SearchAggregationSpec prototype)SearchAggregationSpec.BuildernewBuilderForType()protected SearchAggregationSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SearchAggregationSpecparseDelimitedFrom(InputStream input)static SearchAggregationSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SearchAggregationSpecparseFrom(byte[] data)static SearchAggregationSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SearchAggregationSpecparseFrom(com.google.protobuf.ByteString data)static SearchAggregationSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SearchAggregationSpecparseFrom(com.google.protobuf.CodedInputStream input)static SearchAggregationSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SearchAggregationSpecparseFrom(InputStream input)static SearchAggregationSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SearchAggregationSpecparseFrom(ByteBuffer data)static SearchAggregationSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<SearchAggregationSpec>parser()SearchAggregationSpec.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FIELDS_FIELD_NUMBER
public static final int FIELDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METRICS_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ORDER_FIELD_NUMBER
public static final int ORDER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOP_HITS_FIELD_NUMBER
public static final int TOP_HITS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUB_AGGREGATION_FIELD_NUMBER
public static final int SUB_AGGREGATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEARCH_SIZE_FIELD_NUMBER
public static final int SEARCH_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getFieldsList
public com.google.protobuf.ProtocolStringList getFieldsList()
field names, JSON path expression OK
repeated string fields = 1;- Specified by:
getFieldsListin interfaceSearchAggregationSpecOrBuilder- Returns:
- A list containing the fields.
-
getFieldsCount
public int getFieldsCount()
field names, JSON path expression OK
repeated string fields = 1;- Specified by:
getFieldsCountin interfaceSearchAggregationSpecOrBuilder- Returns:
- The count of fields.
-
getFields
public String getFields(int index)
field names, JSON path expression OK
repeated string fields = 1;- Specified by:
getFieldsin interfaceSearchAggregationSpecOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The fields at the given index.
-
getFieldsBytes
public com.google.protobuf.ByteString getFieldsBytes(int index)
field names, JSON path expression OK
repeated string fields = 1;- Specified by:
getFieldsBytesin interfaceSearchAggregationSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the fields at the given index.
-
getSize
public long getSize()
max buckets returned at this level
int64 size = 2;- Specified by:
getSizein interfaceSearchAggregationSpecOrBuilder- Returns:
- The size.
-
getMetricsCount
public int getMetricsCount()
Description copied from interface:SearchAggregationSpecOrBuilderalias -> MetricAggSpec
map<string, .milvus.proto.common.MetricAggSpec> metrics = 3;- Specified by:
getMetricsCountin interfaceSearchAggregationSpecOrBuilder
-
containsMetrics
public boolean containsMetrics(String key)
alias -> MetricAggSpec
map<string, .milvus.proto.common.MetricAggSpec> metrics = 3;- Specified by:
containsMetricsin interfaceSearchAggregationSpecOrBuilder
-
getMetrics
@Deprecated public Map<String,MetricAggSpec> getMetrics()
Deprecated.UsegetMetricsMap()instead.- Specified by:
getMetricsin interfaceSearchAggregationSpecOrBuilder
-
getMetricsMap
public Map<String,MetricAggSpec> getMetricsMap()
alias -> MetricAggSpec
map<string, .milvus.proto.common.MetricAggSpec> metrics = 3;- Specified by:
getMetricsMapin interfaceSearchAggregationSpecOrBuilder
-
getMetricsOrDefault
public MetricAggSpec getMetricsOrDefault(String key, MetricAggSpec defaultValue)
alias -> MetricAggSpec
map<string, .milvus.proto.common.MetricAggSpec> metrics = 3;- Specified by:
getMetricsOrDefaultin interfaceSearchAggregationSpecOrBuilder
-
getMetricsOrThrow
public MetricAggSpec getMetricsOrThrow(String key)
alias -> MetricAggSpec
map<string, .milvus.proto.common.MetricAggSpec> metrics = 3;- Specified by:
getMetricsOrThrowin interfaceSearchAggregationSpecOrBuilder
-
getOrderList
public List<OrderSpec> getOrderList()
index 0 = highest priority
repeated .milvus.proto.common.OrderSpec order = 4;- Specified by:
getOrderListin interfaceSearchAggregationSpecOrBuilder
-
getOrderOrBuilderList
public List<? extends OrderSpecOrBuilder> getOrderOrBuilderList()
index 0 = highest priority
repeated .milvus.proto.common.OrderSpec order = 4;- Specified by:
getOrderOrBuilderListin interfaceSearchAggregationSpecOrBuilder
-
getOrderCount
public int getOrderCount()
index 0 = highest priority
repeated .milvus.proto.common.OrderSpec order = 4;- Specified by:
getOrderCountin interfaceSearchAggregationSpecOrBuilder
-
getOrder
public OrderSpec getOrder(int index)
index 0 = highest priority
repeated .milvus.proto.common.OrderSpec order = 4;- Specified by:
getOrderin interfaceSearchAggregationSpecOrBuilder
-
getOrderOrBuilder
public OrderSpecOrBuilder getOrderOrBuilder(int index)
index 0 = highest priority
repeated .milvus.proto.common.OrderSpec order = 4;- Specified by:
getOrderOrBuilderin interfaceSearchAggregationSpecOrBuilder
-
hasTopHits
public boolean hasTopHits()
nil = pure aggregation level
.milvus.proto.common.TopHitsSpec top_hits = 5;- Specified by:
hasTopHitsin interfaceSearchAggregationSpecOrBuilder- Returns:
- Whether the topHits field is set.
-
getTopHits
public TopHitsSpec getTopHits()
nil = pure aggregation level
.milvus.proto.common.TopHitsSpec top_hits = 5;- Specified by:
getTopHitsin interfaceSearchAggregationSpecOrBuilder- Returns:
- The topHits.
-
getTopHitsOrBuilder
public TopHitsSpecOrBuilder getTopHitsOrBuilder()
nil = pure aggregation level
.milvus.proto.common.TopHitsSpec top_hits = 5;- Specified by:
getTopHitsOrBuilderin interfaceSearchAggregationSpecOrBuilder
-
hasSubAggregation
public boolean hasSubAggregation()
recursive nesting
.milvus.proto.common.SearchAggregationSpec sub_aggregation = 6;- Specified by:
hasSubAggregationin interfaceSearchAggregationSpecOrBuilder- Returns:
- Whether the subAggregation field is set.
-
getSubAggregation
public SearchAggregationSpec getSubAggregation()
recursive nesting
.milvus.proto.common.SearchAggregationSpec sub_aggregation = 6;- Specified by:
getSubAggregationin interfaceSearchAggregationSpecOrBuilder- Returns:
- The subAggregation.
-
getSubAggregationOrBuilder
public SearchAggregationSpecOrBuilder getSubAggregationOrBuilder()
recursive nesting
.milvus.proto.common.SearchAggregationSpec sub_aggregation = 6;- Specified by:
getSubAggregationOrBuilderin interfaceSearchAggregationSpecOrBuilder
-
getSearchSize
public long getSearchSize()
candidate buckets searched at this level; 0 means size
int64 search_size = 7;- Specified by:
getSearchSizein interfaceSearchAggregationSpecOrBuilder- Returns:
- The searchSize.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SearchAggregationSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchAggregationSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchAggregationSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchAggregationSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchAggregationSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchAggregationSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchAggregationSpec parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SearchAggregationSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SearchAggregationSpec parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SearchAggregationSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static SearchAggregationSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SearchAggregationSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public SearchAggregationSpec.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SearchAggregationSpec.Builder newBuilder()
-
newBuilder
public static SearchAggregationSpec.Builder newBuilder(SearchAggregationSpec prototype)
-
toBuilder
public SearchAggregationSpec.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SearchAggregationSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SearchAggregationSpec getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SearchAggregationSpec> parser()
-
getParserForType
public com.google.protobuf.Parser<SearchAggregationSpec> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SearchAggregationSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-