public class StringKafkaSpoutScheme extends Object implements org.apache.storm.spout.Scheme
Constructor and Description |
---|
StringKafkaSpoutScheme(String fieldName)
Associated a field to this scheme so that the spout will emit tuple
with the value under that field name.
|
Modifier and Type | Method and Description |
---|---|
List<Object> |
deserialize(byte[] bytes) |
List<Object> |
deserialize(ByteBuffer bytes) |
static String |
deserializeString(byte[] string) |
org.apache.storm.tuple.Fields |
getOutputFields() |
String |
toString() |
public final String fieldName
public StringKafkaSpoutScheme(String fieldName)
fieldName
- the name of the field used in the storm stream.public static String deserializeString(byte[] string)
public org.apache.storm.tuple.Fields getOutputFields()
getOutputFields
in interface org.apache.storm.spout.Scheme
public List<Object> deserialize(ByteBuffer bytes)
deserialize
in interface org.apache.storm.spout.Scheme
Copyright © 2022. All rights reserved.