for (FileStatus status : listStatus) {
if (!status.isDir()) {
SequenceFile.Reader reader = new SequenceFile.Reader(fs,
status.getPath(), conf);
IntWritable key = new IntWritable();
PipesVectorWritable value = new PipesVectorWritable();
int rowIdx = 0;
while (reader.next(key, value)) {
assertEquals("Expected rowIdx: '" + rowIdx + "' != '" + key.get()
+ "'", rowIdx, key.get());
DoubleVector rowVector = value.getVector();
for (int colIdx = 0; colIdx < rowVector.getLength(); colIdx++) {
double colValue = rowVector.get(colIdx);
assertEquals("Expected colValue: '" + matrix[rowIdx][colIdx]
+ "' != '" + colValue + "' in row: " + rowIdx + " values: "