Package org.apache.beam.sdk.io.splunk
Class SplunkWriteErrorSchemaProvider
java.lang.Object
org.apache.beam.sdk.io.splunk.SplunkWriteErrorSchemaProvider
- All Implemented Interfaces:
Serializable,SchemaProvider
A
SchemaProvider for SplunkWriteError objects.
SplunkWriteError accessors don't follow the getter naming convention, so the schema
AutoValueSchema infers for it has no fields and its schema
coder drops every value. This provider maps the accessors to row fields by hand.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> @Nullable SerializableFunction<Row, T> fromRowFunction(TypeDescriptor<T> typeDescriptor) Given a type, returns a function that converts from aRowobject to that type.schemaFor(TypeDescriptor<T> typeDescriptor) Lookup a schema for the given type.<T> @Nullable SerializableFunction<T, Row> toRowFunction(TypeDescriptor<T> typeDescriptor) Given a type, return a function that converts that type to aRowobject If no schema exists, returns null.
-
Constructor Details
-
SplunkWriteErrorSchemaProvider
public SplunkWriteErrorSchemaProvider()
-
-
Method Details
-
schemaFor
Description copied from interface:SchemaProviderLookup a schema for the given type. If no schema exists, returns null.- Specified by:
schemaForin interfaceSchemaProvider
-
toRowFunction
Description copied from interface:SchemaProviderGiven a type, return a function that converts that type to aRowobject If no schema exists, returns null.- Specified by:
toRowFunctionin interfaceSchemaProvider
-
fromRowFunction
Description copied from interface:SchemaProviderGiven a type, returns a function that converts from aRowobject to that type. If no schema exists, returns null.- Specified by:
fromRowFunctionin interfaceSchemaProvider
-