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
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
|
id
public org.apache.hadoop.io.IntWritable id
name
public org.apache.hadoop.io.Text name
IdentifiableName
public IdentifiableName()
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.