This project has retired. For details please refer to its Attic page.
IdentifiableName (Apache Crunch 0.8.0 API)

org.apache.crunch.contrib.io.jdbc
Class IdentifiableName

java.lang.Object
  extended by org.apache.crunch.contrib.io.jdbc.IdentifiableName
All Implemented Interfaces:
org.apache.hadoop.io.Writable, org.apache.hadoop.mapreduce.lib.db.DBWritable

public class IdentifiableName
extends Object
implements org.apache.hadoop.mapreduce.lib.db.DBWritable, org.apache.hadoop.io.Writable


Field Summary
 org.apache.hadoop.io.IntWritable id
           
 org.apache.hadoop.io.Text name
           
 
Constructor Summary
IdentifiableName()
           
 
Method Summary
 void readFields(DataInput in)
           
 void readFields(ResultSet resultSet)
           
 void write(DataOutput out)
           
 void write(PreparedStatement preparedStatement)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public org.apache.hadoop.io.IntWritable id

name

public org.apache.hadoop.io.Text name
Constructor Detail

IdentifiableName

public IdentifiableName()
Method Detail

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(ResultSet resultSet)
                throws SQLException
Specified by:
readFields in interface org.apache.hadoop.mapreduce.lib.db.DBWritable
Throws:
SQLException

write

public void write(PreparedStatement preparedStatement)
           throws SQLException
Specified by:
write in interface org.apache.hadoop.mapreduce.lib.db.DBWritable
Throws:
SQLException


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