本文整理了Java中org.h2.value.Value.getFloat()
方法的一些代码示例,展示了Value.getFloat()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Value.getFloat()
方法的具体详情如下:
包路径:org.h2.value.Value
类名称:Value
方法名:getFloat
暂无
代码示例来源:origin: apache/ignite
/**
* @param val Value.
*/
public GridH2Float(Value val) {
assert val.getType() == Value.FLOAT : val.getType();
x = val.getFloat();
}
代码示例来源:origin: com.h2database/h2
/**
* Returns the value of the specified column as a float.
*
* @param columnIndex (1,2,...)
* @return the value
* @throws SQLException if the column is not found or if the result set is
* closed
*/
@Override
public float getFloat(int columnIndex) throws SQLException {
try {
debugCodeCall("getFloat", columnIndex);
return get(columnIndex).getFloat();
} catch (Exception e) {
throw logAndConvert(e);
}
}
代码示例来源:origin: com.h2database/h2
/**
* Returns the value of the specified column as a float.
*
* @param columnLabel the column label
* @return the value
* @throws SQLException if the column is not found or if the result set is
* closed
*/
@Override
public float getFloat(String columnLabel) throws SQLException {
try {
debugCodeCall("getFloat", columnLabel);
return get(columnLabel).getFloat();
} catch (Exception e) {
throw logAndConvert(e);
}
}
代码示例来源:origin: com.h2database/h2
return type.cast(value.getLong());
} else if (type == Float.class) {
return type.cast(value.getFloat());
} else if (type == Double.class) {
return type.cast(value.getDouble());
代码示例来源:origin: apache/ignite
float float2 = v.getFloat();
代码示例来源:origin: com.h2database/h2
float x = v.getFloat();
if (x == 1.0f) {
buff.put((byte) (FLOAT_0_1 + 1));
代码示例来源:origin: apache/ignite
PageUtils.putInt(pageAddr, off + 1, Float.floatToIntBits(val.getFloat()));
return size + 1;
代码示例来源:origin: org.apache.ignite/ignite-indexing
/**
* @param val Value.
*/
public GridH2Float(Value val) {
assert val.getType() == Value.FLOAT : val.getType();
x = val.getFloat();
}
代码示例来源:origin: com.h2database/com.springsource.org.h2
/**
* Returns the value of the specified column as a float.
*
* @param columnIndex (1,2,...)
* @return the value
* @throws SQLException if the column is not found or if the result set is
* closed
*/
public float getFloat(int columnIndex) throws SQLException {
try {
debugCodeCall("getFloat", columnIndex);
return get(columnIndex).getFloat();
} catch (Throwable e) {
throw logAndConvert(e);
}
}
代码示例来源:origin: org.wowtools/h2
/**
* Returns the value of the specified column as a float.
*
* @param columnLabel the column label
* @return the value
* @throws SQLException if the column is not found or if the result set is
* closed
*/
@Override
public float getFloat(String columnLabel) throws SQLException {
try {
debugCodeCall("getFloat", columnLabel);
return get(columnLabel).getFloat();
} catch (Exception e) {
throw logAndConvert(e);
}
}
代码示例来源:origin: com.h2database/com.springsource.org.h2
/**
* Returns the value of the specified column as a float.
*
* @param columnName the name of the column label
* @return the value
* @throws SQLException if the column is not found or if the result set is
* closed
*/
public float getFloat(String columnName) throws SQLException {
try {
debugCodeCall("getFloat", columnName);
return get(columnName).getFloat();
} catch (Throwable e) {
throw logAndConvert(e);
}
}
代码示例来源:origin: com.eventsourcing/h2
/**
* Returns the value of the specified column as a float.
*
* @param columnIndex (1,2,...)
* @return the value
* @throws SQLException if the column is not found or if the result set is
* closed
*/
@Override
public float getFloat(int columnIndex) throws SQLException {
try {
debugCodeCall("getFloat", columnIndex);
return get(columnIndex).getFloat();
} catch (Exception e) {
throw logAndConvert(e);
}
}
代码示例来源:origin: com.eventsourcing/h2
/**
* Returns the value of the specified column as a float.
*
* @param columnLabel the column label
* @return the value
* @throws SQLException if the column is not found or if the result set is
* closed
*/
@Override
public float getFloat(String columnLabel) throws SQLException {
try {
debugCodeCall("getFloat", columnLabel);
return get(columnLabel).getFloat();
} catch (Exception e) {
throw logAndConvert(e);
}
}
代码示例来源:origin: org.wowtools/h2
/**
* Returns the value of the specified column as a float.
*
* @param columnIndex (1,2,...)
* @return the value
* @throws SQLException if the column is not found or if the result set is
* closed
*/
@Override
public float getFloat(int columnIndex) throws SQLException {
try {
debugCodeCall("getFloat", columnIndex);
return get(columnIndex).getFloat();
} catch (Exception e) {
throw logAndConvert(e);
}
}
代码示例来源:origin: org.wowtools/h2
return type.cast(value.getLong());
} else if (type == Float.class) {
return type.cast(value.getFloat());
} else if (type == Double.class) {
return type.cast(value.getDouble());
代码示例来源:origin: org.apache.ignite/ignite-indexing
float float2 = v.getFloat();
代码示例来源:origin: com.h2database/com.springsource.org.h2
break;
case Value.FLOAT:
writeFloat(v.getFloat());
break;
case Value.INT:
代码示例来源:origin: com.h2database/com.springsource.org.h2
break;
case Value.FLOAT:
writeInt(Float.floatToIntBits(v.getFloat()));
break;
case Value.BLOB:
代码示例来源:origin: org.apache.ignite/ignite-indexing
PageUtils.putInt(pageAddr, off + 1, Float.floatToIntBits(val.getFloat()));
return size + 1;
代码示例来源:origin: org.wowtools/h2
break;
case Value.FLOAT:
writeFloat(v.getFloat());
break;
case Value.INT:
内容来源于网络,如有侵权,请联系作者删除!