Package org.apache.tajo.datum.exception

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


  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

  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

  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

  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

  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

    val = bb.getLong();
  }

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

    return val;
  }

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

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

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

    return (long) val;
  }

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

TOP

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

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.