本文整理了Java中org.apache.hadoop.hive.metastore.api.Decimal.setUnscaledIsSet()
方法的一些代码示例,展示了Decimal.setUnscaledIsSet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Decimal.setUnscaledIsSet()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.Decimal
类名称:Decimal
方法名:setUnscaledIsSet
暂无
代码示例来源:origin: apache/hive
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.unscaled = iprot.readBinary();
struct.setUnscaledIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
代码示例来源:origin: apache/hive
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Decimal struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
struct.scale = iprot.readI16();
struct.setScaleIsSet(true);
struct.unscaled = iprot.readBinary();
struct.setUnscaledIsSet(true);
}
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.unscaled = iprot.readBinary();
struct.setUnscaledIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
代码示例来源:origin: org.spark-project.hive/hive-metastore
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.unscaled = iprot.readBinary();
struct.setUnscaledIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
代码示例来源:origin: org.spark-project.hive/hive-metastore
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Decimal struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
struct.unscaled = iprot.readBinary();
struct.setUnscaledIsSet(true);
struct.scale = iprot.readI16();
struct.setScaleIsSet(true);
}
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, Decimal struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
struct.unscaled = iprot.readBinary();
struct.setUnscaledIsSet(true);
struct.scale = iprot.readI16();
struct.setScaleIsSet(true);
}
}
内容来源于网络,如有侵权,请联系作者删除!