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

E54638-01

oracle.hadoop.loader.lib.input
Class OldToNewInputSplit

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputSplit
      extended by oracle.hadoop.loader.lib.input.OldToNewInputSplit
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.io.Writable

public class OldToNewInputSplit
extends org.apache.hadoop.mapreduce.InputSplit
implements org.apache.hadoop.io.Writable, org.apache.hadoop.conf.Configurable

An adaptor that wraps around a mapred InputSplit to produce a mapreduce InputSplit.


Method Summary
 org.apache.hadoop.conf.Configuration getConf()
           
 long getLength()
           
 java.lang.String[] getLocations()
           
 void readFields(java.io.DataInput in)
          This is not part of the mapreduce.InputSplit interface; it required by JobClient.writeNewSplits.
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 void write(java.io.DataOutput out)
          This is not part of the mapreduce.InputSplit interface; it required by JobClient.writeNewSplits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLength

public long getLength()
               throws java.io.IOException,
                      java.lang.InterruptedException
Specified by:
getLength in class org.apache.hadoop.mapreduce.InputSplit
Throws:
java.io.IOException
java.lang.InterruptedException

getLocations

public java.lang.String[] getLocations()
                                throws java.io.IOException,
                                       java.lang.InterruptedException
Specified by:
getLocations in class org.apache.hadoop.mapreduce.InputSplit
Throws:
java.io.IOException
java.lang.InterruptedException

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
This is not part of the mapreduce.InputSplit interface; it required by JobClient.writeNewSplits.

Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException

readFields

public void readFields(java.io.DataInput in)
                throws java.io.IOException
This is not part of the mapreduce.InputSplit interface; it required by JobClient.writeNewSplits.

Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable

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.