Interface CloudObjectTranslator<T>
- All Known Implementing Classes:
RowCoderCloudObjectTranslator
,SchemaCoderCloudObjectTranslator
public interface CloudObjectTranslator<T>
A translator that takes an object and creates a
CloudObject
which can be converted back
to the original object.-
Method Summary
Modifier and TypeMethodDescriptionGets the class name that will represent theCloudObject
created by thisCloudObjectTranslator
.fromCloudObject
(CloudObject cloudObject) Converts back into the original object from a providedCloudObject
.Gets the class thisCloudObjectTranslator
is capable of converting.toCloudObject
(T target, org.apache.beam.sdk.util.construction.SdkComponents sdkComponents) Converts the provided object into an equivalentCloudObject
.
-
Method Details
-
toCloudObject
CloudObject toCloudObject(T target, org.apache.beam.sdk.util.construction.SdkComponents sdkComponents) Converts the provided object into an equivalentCloudObject
. -
fromCloudObject
Converts back into the original object from a providedCloudObject
. -
getSupportedClass
Gets the class thisCloudObjectTranslator
is capable of converting. -
cloudObjectClassName
String cloudObjectClassName()Gets the class name that will represent theCloudObject
created by thisCloudObjectTranslator
.
-