Example usage for org.apache.hadoop.io IntWritable get

List of usage examples for org.apache.hadoop.io IntWritable get

Introduction

In this page you can find the example usage for org.apache.hadoop.io IntWritable get.

Prototype

public int get() 

Source Link

Document

Return the value of this IntWritable.

Usage

From source file:org.openflamingo.mapreduce.aggregator.IntMaxAggregator.java

License:Apache License

@Override
public void setAggregatedValue(IntWritable value) {
    max = value.get();
}

From source file:org.openflamingo.mapreduce.aggregator.IntMinAggregator.java

License:Apache License

@Override
public void aggregate(IntWritable value) {
    int val = value.get();
    if (val < min) {
        min = val;
    }//from   w  w w .  ja  va 2  s  .c  o  m
}

From source file:org.openflamingo.mapreduce.aggregator.IntMinAggregator.java

License:Apache License

@Override
public void setAggregatedValue(IntWritable value) {
    min = value.get();
}

From source file:org.openflamingo.mapreduce.aggregator.IntOverwriteAggregator.java

License:Apache License

@Override
public void aggregate(IntWritable value) {
    result = value.get();
}

From source file:org.openflamingo.mapreduce.aggregator.IntOverwriteAggregator.java

License:Apache License

@Override
public void setAggregatedValue(IntWritable value) {
    result = value.get();
}

From source file:org.openflamingo.mapreduce.aggregator.IntProductAggregator.java

License:Apache License

@Override
public void aggregate(IntWritable value) {
    product *= value.get();
}

From source file:org.openflamingo.mapreduce.aggregator.IntProductAggregator.java

License:Apache License

@Override
public void setAggregatedValue(IntWritable value) {
    product = value.get();
}

From source file:org.openflamingo.mapreduce.aggregator.IntSumAggregator.java

License:Apache License

@Override
public void aggregate(IntWritable value) {
    sum += value.get();
}

From source file:org.openflamingo.mapreduce.aggregator.IntSumAggregator.java

License:Apache License

@Override
public void setAggregatedValue(IntWritable value) {
    sum = value.get();
}

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

License:Apache License

@Override
public Long convert(ValueMetaInterface meta, IntWritable obj) throws TypeConversionException {
    return new Long(obj.get());
}