Package org.apache.beam.sdk.metrics
Class StringSetResult
java.lang.Object
org.apache.beam.sdk.metrics.StringSetResult
- Direct Known Subclasses:
StringSetResult.EmptyStringSetResult
The result of a
StringSet metric. The StringSetResult hold an immutable copy of
the set from which it was initially created representing that a result cannot be modified once
created.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEmptyStringSetResult, representing no values reported and is immutable. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringSetResultCreates aStringSetResultfrom the givenSetby making an immutable copy.static StringSetResultempty()
-
Constructor Details
-
StringSetResult
public StringSetResult()
-
-
Method Details
-
getStringSet
-
create
Creates aStringSetResultfrom the givenSetby making an immutable copy.- Parameters:
s- the set from which theStringSetResultshould be created.- Returns:
StringSetResultcontaining an immutable copy of the given set.
-
empty
- Returns:
- a
StringSetResult.EmptyStringSetResult
-