return row.getByte(field);
return row.getByte(field);
break; case INT8: to.addByte(i, from.getByte(i)); break; case DOUBLE:
return result.getLong(jpaColumnName); case INT8: return result.getByte(jpaColumnName); case STRING: return result.getString(jpaColumnName);
/** * Get the specified column's byte * @param columnName name of the column to get data for * @return a byte * @throws IllegalArgumentException if the column doesn't exist, is null, * or if the type doesn't match the column's type */ public byte getByte(String columnName) { return getByte(this.schema.getColumnIndex(columnName)); }
public static long getLong(Type type, RowResult row, int field) { if (type == TimestampType.TIMESTAMP) { return row.getLong(field) / 1000; } else if (type == BigintType.BIGINT) { return row.getLong(field); } else if (type == IntegerType.INTEGER) { return row.getInt(field); } else if (type == SmallintType.SMALLINT) { return row.getShort(field); } else if (type == TinyintType.TINYINT) { return row.getByte(field); } else if (type == RealType.REAL) { return floatToRawIntBits(row.getFloat(field)); } else if (type instanceof DecimalType) { DecimalType dtype = (DecimalType) type; if (dtype.isShort()) { return row.getDecimal(field).unscaledValue().longValue(); } else { throw new IllegalStateException("getLong not supported for long decimal: " + type); } } else { throw new IllegalStateException("getLong not implemented for " + type); } }
return row.getByte(field);
buf.append(value.getByte(i)); break; case INT16:
switch (col.getType()) { case INT8: buf.append(getByte(i)); break; case INT16:
break; case INT8: values.add(result.getByte(columnName)); break; case INT16:
case Common.DataType.INT8_VALUE: ((PojoUtils.SetterByte<T>)settersForThisQueryScan.get(aColumnName)).set( payload,aRow.getByte(aColumnName)); break; case Common.DataType.INT16_VALUE:
return row.getShort(field); } else if (type == TinyintType.TINYINT) { return row.getByte(field); } else if (type == DoubleType.DOUBLE) { return row.getDouble(field);
return row.getByte(field);
break; case INT8: values.setField(i, name, row.getByte(i)); break; case INT16:
break; case INT8: to.addByte(i, from.getByte(i)); break; case DOUBLE:
break; case INT8: to.addByte(i, from.getByte(i)); break; case DOUBLE:
assertTrue(it.hasNext()); RowResult rr = it.next(); assertEquals((byte) 0x01, rr.getByte(0)); assertEquals((short) 2, rr.getShort(1)); assertEquals(3, rr.getInt(2));