List of usage examples for org.apache.mahout.common.iterator.sequencefile SequenceFileDirValueIterator SequenceFileDirValueIterator
public SequenceFileDirValueIterator(Path path, PathType pathType, PathFilter filter, Comparator<FileStatus> ordering, boolean reuseKeyValueInstances, Configuration conf) throws IOException
From source file:org.gpfvic.mahout.cf.taste.hadoop.als.ALS.java
License:Apache License
static Vector readFirstRow(Path dir, Configuration conf) throws IOException { Iterator<VectorWritable> iterator = new SequenceFileDirValueIterator<>(dir, PathType.LIST, PathFilters.partFilter(), null, true, conf); return iterator.hasNext() ? iterator.next().get() : null; }