Example usage for org.apache.hadoop.io ObjectWritable write

List of usage examples for org.apache.hadoop.io ObjectWritable write

Introduction

In this page you can find the example usage for org.apache.hadoop.io ObjectWritable write.

Prototype

@Override
    public void write(DataOutput out) throws IOException 

Source Link

Usage

From source file:co.cask.cdap.etl.batch.mapreduce.TaggedWritable.java

License:Apache License

@Override
public void write(DataOutput out) throws IOException {
    Text.writeString(out, stageName);
    ObjectWritable recordWritable = new ObjectWritable(record);
    recordWritable.write(out);
}

From source file:com.bah.culvert.constraints.Join.java

License:Apache License

@Override
public void write(DataOutput out) throws IOException {
    // write the left table
    ObjectWritable ow = new ObjectWritable(this.leftTable);
    ow.write(out);

    // write left constraint
    ow.set(this.left);
    ow.write(out);//from w w w .j  a  va  2  s  . co  m

    this.leftColumn.write(out);

    Text.writeString(out, this.rightTable);

    // write out the database
    ow.set(this.database);
    ow.write(out);
}