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 class
EmptyStringSetResult
, representing no values reported and is immutable. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringSetResult
Creates aStringSetResult
from the givenSet
by making an immutable copy.static StringSetResult
empty()
-
Constructor Details
-
StringSetResult
public StringSetResult()
-
-
Method Details
-
getStringSet
-
create
Creates aStringSetResult
from the givenSet
by making an immutable copy.- Parameters:
s
- the set from which theStringSetResult
should be created.- Returns:
StringSetResult
containing an immutable copy of the given set.
-
empty
- Returns:
- a
StringSetResult.EmptyStringSetResult
-