479480481482483484485486487488489
vec.set(j, Double.parseDouble(split[j + indexPos])); } VectorWritable vector; if (hasKey) { NamedDoubleVector named = new NamedDoubleVector(split[0], vec); vector = new VectorWritable(named); } else { vector = new VectorWritable(vec); }
119120121122123124125126127
for (int i = 0; i < length; i++) { vector.set(i, in.readDouble()); } if (in.readBoolean()) { vector = new NamedDoubleVector(in.readUTF(), vector); } return vector; }