public enum Aggregation extends Enum<Aggregation> implements com.google.protobuf.ProtocolMessageEnum
confluent.protobuf.Aggregation
Enum Constant and Description |
---|
AGGREGATE_VALUES_PER_DISTINCT_KEY
This annotation should only be applied to `map` fields, where the
map's value type is aggregable (i.e.
|
DISTINCT_SET
This annotation should only be applied to `repeated` fields.
|
GROUP_BY
Records are only combined when all their GROUP_BY (or otherwise
un-annotated) fields have matching values.
|
OR
This annotation should only be applied to `bool` fields.
|
SAME_OR_OMIT
This annotation may be applied to any type of field.
|
SORT_MERGE_RANGES
This annotation should only be applied to `repeated Range` fields.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
AGGREGATE_VALUES_PER_DISTINCT_KEY_VALUE
This annotation should only be applied to `map` fields, where the
map's value type is aggregable (i.e.
|
static int |
DISTINCT_SET_VALUE
This annotation should only be applied to `repeated` fields.
|
static int |
GROUP_BY_VALUE
Records are only combined when all their GROUP_BY (or otherwise
un-annotated) fields have matching values.
|
static int |
OR_VALUE
This annotation should only be applied to `bool` fields.
|
static int |
SAME_OR_OMIT_VALUE
This annotation may be applied to any type of field.
|
static int |
SORT_MERGE_RANGES_VALUE
This annotation should only be applied to `repeated Range` fields.
|
Modifier and Type | Method and Description |
---|---|
static Aggregation |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Aggregation> |
internalGetValueMap() |
static Aggregation |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Aggregation |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Aggregation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Aggregation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Aggregation GROUP_BY
Records are only combined when all their GROUP_BY (or otherwise un-annotated) fields have matching values.
GROUP_BY = 0;
public static final Aggregation DISTINCT_SET
This annotation should only be applied to `repeated` fields. When combining records, combine descendant fields first according to their own annotations, and then compute the set of all distinct values for this field. We do not guarantee an order.
DISTINCT_SET = 1;
public static final Aggregation OR
This annotation should only be applied to `bool` fields. The field is `true` if and only if the field was `true` in any of the combined records.
OR = 2;
public static final Aggregation SORT_MERGE_RANGES
This annotation should only be applied to `repeated Range` fields. After aggregation, the field contains the result of merging all the constituent ranges, such that adjacent ranges are merged into one range, and the merged ranges are sorted in increasing order.
SORT_MERGE_RANGES = 3;
public static final Aggregation SAME_OR_OMIT
This annotation may be applied to any type of field. After aggregation, the field contains the same value as the constituent records if they all had the same value; otherwise, the field is empty.
SAME_OR_OMIT = 4;
public static final Aggregation AGGREGATE_VALUES_PER_DISTINCT_KEY
This annotation should only be applied to `map` fields, where the map's value type is aggregable (i.e. - all leaf fields of the value type must have a non-GROUP_BY aggregation annotation).
AGGREGATE_VALUES_PER_DISTINCT_KEY = 5;
public static final Aggregation UNRECOGNIZED
public static final int GROUP_BY_VALUE
Records are only combined when all their GROUP_BY (or otherwise un-annotated) fields have matching values.
GROUP_BY = 0;
public static final int DISTINCT_SET_VALUE
This annotation should only be applied to `repeated` fields. When combining records, combine descendant fields first according to their own annotations, and then compute the set of all distinct values for this field. We do not guarantee an order.
DISTINCT_SET = 1;
public static final int OR_VALUE
This annotation should only be applied to `bool` fields. The field is `true` if and only if the field was `true` in any of the combined records.
OR = 2;
public static final int SORT_MERGE_RANGES_VALUE
This annotation should only be applied to `repeated Range` fields. After aggregation, the field contains the result of merging all the constituent ranges, such that adjacent ranges are merged into one range, and the merged ranges are sorted in increasing order.
SORT_MERGE_RANGES = 3;
public static final int SAME_OR_OMIT_VALUE
This annotation may be applied to any type of field. After aggregation, the field contains the same value as the constituent records if they all had the same value; otherwise, the field is empty.
SAME_OR_OMIT = 4;
public static final int AGGREGATE_VALUES_PER_DISTINCT_KEY_VALUE
This annotation should only be applied to `map` fields, where the map's value type is aggregable (i.e. - all leaf fields of the value type must have a non-GROUP_BY aggregation annotation).
AGGREGATE_VALUES_PER_DISTINCT_KEY = 5;
public static Aggregation[] values()
for (Aggregation c : Aggregation.values()) System.out.println(c);
public static Aggregation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Aggregation valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Aggregation forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Aggregation> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Aggregation valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)