Class BatchSourceContextImpl
java.lang.Object
org.apache.beam.sdk.io.cdap.context.BatchContextImpl
org.apache.beam.sdk.io.cdap.context.BatchSourceContextImpl
- All Implemented Interfaces:
DatasetContext,MetadataReader,MetadataWriter,ServiceDiscoverer,BatchContext,BatchSourceContext,LineageRecorder,LookupProvider,StageContext,TransformContext
Class for creating context object of different CDAP classes with batch source type.
-
Field Summary
Fields inherited from class org.apache.beam.sdk.io.cdap.context.BatchContextImpl
DEFAULT_SCHEMA_FIELD_NAME, DEFAULT_SCHEMA_RECORD_NAME, inputFormatProvider, outputFormatProvider, settableArguments -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanvoidOverrides the input configuration of this Batch job to the specifiedInput.Methods inherited from class org.apache.beam.sdk.io.cdap.context.BatchContextImpl
addProperties, addTags, addTags, createDataset, datasetExists, discardDataset, getArguments, getDataset, getDataset, getDataset, getDataset, getFailureCollector, getInputFormatProvider, getInputSchema, getInputSchemas, getLogicalStartTime, getMetadata, getMetadata, getMetrics, getNamespace, getOutputFormatProvider, getOutputPortSchemas, getOutputSchema, getPipelineName, getPluginProperties, getPluginProperties, getServiceURL, getServiceURL, getStageName, loadPluginClass, newPluginInstance, provide, record, releaseDataset, removeMetadata, removeProperties, removeProperties, removeTags, removeTagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.cdap.cdap.etl.api.batch.BatchContext
createDataset, datasetExists, getArgumentsMethods inherited from interface io.cdap.cdap.api.data.DatasetContext
discardDataset, getDataset, getDataset, getDataset, getDataset, releaseDatasetMethods inherited from interface io.cdap.cdap.etl.api.lineage.field.LineageRecorder
recordMethods inherited from interface io.cdap.cdap.etl.api.LookupProvider
provideMethods inherited from interface io.cdap.cdap.api.metadata.MetadataReader
getMetadata, getMetadataMethods inherited from interface io.cdap.cdap.api.metadata.MetadataWriter
addProperties, addTags, addTags, removeMetadata, removeProperties, removeProperties, removeTags, removeTagsMethods inherited from interface io.cdap.cdap.api.ServiceDiscoverer
getServiceURL, getServiceURL, getServiceURL, openConnectionMethods inherited from interface io.cdap.cdap.etl.api.StageContext
getFailureCollector, getInputSchema, getInputSchemas, getInputStages, getLogicalStartTime, getMetrics, getNamespace, getOutputPortSchemas, getOutputSchema, getPipelineName, getPluginProperties, getPluginProperties, getStageName, loadPluginClass, newPluginInstance
-
Constructor Details
-
BatchSourceContextImpl
public BatchSourceContextImpl()
-
-
Method Details
-
setInput
Overrides the input configuration of this Batch job to the specifiedInput.- Specified by:
setInputin interfaceBatchSourceContext
-
isPreviewEnabled
public boolean isPreviewEnabled()- Specified by:
isPreviewEnabledin interfaceBatchSourceContext
-
getMaxPreviewRecords
public int getMaxPreviewRecords()- Specified by:
getMaxPreviewRecordsin interfaceBatchSourceContext
-