org.apache.accumulo.core.file.map
Interface MySequenceFile.Sorter.RawKeyValueIterator

Enclosing class:
MySequenceFile.Sorter

public static interface MySequenceFile.Sorter.RawKeyValueIterator

The interface to iterate over raw keys/values of SequenceFiles.


Method Summary
 void close()
          closes the iterator so that the underlying streams can be closed
 org.apache.hadoop.io.DataOutputBuffer getKey()
          Gets the current raw key
 org.apache.hadoop.util.Progress getProgress()
          Gets the Progress object; this has a float (0.0 - 1.0) indicating the bytes processed by the iterator so far
 MySequenceFile.ValueBytes getValue()
          Gets the current raw value
 boolean next()
          Sets up the current key and value (for getKey and getValue)
 

Method Detail

getKey

org.apache.hadoop.io.DataOutputBuffer getKey()
                                             throws java.io.IOException
Gets the current raw key

Returns:
DataOutputBuffer
Throws:
java.io.IOException

getValue

MySequenceFile.ValueBytes getValue()
                                   throws java.io.IOException
Gets the current raw value

Returns:
ValueBytes
Throws:
java.io.IOException

next

boolean next()
             throws java.io.IOException
Sets up the current key and value (for getKey and getValue)

Returns:
true if there exists a key/value, false otherwise
Throws:
java.io.IOException

close

void close()
           throws java.io.IOException
closes the iterator so that the underlying streams can be closed

Throws:
java.io.IOException

getProgress

org.apache.hadoop.util.Progress getProgress()
Gets the Progress object; this has a float (0.0 - 1.0) indicating the bytes processed by the iterator so far



Copyright © 2012 The Apache Software Foundation. All Rights Reserved.