Interface CloudObjectTranslator<T>
-
- All Known Implementing Classes:
RowCoderCloudObjectTranslator,SchemaCoderCloudObjectTranslator
public interface CloudObjectTranslator<T>A translator that takes an object and creates aCloudObjectwhich can be converted back to the original object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringcloudObjectClassName()Gets the class name that will represent theCloudObjectcreated by thisCloudObjectTranslator.TfromCloudObject(CloudObject cloudObject)Converts back into the original object from a providedCloudObject.java.lang.Class<? extends T>getSupportedClass()Gets the class thisCloudObjectTranslatoris capable of converting.CloudObjecttoCloudObject(T target, org.apache.beam.sdk.util.construction.SdkComponents sdkComponents)Converts the provided object into an equivalentCloudObject.
-
-
-
Method Detail
-
toCloudObject
CloudObject toCloudObject(T target, org.apache.beam.sdk.util.construction.SdkComponents sdkComponents)
Converts the provided object into an equivalentCloudObject.
-
fromCloudObject
T fromCloudObject(CloudObject cloudObject)
Converts back into the original object from a providedCloudObject.
-
getSupportedClass
java.lang.Class<? extends T> getSupportedClass()
Gets the class thisCloudObjectTranslatoris capable of converting.
-
cloudObjectClassName
java.lang.String cloudObjectClassName()
Gets the class name that will represent theCloudObjectcreated by thisCloudObjectTranslator.
-
-