public static void writeExampleVectors(Configuration conf, Path in,
FileSystem fs) throws IOException {
try (SequenceFile.Writer dataWriter = SequenceFile.createWriter(fs, conf,
in, ClusterCenter.class, VectorWritable.class)) {
dataWriter.append(new ClusterCenter(new VectorWritable(0, 0)),
new VectorWritable(1, 2));
dataWriter.append(new ClusterCenter(new VectorWritable(0, 0)),
new VectorWritable(16, 3));
dataWriter.append(new ClusterCenter(new VectorWritable(0, 0)),
new VectorWritable(3, 3));
dataWriter.append(new ClusterCenter(new VectorWritable(0, 0)),
new VectorWritable(2, 2));
dataWriter.append(new ClusterCenter(new VectorWritable(0, 0)),
new VectorWritable(2, 3));
dataWriter.append(new ClusterCenter(new VectorWritable(0, 0)),
new VectorWritable(25, 1));
dataWriter.append(new ClusterCenter(new VectorWritable(0, 0)),
new VectorWritable(7, 6));
dataWriter.append(new ClusterCenter(new VectorWritable(0, 0)),
new VectorWritable(6, 5));
dataWriter.append(new ClusterCenter(new VectorWritable(0, 0)),
new VectorWritable(-1, -23));
}
}