Oracle NoSQL Database
version 11gR2.2.0.26

oracle.kv.hadoop
Class KVInputFormat

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputFormat<K,V>
      extended by oracle.kv.hadoop.KVInputFormatBase<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
          extended by oracle.kv.hadoop.KVInputFormat

public class KVInputFormat
extends KVInputFormatBase<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>

A Hadoop InputFormat class for reading data from an Oracle NoSQL Database. Map/reduce keys and values are returned as Text objects. NoSQL Database Key arguments are passed in the canonical format returned by Key.toString format.

Refer to the javadoc for KVInputFormatBase for information on the parameters that may be passed to this class.

A simple example demonstrating the Oracle NoSQL DB Hadoop oracle.kv.hadoop.KVInputFormat class can be found in the KVHOME/example/hadoop directory. It demonstrates how to read records from Oracle NoSQL Database in a Map/Reduce job. The javadoc for that program describes the simple Map/Reduce processing as well as how to invoke the program in Hadoop.


Constructor Summary
KVInputFormat()
           
 
Method Summary
 
Methods inherited from class oracle.kv.hadoop.KVInputFormatBase
setBatchSize, setConsistency, setDepth, setDirection, setFormatterClassName, setKVHelperHosts, setKVStoreName, setParentKey, setSubRange, setTimeout, setTimeoutUnit
 
Methods inherited from class org.apache.hadoop.mapreduce.InputFormat
createRecordReader, getSplits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KVInputFormat

public KVInputFormat()

Oracle NoSQL Database
version 11gR2.2.0.26

Copyright (c) 2011, 2013 Oracle and/or its affiliates. All rights reserved.