publicstaticfinalclass AggregationQuery.AggregationextendsGeneratedMessageV3implementsAggregationQuery.AggregationOrBuilder
Defines an aggregation that produces a single result.
Protobuf type google.datastore.v1.AggregationQuery.Aggregation
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ALIAS_FIELD_NUMBER
publicstaticfinalintALIAS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
AVG_FIELD_NUMBER
publicstaticfinalintAVG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
COUNT_FIELD_NUMBER
publicstaticfinalintCOUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SUM_FIELD_NUMBER
publicstaticfinalintSUM_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticAggregationQuery.AggregationgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticAggregationQuery.Aggregation.BuildernewBuilder()
newBuilder(AggregationQuery.Aggregation prototype)
publicstaticAggregationQuery.Aggregation.BuildernewBuilder(AggregationQuery.Aggregationprototype)
publicstaticAggregationQuery.AggregationparseDelimitedFrom(InputStreaminput)
publicstaticAggregationQuery.AggregationparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticAggregationQuery.AggregationparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticAggregationQuery.AggregationparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticAggregationQuery.AggregationparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticAggregationQuery.AggregationparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticAggregationQuery.AggregationparseFrom(CodedInputStreaminput)
publicstaticAggregationQuery.AggregationparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticAggregationQuery.AggregationparseFrom(InputStreaminput)
publicstaticAggregationQuery.AggregationparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticAggregationQuery.AggregationparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticAggregationQuery.AggregationparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<AggregationQuery.Aggregation>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAlias()
Optional. Optional name of the property to store the result of the
aggregation.
If not provided, Datastore will pick a default name following the format
property_<incremental_id++>. For example:
`
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2),
COUNT_UP_TO(3) AS count_up_to_3,
COUNT(*)
OVER (
...
);
becomes:
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2) AS property_1,
COUNT_UP_TO(3) AS count_up_to_3,
COUNT(*) AS property_2
OVER (
...
);
`
Requires:
- Must be unique across all aggregation aliases.
- Conform to entity property
name limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The alias.
|
getAliasBytes()
publicByteStringgetAliasBytes()
Optional. Optional name of the property to store the result of the
aggregation.
If not provided, Datastore will pick a default name following the format
property_<incremental_id++>. For example:
`
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2),
COUNT_UP_TO(3) AS count_up_to_3,
COUNT(*)
OVER (
...
);
becomes:
AGGREGATE
COUNT_UP_TO(1) AS count_up_to_1,
COUNT_UP_TO(2) AS property_1,
COUNT_UP_TO(3) AS count_up_to_3,
COUNT(*) AS property_2
OVER (
...
);
`
Requires:
- Must be unique across all aggregation aliases.
- Conform to entity property
name limitations.
string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for alias.
|
getAvg()
publicAggregationQuery.Aggregation.AvggetAvg()
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
getAvgOrBuilder()
publicAggregationQuery.Aggregation.AvgOrBuildergetAvgOrBuilder()
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
getCount()
publicAggregationQuery.Aggregation.CountgetCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
getCountOrBuilder()
publicAggregationQuery.Aggregation.CountOrBuildergetCountOrBuilder()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
getDefaultInstanceForType()
publicAggregationQuery.AggregationgetDefaultInstanceForType()
getOperatorCase()
publicAggregationQuery.Aggregation.OperatorCasegetOperatorCase()
getParserForType()
publicParser<AggregationQuery.Aggregation>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getSum()
publicAggregationQuery.Aggregation.SumgetSum()
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
getSumOrBuilder()
publicAggregationQuery.Aggregation.SumOrBuildergetSumOrBuilder()
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
hasAvg()
Average aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3;
| Returns |
| Type |
Description |
boolean |
Whether the avg field is set.
|
hasCount()
Count aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Count count = 1;
| Returns |
| Type |
Description |
boolean |
Whether the count field is set.
|
hasSum()
Sum aggregator.
.google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2;
| Returns |
| Type |
Description |
boolean |
Whether the sum field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicAggregationQuery.Aggregation.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedAggregationQuery.Aggregation.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicAggregationQuery.Aggregation.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides