public static final class BeamFnApi.Metrics.PTransform extends com.google.protobuf.GeneratedMessageV3 implements BeamFnApi.Metrics.PTransformOrBuilder
PTransform level metrics. These metrics are split into processed and active element groups for progress reporting purposes. This allows a Runner to see what is measured, what is estimated and what can be extrapolated to be able to accurately estimate the backlog of remaining work.Protobuf type
org.apache.beam.fn.v1.Metrics.PTransform| Modifier and Type | Class and Description |
|---|---|
static class |
BeamFnApi.Metrics.PTransform.ActiveElements
Metrics for active elements.
|
static interface |
BeamFnApi.Metrics.PTransform.ActiveElementsOrBuilder |
static class |
BeamFnApi.Metrics.PTransform.Builder
PTransform level metrics.
|
static class |
BeamFnApi.Metrics.PTransform.Measured
Metrics that are measured for processed and active element groups.
|
static interface |
BeamFnApi.Metrics.PTransform.MeasuredOrBuilder |
static class |
BeamFnApi.Metrics.PTransform.ProcessedElements
Metrics for fully processed elements.
|
static interface |
BeamFnApi.Metrics.PTransform.ProcessedElementsOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE_ELEMENTS_FIELD_NUMBER |
static int |
PROCESSED_ELEMENTS_FIELD_NUMBER |
static int |
WATERMARKS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsWatermarks(String key)
(Optional): Map from local output name to its watermark.
|
boolean |
equals(Object obj) |
BeamFnApi.Metrics.PTransform.ActiveElements |
getActiveElements()
(Required): Metrics for active elements.
|
BeamFnApi.Metrics.PTransform.ActiveElementsOrBuilder |
getActiveElementsOrBuilder()
(Required): Metrics for active elements.
|
static BeamFnApi.Metrics.PTransform |
getDefaultInstance() |
BeamFnApi.Metrics.PTransform |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<BeamFnApi.Metrics.PTransform> |
getParserForType() |
BeamFnApi.Metrics.PTransform.ProcessedElements |
getProcessedElements()
(Required): Metrics for processed elements.
|
BeamFnApi.Metrics.PTransform.ProcessedElementsOrBuilder |
getProcessedElementsOrBuilder()
(Required): Metrics for processed elements.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Map<String,Long> |
getWatermarks()
Deprecated.
|
int |
getWatermarksCount()
(Optional): Map from local output name to its watermark.
|
Map<String,Long> |
getWatermarksMap()
(Optional): Map from local output name to its watermark.
|
long |
getWatermarksOrDefault(String key,
long defaultValue)
(Optional): Map from local output name to its watermark.
|
long |
getWatermarksOrThrow(String key)
(Optional): Map from local output name to its watermark.
|
boolean |
hasActiveElements()
(Required): Metrics for active elements.
|
int |
hashCode() |
boolean |
hasProcessedElements()
(Required): Metrics for processed elements.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static BeamFnApi.Metrics.PTransform.Builder |
newBuilder() |
static BeamFnApi.Metrics.PTransform.Builder |
newBuilder(BeamFnApi.Metrics.PTransform prototype) |
BeamFnApi.Metrics.PTransform.Builder |
newBuilderForType() |
protected BeamFnApi.Metrics.PTransform.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static BeamFnApi.Metrics.PTransform |
parseDelimitedFrom(InputStream input) |
static BeamFnApi.Metrics.PTransform |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BeamFnApi.Metrics.PTransform |
parseFrom(byte[] data) |
static BeamFnApi.Metrics.PTransform |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BeamFnApi.Metrics.PTransform |
parseFrom(com.google.protobuf.ByteString data) |
static BeamFnApi.Metrics.PTransform |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BeamFnApi.Metrics.PTransform |
parseFrom(com.google.protobuf.CodedInputStream input) |
static BeamFnApi.Metrics.PTransform |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BeamFnApi.Metrics.PTransform |
parseFrom(InputStream input) |
static BeamFnApi.Metrics.PTransform |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<BeamFnApi.Metrics.PTransform> |
parser() |
BeamFnApi.Metrics.PTransform.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PROCESSED_ELEMENTS_FIELD_NUMBER
public static final int ACTIVE_ELEMENTS_FIELD_NUMBER
public static final int WATERMARKS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasProcessedElements()
(Required): Metrics for processed elements.
.org.apache.beam.fn.v1.Metrics.PTransform.ProcessedElements processed_elements = 1;hasProcessedElements in interface BeamFnApi.Metrics.PTransformOrBuilderpublic BeamFnApi.Metrics.PTransform.ProcessedElements getProcessedElements()
(Required): Metrics for processed elements.
.org.apache.beam.fn.v1.Metrics.PTransform.ProcessedElements processed_elements = 1;getProcessedElements in interface BeamFnApi.Metrics.PTransformOrBuilderpublic BeamFnApi.Metrics.PTransform.ProcessedElementsOrBuilder getProcessedElementsOrBuilder()
(Required): Metrics for processed elements.
.org.apache.beam.fn.v1.Metrics.PTransform.ProcessedElements processed_elements = 1;getProcessedElementsOrBuilder in interface BeamFnApi.Metrics.PTransformOrBuilderpublic boolean hasActiveElements()
(Required): Metrics for active elements.
.org.apache.beam.fn.v1.Metrics.PTransform.ActiveElements active_elements = 2;hasActiveElements in interface BeamFnApi.Metrics.PTransformOrBuilderpublic BeamFnApi.Metrics.PTransform.ActiveElements getActiveElements()
(Required): Metrics for active elements.
.org.apache.beam.fn.v1.Metrics.PTransform.ActiveElements active_elements = 2;getActiveElements in interface BeamFnApi.Metrics.PTransformOrBuilderpublic BeamFnApi.Metrics.PTransform.ActiveElementsOrBuilder getActiveElementsOrBuilder()
(Required): Metrics for active elements.
.org.apache.beam.fn.v1.Metrics.PTransform.ActiveElements active_elements = 2;getActiveElementsOrBuilder in interface BeamFnApi.Metrics.PTransformOrBuilderpublic int getWatermarksCount()
BeamFnApi.Metrics.PTransformOrBuilder(Optional): Map from local output name to its watermark. The watermarks reported are tentative, to get a better sense of progress while processing a bundle but before it is committed. At bundle commit time, a Runner needs to also take into account the timers set to compute the actual watermarks.
map<string, int64> watermarks = 3;getWatermarksCount in interface BeamFnApi.Metrics.PTransformOrBuilderpublic boolean containsWatermarks(String key)
(Optional): Map from local output name to its watermark. The watermarks reported are tentative, to get a better sense of progress while processing a bundle but before it is committed. At bundle commit time, a Runner needs to also take into account the timers set to compute the actual watermarks.
map<string, int64> watermarks = 3;containsWatermarks in interface BeamFnApi.Metrics.PTransformOrBuilder@Deprecated public Map<String,Long> getWatermarks()
getWatermarksMap() instead.getWatermarks in interface BeamFnApi.Metrics.PTransformOrBuilderpublic Map<String,Long> getWatermarksMap()
(Optional): Map from local output name to its watermark. The watermarks reported are tentative, to get a better sense of progress while processing a bundle but before it is committed. At bundle commit time, a Runner needs to also take into account the timers set to compute the actual watermarks.
map<string, int64> watermarks = 3;getWatermarksMap in interface BeamFnApi.Metrics.PTransformOrBuilderpublic long getWatermarksOrDefault(String key, long defaultValue)
(Optional): Map from local output name to its watermark. The watermarks reported are tentative, to get a better sense of progress while processing a bundle but before it is committed. At bundle commit time, a Runner needs to also take into account the timers set to compute the actual watermarks.
map<string, int64> watermarks = 3;getWatermarksOrDefault in interface BeamFnApi.Metrics.PTransformOrBuilderpublic long getWatermarksOrThrow(String key)
(Optional): Map from local output name to its watermark. The watermarks reported are tentative, to get a better sense of progress while processing a bundle but before it is committed. At bundle commit time, a Runner needs to also take into account the timers set to compute the actual watermarks.
map<string, int64> watermarks = 3;getWatermarksOrThrow in interface BeamFnApi.Metrics.PTransformOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static BeamFnApi.Metrics.PTransform parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BeamFnApi.Metrics.PTransform parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BeamFnApi.Metrics.PTransform parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BeamFnApi.Metrics.PTransform parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BeamFnApi.Metrics.PTransform parseFrom(InputStream input) throws IOException
IOExceptionpublic static BeamFnApi.Metrics.PTransform parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BeamFnApi.Metrics.PTransform parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static BeamFnApi.Metrics.PTransform parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BeamFnApi.Metrics.PTransform parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static BeamFnApi.Metrics.PTransform parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic BeamFnApi.Metrics.PTransform.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static BeamFnApi.Metrics.PTransform.Builder newBuilder()
public static BeamFnApi.Metrics.PTransform.Builder newBuilder(BeamFnApi.Metrics.PTransform prototype)
public BeamFnApi.Metrics.PTransform.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected BeamFnApi.Metrics.PTransform.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static BeamFnApi.Metrics.PTransform getDefaultInstance()
public static com.google.protobuf.Parser<BeamFnApi.Metrics.PTransform> parser()
public com.google.protobuf.Parser<BeamFnApi.Metrics.PTransform> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public BeamFnApi.Metrics.PTransform getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2016–2017 The Apache Software Foundation. All rights reserved.