APISonar


java.util.ArrayList.output

> java > util > ArrayList > output
java APIs util APIs ArrayList APIs output APIs

Example 1
private final ArrayList<Long> result = new ArrayList<Long>();

	protected void testProgram() throws Exception {
		ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();

		DataSet<Long> inputStatic = env.generateSequence(1, 4);
		DataSet<Long> inputIteration = env.generateSequence(1, 4);

		IterativeDataSet<Long> iteration = inputIteration.iterate(3);

		DataSet<Long> result = iteration.closeWith(inputStatic.union(inputStatic).union(iteration.union(iteration)));

		result.output(new LocalCollectionOutputFormat<Long>(this.result));

		env.execute();
	}