Package org.apache.crunch

Examples of org.apache.crunch.Union


    @Override
    public Union map(UnionWritable in) {
      int index = in.getIndex();
      Writable w = create(writableClasses.get(index), in.getValue());
      return new Union(index, fns.get(index).map(w));
    }
View Full Code Here


    @Override
    public Union map(UnionWritable in) {
      int index = in.getIndex();
      Writable w = create(writableClasses.get(index), in.getValue());
      return new Union(index, fns.get(index).map(w));
    }
View Full Code Here

    }

    @Override
    public Union map(GenericRecord input) {
      int index = (Integer) input.get(0);
      return new Union(index, fns.get(index).map(input.get(1)));
    }
View Full Code Here

    if (source == null) {
      return null;
    }
    int index = source.getIndex();
    Object copy = elementTypes.get(index).getDetachedValue(source.getValue());
    return new Union(index, copy);
  }
View Full Code Here

    }

    @Override
    public Union map(GenericRecord input) {
      int index = (Integer) input.get(0);
      return new Union(index, fns.get(index).map(input.get(1)));
    }
View Full Code Here

      this.index = index;
    }

    @Override
    public Union map(T input) {
      return new Union(index, input);
    }
View Full Code Here

    @Override
    public Union map(UnionWritable in) {
      int index = in.getIndex();
      Writable w = create(writableClasses.get(index), in.getValue());
      return new Union(index, fns.get(index).map(w));
    }
View Full Code Here

    @Override
    public Union map(UnionWritable in) {
      int index = in.getIndex();
      Writable w = create(writableClasses.get(index), in.getValue());
      return new Union(index, fns.get(index).map(w));
    }
View Full Code Here

TOP

Related Classes of org.apache.crunch.Union

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.