Package org.apache.tajo.datum.exception

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


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


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

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

    case BLOB:
      initFromBytes();
      ((BlobDatum)datum).initFromBytes();
      return DatumFactory.createBool(Arrays.equals(this.val, ((BlobDatum)datum).val));
    default:
      throw new InvalidOperationException(datum.type());
    }
  }
View Full Code Here

    case BLOB:
      initFromBytes();
      ((BlobDatum)datum).initFromBytes();
      return bb.compareTo(((BlobDatum) datum).bb);
    default:
      throw new InvalidOperationException(datum.type());
    }
  }
View Full Code Here

  public BooleanDatum equalsTo(Datum datum) {
    switch(datum.type()) {
      case BOOLEAN: return DatumFactory.createBool(this.val ==
          ((BooleanDatum)datum).val);
      default:
        throw new InvalidOperationException(datum.type());
    }
  }
View Full Code Here

        return 1;
      } else {
        return 0;
      }
    default:
      throw new InvalidOperationException(datum.type());
    }
  }
View Full Code Here

      case FLOAT8:
        return DatumFactory.createBool(val == datum.asFloat8());
      case NULL:
        return DatumFactory.createBool(false);
      default:
        throw new InvalidOperationException();
    }
  }
View Full Code Here

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

    case FLOAT8:
      return DatumFactory.createFloat8(val + datum.asFloat8());
    case NULL:
      return datum;
    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.