260261262263264265266267268269270
TypedBytesOutput out = new TypedBytesOutput(new DataOutputStream(bytes)); out.writeVectorHeader(array.length); for (int i=0; i<array.length; ++i) { out.writeDouble(array[i]); } TypedBytesWritable val = new TypedBytesWritable(bytes.toByteArray());