public class BatchContextSdkImpl extends Object implements com.streamsets.pipeline.api.BatchContext
| Constructor and Description |
|---|
BatchContextSdkImpl(com.streamsets.pipeline.api.BatchMaker batchMaker,
com.streamsets.datacollector.runner.StageContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(Collection<com.streamsets.pipeline.api.Record> records) |
void |
complete(com.streamsets.pipeline.api.Record record) |
com.streamsets.pipeline.api.BatchMaker |
getBatchMaker() |
List<com.streamsets.pipeline.api.Record> |
getSourceResponseRecords() |
void |
toError(com.streamsets.pipeline.api.Record record,
com.streamsets.pipeline.api.ErrorCode errorCode,
Object... args) |
void |
toError(com.streamsets.pipeline.api.Record record,
Exception exception) |
void |
toError(com.streamsets.pipeline.api.Record record,
String errorMessage) |
void |
toEvent(com.streamsets.pipeline.api.EventRecord record) |
public BatchContextSdkImpl(com.streamsets.pipeline.api.BatchMaker batchMaker,
com.streamsets.datacollector.runner.StageContext context)
public com.streamsets.pipeline.api.BatchMaker getBatchMaker()
getBatchMaker in interface com.streamsets.pipeline.api.BatchContextpublic void toError(com.streamsets.pipeline.api.Record record,
Exception exception)
toError in interface com.streamsets.pipeline.api.ToErrorContextpublic void toError(com.streamsets.pipeline.api.Record record,
String errorMessage)
toError in interface com.streamsets.pipeline.api.ToErrorContextpublic void toError(com.streamsets.pipeline.api.Record record,
com.streamsets.pipeline.api.ErrorCode errorCode,
Object... args)
toError in interface com.streamsets.pipeline.api.ToErrorContextpublic void toEvent(com.streamsets.pipeline.api.EventRecord record)
toEvent in interface com.streamsets.pipeline.api.ToEventContextpublic void complete(com.streamsets.pipeline.api.Record record)
complete in interface com.streamsets.pipeline.api.ProcessedContextpublic void complete(Collection<com.streamsets.pipeline.api.Record> records)
complete in interface com.streamsets.pipeline.api.ProcessedContextpublic List<com.streamsets.pipeline.api.Record> getSourceResponseRecords()
getSourceResponseRecords in interface com.streamsets.pipeline.api.BatchContextCopyright © 2019 StreamSets. All rights reserved.