return floatToRawIntBits(row.getFloat(field));
return row.getFloat(field);
break; case FLOAT: to.addFloat(i, from.getFloat(i)); break; case BOOL:
return result.getDouble(jpaColumnName); case FLOAT: return result.getFloat(jpaColumnName); case INT16: return result.getShort(jpaColumnName);
/** * Get the specified column's float * @param columnName name of the column to get data for * @return a float * @throws IllegalArgumentException if the column doesn't exist, is null, * or if the type doesn't match the column's type */ public float getFloat(String columnName) { return getFloat(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 floatToRawIntBits(row.getFloat(field));
break; case FLOAT: buf.append(value.getFloat(i)); break; case DOUBLE:
break; case FLOAT: buf.append(getFloat(i)); break; case DOUBLE:
break; case FLOAT: values.add(result.getFloat(columnName)); break; case INT8:
case Common.DataType.FLOAT_VALUE: ((PojoUtils.SetterFloat<T>)settersForThisQueryScan.get(aColumnName)).set( payload,aRow.getFloat(aColumnName)); break; case Common.DataType.INT8_VALUE:
return row.getDouble(field); } else if (type == RealType.REAL) { return row.getFloat(field); } else if (type == BooleanType.BOOLEAN) { return row.getBoolean(field);
return row.getFloat(field);
break; case FLOAT: values.setField(i, name, row.getFloat(i)); break; case INT8:
break; case FLOAT: to.addFloat(i, from.getFloat(i)); break; case BOOL:
break; case FLOAT: to.addFloat(i, from.getFloat(i)); break; case BOOL:
.compareTo(rr.getDecimal(9)) == 0); assertTrue(rr.getBoolean(10)); assertEquals(8.8f, rr.getFloat(11), .001f); assertEquals(9.9, rr.getDouble(12), .001);