Skip to content

Commit

Permalink
Add OptionlCoder to common types
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones committed Nov 20, 2024
1 parent 86ef7a7 commit 8a48d6c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.ServiceLoader;
import java.util.Set;
import org.apache.beam.sdk.annotations.Internal;
Expand Down Expand Up @@ -113,6 +114,8 @@ private CommonTypes() {
Instant.class, CoderProviders.fromStaticMethods(Instant.class, InstantCoder.class));
builder.put(
Integer.class, CoderProviders.fromStaticMethods(Integer.class, VarIntCoder.class));
builder.put(
Optional.class, CoderProviders.fromStaticMethods(Optional.class, OptionalCoder.class));
builder.put(
Iterable.class, CoderProviders.fromStaticMethods(Iterable.class, IterableCoder.class));
builder.put(KV.class, CoderProviders.fromStaticMethods(KV.class, KvCoder.class));
Expand Down

0 comments on commit 8a48d6c

Please sign in to comment.