org.apache.hadoop.hive.metastore.api.Decimal.setUnscaledIsSet()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(103)

本文整理了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

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);
 }
}

相关文章