Package backtype.storm.spout

Source Code of backtype.storm.spout.RawScheme

package backtype.storm.spout;

import backtype.storm.tuple.Fields;
import java.util.List;
import static backtype.storm.utils.Utils.tuple;

public class RawScheme implements Scheme {
    public List<Object> deserialize(byte[] ser) {
        return tuple(ser);
    }

    public Fields getOutputFields() {
        return new Fields("bytes");
    }
}
TOP

Related Classes of backtype.storm.spout.RawScheme

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.