Google Cloud Dataflow SDK for Java, version 1.9.1
com.google.cloud.dataflow.sdk.coders
Interface CoderProvider
-
- All Known Implementing Classes:
- CoderRegistry
public interface CoderProvider
ACoderProvider
may create aCoder
for any concrete class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description <T> Coder<T>
getCoder(TypeDescriptor<T> type)
Provides a coder for a given class, if possible.
-
-
-
Method Detail
-
getCoder
<T> Coder<T> getCoder(TypeDescriptor<T> type) throws CannotProvideCoderException
Provides a coder for a given class, if possible.- Throws:
CannotProvideCoderException
- if no coder can be provided
-
-