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

E54638-01

oracle.sql.hadoop
Class DBHadoopUtil

java.lang.Object
  extended by oracle.sql.hadoop.DBHadoopUtil

public class DBHadoopUtil
extends java.lang.Object

Provides utility methods for writing oc4hadoop applications.


Constructor Summary
DBHadoopUtil()
           
 
Method Summary
static void main(java.lang.String[] args)
          Prints a description of the Oracle In Database Contaniner for Hadoop .jar file to System.out.
static void readSQL(java.sql.SQLInput stream, org.apache.hadoop.io.Writable object)
          Utility method for reading data of a custom writable from BLOB and it reads data through streaming BLOB with the help of writable's readFields method.
static void writeSQL(java.sql.SQLOutput stream, org.apache.hadoop.io.Writable object)
          Utlity method for writeSQL method of custom writable writiting data in BLOB through streaming with the help of writable's write method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBHadoopUtil

public DBHadoopUtil()
Method Detail

writeSQL

public static void writeSQL(java.sql.SQLOutput stream,
                            org.apache.hadoop.io.Writable object)
                     throws java.sql.SQLException
Utlity method for writeSQL method of custom writable writiting data in BLOB through streaming with the help of writable's write method. This method should be used only for testing purpose because LOBs cause M/R jobs to run serially.

Parameters:
stream - stream where BLOB data will be written
object - Object which will be written to stream
Throws:
java.sql.SQLException

readSQL

public static void readSQL(java.sql.SQLInput stream,
                           org.apache.hadoop.io.Writable object)
                    throws java.sql.SQLException
Utility method for reading data of a custom writable from BLOB and it reads data through streaming BLOB with the help of writable's readFields method. This method should be used only for testing purpose because LOBs cause M/R jobs to run serially.

Parameters:
stream - stream from which data will be read
object - Object of which data will be read
Throws:
java.sql.SQLException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Prints a description of the Oracle In Database Contaniner for Hadoop .jar file to System.out.

Parameters:
args - Ignored
Throws:
java.io.IOException

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.