SequenceFileValueIterator

org.apache.mahout.common.iterator.sequencefile.SequenceFileValueIterator

Using this class, we can iterate through the values in the sequence file. Key is expected to be of Writable.

Class<? extends Writable> keyClass = (Class<? extends Writable>) reader.getKeyClass();

 

Leave a comment