Package org.apache.tajo.datum.exception

Examples of org.apache.tajo.datum.exception.InvalidOperationException


        }
      }
      case NULL_TYPE:
        return -1;
      default:
        throw new InvalidOperationException();
    }
  }
View Full Code Here


    case FLOAT8:
      return DatumFactory.createFloat8(val + datum.asFloat8());
    case NULL_TYPE:
      return datum;
    default:
      throw new InvalidOperationException(datum.type());
    }
  }
View Full Code Here

    case FLOAT8:
      return DatumFactory.createFloat8(val - datum.asFloat8());
    case NULL_TYPE:
      return datum;
    default:
      throw new InvalidOperationException(datum.type());
    }
  }
View Full Code Here

    case FLOAT8:
      return DatumFactory.createFloat8(val * datum.asFloat8());
    case NULL_TYPE:
      return datum;
    default:
      throw new InvalidOperationException();
    }
  }
View Full Code Here

    case FLOAT8:
      return DatumFactory.createFloat8(val / datum.asFloat8());
    case NULL_TYPE:
      return datum;
    default:
      throw new InvalidOperationException(datum.type());
    }
  }
View Full Code Here

      case FLOAT8:
        return DatumFactory.createFloat8(val / datum.asFloat8());
      case NULL_TYPE:
        return datum;
      default:
        throw new InvalidOperationException(datum.type());
    }
  }
View Full Code Here

    if (datum.type() == TajoDataTypes.Type.TIME) {
      return DatumFactory.createBool(time.equals(((TimeDatum) datum).time));
    } else if (datum.isNull()) {
      return datum;
    } else {
      throw new InvalidOperationException();
    }
  }
View Full Code Here

    if (datum.type() == TajoDataTypes.Type.TIME) {
      return time.compareTo(((TimeDatum)datum).time);
    } else if (datum instanceof NullDatum || datum.isNull()) {
      return -1;
    } else {
      throw new InvalidOperationException();
    }
  }
View Full Code Here

    case BIT:
      return DatumFactory.createBool(this.val == (((BitDatum) datum).val));
    case NULL_TYPE:
      return datum;
    default:
      throw new InvalidOperationException(datum.type());
    }
  }
View Full Code Here

        return 0;
      }
    case NULL_TYPE:
      return -1;
    default:
      throw new InvalidOperationException(datum.type());
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.tajo.datum.exception.InvalidOperationException

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.