Package com.intel.hadoop.graphbuilder.types

Examples of com.intel.hadoop.graphbuilder.types.FloatType


*/
public class FloatParser implements FieldParser<FloatType> {

  @Override
  public FloatType getValue(String text) {
    return new FloatType(Float.valueOf(text));
  }
View Full Code Here


   *
   */
  public final static class IDFfunc implements Functional<FloatType, FloatType> {
    @Override
    public FloatType reduce(FloatType a, FloatType b) {
      return new FloatType(a.get() * (float) Math.log10(numDocs / b.get()));
    }
View Full Code Here

    public void configure(JobConf job) throws Exception {
    }

    @Override
    public FloatType reduce(IntType a, FloatType b) {
      return new FloatType((float) a.get() + b.get());
    }
View Full Code Here

    public void configure(JobConf job) throws Exception {
    }

    @Override
    public FloatType reduce(IntType a, FloatType b) {
      return new FloatType((float) a.get() / b.get());
    }
View Full Code Here

    public void configure(JobConf job) throws Exception {
    }

    @Override
    public FloatType reduce(FloatType a, FloatType b) {
      return new FloatType(b.get() + 1);
    }
View Full Code Here

    }

    @Override
    public FloatType reduce(IntType a, FloatType b) {
      return new FloatType(a.get() + b.get());
    }
View Full Code Here

    public void configure(JobConf job) throws Exception {
    }

    @Override
    public FloatType reduce(IntType a, FloatType b) {
      return new FloatType((float) a.get() / b.get());
    }
View Full Code Here

TOP

Related Classes of com.intel.hadoop.graphbuilder.types.FloatType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.