Package org.apache.pig.data

Examples of org.apache.pig.data.Datum


  public void exec(Tuple input, DataAtom output) throws IOException {
    output.setValue(cbrt(input));
  }
 
  protected double cbrt(Tuple input) throws IOException{
    Datum temp = input.getField(0);
    double retVal;
    if(!(temp instanceof DataAtom)){
      throw new IOException("invalid input format. ");
    }
    else{
View Full Code Here


  public void exec(Tuple input, DataAtom output) throws IOException {
    output.setValue(rint(input));
  }
 
  protected double rint(Tuple input) throws IOException{
    Datum temp = input.getField(0);
    double retVal;
    if(!(temp instanceof DataAtom)){
      throw new IOException("invalid input format. ");
    }
    else{
View Full Code Here

  public void exec(Tuple input, DataAtom output) throws IOException {
    output.setValue(sqrt(input));
  }
 
  protected double sqrt(Tuple input) throws IOException{
    Datum temp = input.getField(0);
    double retVal;
    if(!(temp instanceof DataAtom)){
      throw new IOException("invalid input format. ");
    }
    else{
View Full Code Here

  public void exec(Tuple input, DataAtom output) throws IOException {
    output.setValue(signum(input));
  }
 
  protected double signum(Tuple input) throws IOException{
    Datum temp = input.getField(0);
    double retVal;
    if(!(temp instanceof DataAtom)){
      throw new IOException("invalid input format. ");
    }
    else{
View Full Code Here

  public void exec(Tuple input, DataAtom output) throws IOException {
    output.setValue(sinh(input));
  }
 
  protected double sinh(Tuple input) throws IOException{
    Datum temp = input.getField(0);
    double retVal;
    if(!(temp instanceof DataAtom)){
      throw new IOException("invalid input format. ");
    }
    else{
View Full Code Here

  public void exec(Tuple input, DataAtom output) throws IOException {
    output.setValue(getExp(input));
  }
 
  protected double getExp(Tuple input) throws IOException{
    Datum temp = input.getField(0);
    double retVal;
    if(!(temp instanceof DataAtom)){
      throw new IOException("invalid input format. ");
    }
    else{
View Full Code Here

  public void exec(Tuple input, DataAtom output) throws IOException {
    output.setValue(log10(input));
  }
 
  protected double log10(Tuple input) throws IOException{
    Datum temp = input.getField(0);
    double retVal;
    if(!(temp instanceof DataAtom)){
      throw new IOException("invalid input format. ");
    }
    else{
View Full Code Here

  public void exec(Tuple input, DataAtom output) throws IOException {
    output.setValue(round(input));
  }
 
  protected double round(Tuple input) throws IOException{
    Datum temp = input.getField(0);
    double retVal;
    if(!(temp instanceof DataAtom)){
      throw new IOException("invalid input format. ");
    }
    else{
View Full Code Here

  public void exec(Tuple input, DataAtom output) throws IOException {
    output.setValue(nextUp(input));
  }
 
  protected double nextUp(Tuple input) throws IOException{
    Datum temp = input.getField(0);
    double retVal;
    if(!(temp instanceof DataAtom)){
      throw new IOException("invalid input format. ");
    }
    else{
View Full Code Here

  public void exec(Tuple input, DataAtom output) throws IOException {
    output.setValue(cosh(input));
  }
 
  protected double cosh(Tuple input) throws IOException{
    Datum temp = input.getField(0);
    double retVal;
    if(!(temp instanceof DataAtom)){
      throw new IOException("invalid input format. ");
    }
    else{
View Full Code Here

TOP

Related Classes of org.apache.pig.data.Datum

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.