public OneInputStreamOperatorTestHarness( OneInputStreamOperator<IN, OUT> operator, int maxParallelism, int parallelism, int subtaskIndex, TypeSerializer<IN> typeSerializerIn, OperatorID operatorID) throws Exception { this(operator, maxParallelism, parallelism, subtaskIndex, operatorID); config.setTypeSerializerIn1(Preconditions.checkNotNull(typeSerializerIn)); }
public OneInputStreamOperatorTestHarness( OneInputStreamOperator<IN, OUT> operator, TypeSerializer<IN> typeSerializerIn, MockEnvironment environment) throws Exception { this(operator, environment); config.setTypeSerializerIn1(Preconditions.checkNotNull(typeSerializerIn)); }
@Override protected void initializeInputs() throws IOException, InterruptedException { inputGates = new StreamTestSingleInputGate[numInputGates]; for (int i = 0; i < numInputGates; i++) { inputGates[i] = new StreamTestSingleInputGate<IN>( numInputChannelsPerGate, bufferSize, inputSerializer); this.mockEnv.addInputGate(inputGates[i].getInputGate()); } streamConfig.setNumberOfInputs(1); streamConfig.setTypeSerializerIn1(inputSerializer); }
streamConfig.setTypeSerializerIn1(IntSerializer.INSTANCE);
streamConfig.setTypeSerializerIn1(inputSerializer1); streamConfig.setTypeSerializerIn2(inputSerializer2);
streamConfig.setTypeSerializerIn1(IntSerializer.INSTANCE);
public <IN, OUT> StreamConfigChainer chain( OperatorID operatorID, OneInputStreamOperator<IN, OUT> operator, TypeSerializer<IN> inputSerializer, TypeSerializer<OUT> outputSerializer) { chainIndex++; tailConfig.setChainedOutputs(Collections.singletonList( new StreamEdge( new StreamNode(null, tailConfig.getChainIndex(), null, null, null, null, null, null), new StreamNode(null, chainIndex, null, null, null, null, null, null), 0, Collections.<String>emptyList(), null, null))); tailConfig = new StreamConfig(new Configuration()); tailConfig.setStreamOperator(checkNotNull(operator)); tailConfig.setOperatorID(checkNotNull(operatorID)); tailConfig.setTypeSerializerIn1(inputSerializer); tailConfig.setTypeSerializerOut(outputSerializer); tailConfig.setChainIndex(chainIndex); chainedConfigs.put(chainIndex, tailConfig); return this; }
config.setBufferTimeout(vertex.getBufferTimeout()); config.setTypeSerializerIn1(vertex.getTypeSerializerIn1()); config.setTypeSerializerIn2(vertex.getTypeSerializerIn2()); config.setTypeSerializerOut(vertex.getTypeSerializerOut());
config.setBufferTimeout(vertex.getBufferTimeout()); config.setTypeSerializerIn1(vertex.getTypeSerializerIn1()); config.setTypeSerializerIn2(vertex.getTypeSerializerIn2()); config.setTypeSerializerOut(vertex.getTypeSerializerOut());
config.setBufferTimeout(vertex.getBufferTimeout()); config.setTypeSerializerIn1(vertex.getTypeSerializerIn1()); config.setTypeSerializerIn2(vertex.getTypeSerializerIn2()); config.setTypeSerializerOut(vertex.getTypeSerializerOut());
config.setBufferTimeout(vertex.getBufferTimeout()); config.setTypeSerializerIn1(vertex.getTypeSerializerIn1()); config.setTypeSerializerIn2(vertex.getTypeSerializerIn2()); config.setTypeSerializerOut(vertex.getTypeSerializerOut());