Example usage for org.apache.hadoop.io BooleanWritable set

List of usage examples for org.apache.hadoop.io BooleanWritable set

Introduction

In this page you can find the example usage for org.apache.hadoop.io BooleanWritable set.

Prototype

public void set(boolean value) 

Source Link

Document

Set the value of the BooleanWritable

Usage

From source file:org.pentaho.hadoop.mapreduce.converter.converters.KettleTypeToBooleanWritableConverter.java

License:Apache License

@Override
public BooleanWritable convert(ValueMetaInterface meta, Object obj) throws TypeConversionException {
    try {//from  w w  w. j a  va2 s . c  o m
        BooleanWritable result = new BooleanWritable();
        result.set(meta.getBoolean(obj));
        return result;
    } catch (Exception ex) {
        throw new TypeConversionException(BaseMessages.getString(TypeConverterFactory.class, "ErrorConverting",
                BooleanWritable.class.getSimpleName(), obj), ex);
    }
}