KEY_IN
- the type of input key from the input formatVAL_IN
- the type of input value from the input formatpublic interface BatchConnector<KEY_IN,VAL_IN> extends Connector
InputFormatProvider
to read from the resourcesPLUGIN_TYPE
Modifier and Type | Method and Description |
---|---|
InputFormatProvider |
getInputFormatProvider(ConnectorContext context,
SampleRequest request)
Return the input format this connector will use to do the sampling
|
io.cdap.cdap.api.data.format.StructuredRecord |
transform(KEY_IN key,
VAL_IN val)
Transform the sampled key and value back to StructuredRecord
|
InputFormatProvider getInputFormatProvider(ConnectorContext context, SampleRequest request) throws IOException
context
- context for the connectorIOException
- if unable to retrieve the input format providerio.cdap.cdap.api.data.format.StructuredRecord transform(KEY_IN key, VAL_IN val)
Copyright © 2023 Cask Data, Inc. Licensed under the Apache License, Version 2.0.