public SpoutSpec deepCopy() { return new SpoutSpec(this); }
public static SpoutSpec prepareSerializedSpoutDetails(IRichSpout spout, Map<String, StreamInfo> outputs) { return new SpoutSpec(ComponentObject.serialized_java (Utils.javaSerialize(spout)), prepareComponentCommon(new HashMap<>(), outputs, null, null)); }
ComponentCommon common = getComponentCommon(spoutId, spout); try { spoutSpecs.put(spoutId, new SpoutSpec(ComponentObject.serialized_java(Utils.javaSerialize(spout)), common)); } catch (RuntimeException wrapperCause) { if (wrapperCause.getCause() != null && NotSerializableException.class.equals(wrapperCause.getCause().getClass())) {
SpoutSpec __this__spouts_copy_value = new SpoutSpec(other_element_value);
_val96 = new SpoutSpec(); _val96.read(iprot); struct.spouts.put(_key95, _val96);
private StormTopology genereateStormTopology(boolean withWorkerHook) { ImmutableMap<String, SpoutSpec> spouts = ImmutableMap.of("spout-1", new SpoutSpec()); ImmutableMap<String, Bolt> bolts = ImmutableMap.of("bolt-1", new Bolt()); ImmutableMap<String, StateSpoutSpec> state_spouts = ImmutableMap.of(); StormTopology stormTopology = new StormTopology(spouts, bolts, state_spouts); if (withWorkerHook) { BaseWorkerHook workerHook = new BaseWorkerHook(); stormTopology.add_to_worker_hooks(ByteBuffer.wrap(Utils.javaSerialize(workerHook))); } return stormTopology; } }
_val46 = new SpoutSpec(); _val46.read(iprot); struct.spouts.put(_key45, _val46);
public SpoutSpec deepCopy() { return new SpoutSpec(this); }
ComponentCommon common = getComponentCommon(spoutId, spout); try{ spoutSpecs.put(spoutId, new SpoutSpec(ComponentObject.serialized_java(Utils.javaSerialize(spout)), common)); }catch(RuntimeException wrapperCause){ if (wrapperCause.getCause() != null && NotSerializableException.class.equals(wrapperCause.getCause().getClass())){
SpoutSpec __this__spouts_copy_value = new SpoutSpec(other_element_value);
HashMap<String, Bolt> bolts = new HashMap<String, Bolt>(); if (spoutOrBolt instanceof IRichSpout) { spouts.put(operatorName, new SpoutSpec(null, common)); } else { assert (spoutOrBolt instanceof IRichBolt);
/** * Gets the Thrift object representing the topology. * * @return the Thrift definition representing the topology */ @SuppressWarnings("deprecation") public StormTopology getRawTopology() { StormTopology stormTopology = new StormTopology(); Map<String, SpoutSpec> spouts = new HashMap<>(); for (TopologyAPI.Spout spout : this.delegate.getRawTopology().getSpoutsList()) { spouts.put(spout.getComp().getName(), new SpoutSpec(spout)); } Map<String, Bolt> bolts = new HashMap<>(); for (TopologyAPI.Bolt bolt : this.delegate.getRawTopology().getBoltsList()) { bolts.put(bolt.getComp().getName(), new Bolt(bolt)); } stormTopology.set_spouts(spouts); stormTopology.set_bolts(bolts); return stormTopology; }
_val79 = new SpoutSpec(); _val79.read(iprot); struct.spouts.put(_key78, _val79);
_val46 = new SpoutSpec(); _val46.read(iprot); struct.spouts.put(_key45, _val46);