final void addOutputDescriptor(OutputDescriptor outputDescriptor) { String streamId = outputDescriptor.getStreamId(); Preconditions.checkState(!outputDescriptors.containsKey(streamId) || outputDescriptors.get(streamId) == outputDescriptor, String.format("Cannot add an output descriptor multiple times with the same streamId: %s", streamId)); outputDescriptors.put(streamId, outputDescriptor); addSystemDescriptor(outputDescriptor.getSystemDescriptor()); }
final void addOutputDescriptor(OutputDescriptor outputDescriptor) { String streamId = outputDescriptor.getStreamId(); Preconditions.checkState(!outputDescriptors.containsKey(streamId) || outputDescriptors.get(streamId) == outputDescriptor, String.format("Cannot add an output descriptor multiple times with the same streamId: %s", streamId)); outputDescriptors.put(streamId, outputDescriptor); addSystemDescriptor(outputDescriptor.getSystemDescriptor()); }
final void addOutputDescriptor(OutputDescriptor outputDescriptor) { String streamId = outputDescriptor.getStreamId(); Preconditions.checkState(!outputDescriptors.containsKey(streamId) || outputDescriptors.get(streamId) == outputDescriptor, String.format("Cannot add an output descriptor multiple times with the same streamId: %s", streamId)); outputDescriptors.put(streamId, outputDescriptor); addSystemDescriptor(outputDescriptor.getSystemDescriptor()); }
final void addOutputDescriptor(OutputDescriptor outputDescriptor) { String streamId = outputDescriptor.getStreamId(); Preconditions.checkState(!outputDescriptors.containsKey(streamId) || outputDescriptors.get(streamId) == outputDescriptor, String.format("Cannot add an output descriptor multiple times with the same streamId: %s", streamId)); outputDescriptors.put(streamId, outputDescriptor); addSystemDescriptor(outputDescriptor.getSystemDescriptor()); }
final void addOutputDescriptor(OutputDescriptor outputDescriptor) { String streamId = outputDescriptor.getStreamId(); Preconditions.checkState(!outputDescriptors.containsKey(streamId) || outputDescriptors.get(streamId) == outputDescriptor, String.format("Cannot add an output descriptor multiple times with the same streamId: %s", streamId)); outputDescriptors.put(streamId, outputDescriptor); addSystemDescriptor(outputDescriptor.getSystemDescriptor()); }
@Override public TaskApplicationDescriptor withOutputStream(OutputDescriptor outputDescriptor) { addOutputDescriptor(outputDescriptor); getOrCreateStreamSerdes(outputDescriptor.getStreamId(), outputDescriptor.getSerde()); return this; }
@Override public TaskApplicationDescriptor withOutputStream(OutputDescriptor outputDescriptor) { addOutputDescriptor(outputDescriptor); getOrCreateStreamSerdes(outputDescriptor.getStreamId(), outputDescriptor.getSerde()); return this; }
@Override public TaskApplicationDescriptor withOutputStream(OutputDescriptor outputDescriptor) { addOutputDescriptor(outputDescriptor); getOrCreateStreamSerdes(outputDescriptor.getStreamId(), outputDescriptor.getSerde()); return this; }
@Override public TaskApplicationDescriptor withOutputStream(OutputDescriptor outputDescriptor) { addOutputDescriptor(outputDescriptor); getOrCreateStreamSerdes(outputDescriptor.getStreamId(), outputDescriptor.getSerde()); return this; }
@Override public TaskApplicationDescriptor withOutputStream(OutputDescriptor outputDescriptor) { addOutputDescriptor(outputDescriptor); getOrCreateStreamSerdes(outputDescriptor.getStreamId(), outputDescriptor.getSerde()); return this; }
@Override public <M> OutputStream<M> getOutputStream(OutputDescriptor<M, ?> outputDescriptor) { addOutputDescriptor(outputDescriptor); String streamId = outputDescriptor.getStreamId(); Serde serde = outputDescriptor.getSerde(); KV<Serde, Serde> kvSerdes = getOrCreateStreamSerdes(streamId, serde); boolean isKeyed = serde instanceof KVSerde; outputStreams.put(streamId, new OutputStreamImpl<>(streamId, kvSerdes.getKey(), kvSerdes.getValue(), isKeyed)); return outputStreams.get(streamId); }
@Override public <M> OutputStream<M> getOutputStream(OutputDescriptor<M, ?> outputDescriptor) { addOutputDescriptor(outputDescriptor); String streamId = outputDescriptor.getStreamId(); Serde serde = outputDescriptor.getSerde(); KV<Serde, Serde> kvSerdes = getOrCreateStreamSerdes(streamId, serde); boolean isKeyed = serde instanceof KVSerde; outputStreams.put(streamId, new OutputStreamImpl<>(streamId, kvSerdes.getKey(), kvSerdes.getValue(), isKeyed)); return outputStreams.get(streamId); }
@Override public <M> OutputStream<M> getOutputStream(OutputDescriptor<M, ?> outputDescriptor) { addOutputDescriptor(outputDescriptor); String streamId = outputDescriptor.getStreamId(); Serde serde = outputDescriptor.getSerde(); KV<Serde, Serde> kvSerdes = getOrCreateStreamSerdes(streamId, serde); boolean isKeyed = serde instanceof KVSerde; outputStreams.put(streamId, new OutputStreamImpl<>(streamId, kvSerdes.getKey(), kvSerdes.getValue(), isKeyed)); return outputStreams.get(streamId); }
@Override public <M> OutputStream<M> getOutputStream(OutputDescriptor<M, ?> outputDescriptor) { addOutputDescriptor(outputDescriptor); String streamId = outputDescriptor.getStreamId(); Serde serde = outputDescriptor.getSerde(); KV<Serde, Serde> kvSerdes = getOrCreateStreamSerdes(streamId, serde); boolean isKeyed = serde instanceof KVSerde; outputStreams.put(streamId, new OutputStreamImpl<>(streamId, kvSerdes.getKey(), kvSerdes.getValue(), isKeyed)); return outputStreams.get(streamId); }
@Override public <M> OutputStream<M> getOutputStream(OutputDescriptor<M, ?> outputDescriptor) { addOutputDescriptor(outputDescriptor); String streamId = outputDescriptor.getStreamId(); Serde serde = outputDescriptor.getSerde(); KV<Serde, Serde> kvSerdes = getOrCreateStreamSerdes(streamId, serde); boolean isKeyed = serde instanceof KVSerde; outputStreams.put(streamId, new OutputStreamImpl<>(streamId, kvSerdes.getKey(), kvSerdes.getValue(), isKeyed)); return outputStreams.get(streamId); }