Examples of asInt2()


Examples of org.apache.tajo.datum.Datum.asInt2()

    TajoDataTypes.Type dataType = schema.getColumn(fieldId - 1).getDataType().getType();

    switch(dataType) {
      case BOOLEAN:  return d.asBool();
      case INT1:
      case INT2: return d.asInt2();
      case INT4: return d.asInt4();
      case INT8: return d.asInt8();
      case TEXT:
      case CHAR:
      case DATE:
View Full Code Here

Examples of org.apache.tajo.datum.Datum.asInt2()

  @Override
  public short getShort(int fieldId) throws SQLException {
    Datum datum = cur.get(fieldId - 1);
    handleNull(datum);
    return datum.asInt2();
  }

  @Override
  public short getShort(String name) throws SQLException {
    Datum datum = cur.get(findColumn(name));
View Full Code Here

Examples of org.apache.tajo.datum.Datum.asInt2()

  @Override
  public short getShort(String name) throws SQLException {
    Datum datum = cur.get(findColumn(name));
    handleNull(datum);
    return datum.asInt2();
  }

  @Override
  public String getString(int fieldId) throws SQLException {
    Datum datum = cur.get(fieldId - 1);
View Full Code Here

Examples of org.apache.tajo.datum.Datum.asInt2()

   */
  @Override
  public short getShort(int fieldId) throws SQLException {
    Datum datum = cur.get(fieldId - 1);
    handleNull(datum);
    return datum.asInt2();
  }

  /*
   * (non-Javadoc)
   *
 
View Full Code Here

Examples of org.apache.tajo.datum.Datum.asInt2()

   */
  @Override
  public short getShort(String name) throws SQLException {
    Datum datum = cur.get(findColumn(name));
    handleNull(datum);
    return datum.asInt2();
  }

  /*
   * (non-Javadoc)
   *
 
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.