Package org.apache.pig.impl.logicalLayer.schema

Examples of org.apache.pig.impl.logicalLayer.schema.AtomSchema


    public void exec(Tuple input, DataAtom output) throws IOException {
        output.setValue(input.arity());
    }
    @Override
    public Schema outputSchema(Schema input) {
        return new AtomSchema("arity");
    }
View Full Code Here


    }

    @Override
    public Schema outputSchema(Schema input) {
        TupleSchema schema = new TupleSchema();
        schema.add(new AtomSchema("token"));
        return schema;
    }
View Full Code Here

        return curMax;
    }
    @Override
    public Schema outputSchema(Schema input) {
        return new AtomSchema("max" + count++);
    }
View Full Code Here

        return curMin;
    }
   
    @Override
    public Schema outputSchema(Schema input) {
        return new AtomSchema("min" + count++);
    }
View Full Code Here

        return sum;
    }
    @Override
    public Schema outputSchema(Schema input) {
        return new AtomSchema("sum" + count++);
    }
View Full Code Here

        return sum;
    }

@Override
    public Schema outputSchema(Schema input) {
        return new AtomSchema("count" + count++);
    }
View Full Code Here

        return sum;
    }
   
    @Override
    public Schema outputSchema(Schema input) {
        return new AtomSchema("average");
    }
View Full Code Here

   
  }
 
  @Override
  public Schema outputSchema(Schema input) {
    return new AtomSchema("toRadians_"+input.toString());
  }
View Full Code Here

   
  }
 
  @Override
  public Schema outputSchema(Schema input) {
    return new AtomSchema("cbrt_"+input.toString());
  }
View Full Code Here

   
  }
 
  @Override
  public Schema outputSchema(Schema input) {
    return new AtomSchema("RINT_"+input.toString());
  }
View Full Code Here

TOP

Related Classes of org.apache.pig.impl.logicalLayer.schema.AtomSchema

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.