Examples of InvalidCastException


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

  public short asInt2() {
    throw new InvalidCastException(type + " cannot be casted to SHORT type");
  }
  public int asInt4() {
    throw new InvalidCastException(type + " cannot be casted to INT type");
  }
View Full Code Here

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

  public int asInt4() {
    throw new InvalidCastException(type + " cannot be casted to INT type");
  }

  public long asInt8() {
    throw new InvalidCastException(type + " cannot be casted to LONG type");
  }
View Full Code Here

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

  public long asInt8() {
    throw new InvalidCastException(type + " cannot be casted to LONG type");
  }

  public byte [] asByteArray() {
    throw new InvalidCastException(type + " cannot be casted to BYTES type");
  }
View Full Code Here

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

  public byte [] asByteArray() {
    throw new InvalidCastException(type + " cannot be casted to BYTES type");
  }

  public float asFloat4() {
    throw new InvalidCastException(type + " cannot be casted to FLOAT type");
  }
View Full Code Here

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

  public float asFloat4() {
    throw new InvalidCastException(type + " cannot be casted to FLOAT type");
  }

  public double asFloat8() {
    throw new InvalidCastException(type + " cannot be casted to DOUBLE type");
  }
View Full Code Here

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

  public double asFloat8() {
    throw new InvalidCastException(type + " cannot be casted to DOUBLE type");
  }

  public String asChars() {
    throw new InvalidCastException(type + " cannot be casted to STRING type");
  }
View Full Code Here

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

    val = bb.getLong();
  }

  @Override
  public boolean asBool() {
    throw new InvalidCastException();
  }
View Full Code Here

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

    return val;
  }

  @Override
  public byte asByte() {
    throw new InvalidCastException();
  }
View Full Code Here

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

    ByteBuffer bb = ByteBuffer.wrap(bytes);
    this.val = bb.getFloat();
  }

  public boolean asBool() {
    throw new InvalidCastException();
  }
View Full Code Here

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

    return (long) val;
  }

  @Override
  public byte asByte() {
    throw new InvalidCastException();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.