StreamMessageType
- type of messages in this stream.public final class GenericInputDescriptor<StreamMessageType> extends InputDescriptor<StreamMessageType,GenericInputDescriptor<StreamMessageType>>
GenericInputDescriptor
can be used for specifying Samza and system-specific properties of
input streams.
If the system provides its own system and stream descriptor implementations, use them instead.
Otherwise, use this GenericInputDescriptor
to specify Samza-specific properties of the stream,
and StreamDescriptor.withStreamConfigs(java.util.Map<java.lang.String, java.lang.String>)
to specify additional system specific properties.
Use GenericSystemDescriptor.getInputDescriptor(java.lang.String, org.apache.samza.serializers.Serde<StreamMessageType>)
to obtain an instance of this descriptor.
Stream properties provided in configuration override corresponding properties specified using a descriptor.
Modifier and Type | Method and Description |
---|---|
GenericInputDescriptor<StreamMessageType> |
withPhysicalName(java.lang.String physicalName)
The physical name of the stream on the system on which this stream will be accessed.
|
getTransformer, isBounded, shouldBootstrap, shouldDeleteCommittedMessages, shouldResetOffset, toConfig, withOffsetDefault, withPriority
getPhysicalName, getSerde, getStreamId, getSystemDescriptor, getSystemName, withStreamConfigs
public GenericInputDescriptor<StreamMessageType> withPhysicalName(java.lang.String physicalName)
StreamDescriptor
streamId
which is the logical name that Samza uses to identify the stream.
A physical name could be a Kafka topic name, an HDFS file URN, or any other system-specific identifier.
If not provided, the logical streamId
is used as the physical name.
withPhysicalName
in class StreamDescriptor<StreamMessageType,GenericInputDescriptor<StreamMessageType>>
physicalName
- physical name for this stream.