【发布时间】:2017-06-02 09:56:59
【问题描述】:
当我尝试通过 scala 程序将一列作为 Double 的 Row 键放入 Hbase 表中时,我在输出文件(Hbase 表)中看到这种 32 位表示。这完全停止了我的工作。
请告知我们如何在 Hbase 表中获得“双”类型字段的正确表示。
与此相关的代码如下:我在这里遗漏了什么吗?
VarValue_Output: Double
p(3).toDouble
final val colVarValueBytes = Bytes.toBytes("VarValue_Output")
put.add(cfDataBytes, colVarValueBytes, Bytes.toBytes(Data.VarValue_Output)
谢谢 Vijaya Kumar Pabothu
【问题讨论】:
标签: hbase