public class StreamInputFormatProvider extends Object implements co.cask.cdap.api.data.batch.InputFormatProvider
InputFormatProvider to provide InputFormat to read from stream.| Constructor and Description |
|---|
StreamInputFormatProvider(Id.Namespace namespaceId,
co.cask.cdap.api.data.stream.StreamBatchReadable streamBatchReadable,
StreamAdmin streamAdmin) |
| Modifier and Type | Method and Description |
|---|---|
String |
getInputFormatClassName() |
Map<String,String> |
getInputFormatConfiguration() |
Id.Stream |
getStreamId()
Returns the stream Id of the stream that will be consumed by InputFormat.
|
Map<String,String> |
setDecoderType(Map<String,String> configuration,
Type type)
Sets the
StreamEventDecoder to be used by the InputFormat for the given type. |
public StreamInputFormatProvider(Id.Namespace namespaceId, co.cask.cdap.api.data.stream.StreamBatchReadable streamBatchReadable, StreamAdmin streamAdmin)
public Id.Stream getStreamId()
public Map<String,String> setDecoderType(Map<String,String> configuration, Type type)
StreamEventDecoder to be used by the InputFormat for the given type. If the
StreamBatchReadable already defined a StreamEventDecoder or FormatSpecification,
this method is a no-op.configuration - configuration to updatetype - type for StreamEventData to decode topublic String getInputFormatClassName()
getInputFormatClassName in interface co.cask.cdap.api.data.batch.InputFormatProviderCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.