Oracle® In-Database Container for Hadoop Java API Reference
Release 1.0.1

E54638-01

oracle.sql.hadoop
Class DummyRawKeyValueIterator

java.lang.Object
  extended by oracle.sql.hadoop.DummyRawKeyValueIterator
All Implemented Interfaces:
org.apache.hadoop.mapred.RawKeyValueIterator

public class DummyRawKeyValueIterator
extends java.lang.Object
implements org.apache.hadoop.mapred.RawKeyValueIterator


Constructor Summary
DummyRawKeyValueIterator()
           
 
Method Summary
 void close()
          Close the iterator so that the underlying streams can be closed.
 org.apache.hadoop.io.DataInputBuffer getKey()
          Gets the current raw key.
 org.apache.hadoop.util.Progress getProgress()
          Get the Progress object; this has a float (0.0 - 1.0) indicating the bytes processed by the iterator so far
 org.apache.hadoop.io.DataInputBuffer getValue()
          Gets the current raw value.
 boolean next()
          Set up the current key and value (for getKey and getValue).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyRawKeyValueIterator

public DummyRawKeyValueIterator()
Method Detail

getKey

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

Specified by:
getKey in interface org.apache.hadoop.mapred.RawKeyValueIterator
Returns:
Get the current raw key as a DataInputBuffer
Throws:
java.io.IOException

getValue

public org.apache.hadoop.io.DataInputBuffer getValue()
                                              throws java.io.IOException
Gets the current raw value.

Specified by:
getValue in interface org.apache.hadoop.mapred.RawKeyValueIterator
Returns:
Get the current raw value as a DataInputBuffer
Throws:
java.io.IOException

next

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

Specified by:
next in interface org.apache.hadoop.mapred.RawKeyValueIterator
Returns:
true if there exists a key/value, false otherwise.
Throws:
java.io.IOException

close

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

Specified by:
close in interface org.apache.hadoop.mapred.RawKeyValueIterator
Throws:
java.io.IOException

getProgress

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

Specified by:
getProgress in interface org.apache.hadoop.mapred.RawKeyValueIterator

Oracle® In-Database Container for Hadoop Java API Reference
Release 1.0.1

E54638-01

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.