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

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

本文整理了Java中org.apache.hadoop.hive.metastore.api.Decimal.setScaleIsSet()方法的一些代码示例,展示了Decimal.setScaleIsSet()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Decimal.setScaleIsSet()方法的具体详情如下:
包路径:org.apache.hadoop.hive.metastore.api.Decimal
类名称:Decimal
方法名:setScaleIsSet

Decimal.setScaleIsSet介绍

暂无

代码示例

代码示例来源:origin: apache/hive

@Override
public void clear() {
 setScaleIsSet(false);
 this.scale = 0;
 this.unscaled = null;
}

代码示例来源:origin: apache/hive

public void setScale(short scale) {
 this.scale = scale;
 setScaleIsSet(true);
}

代码示例来源:origin: apache/hive

public Decimal(
 short scale,
 ByteBuffer unscaled)
{
 this();
 this.scale = scale;
 setScaleIsSet(true);
 this.unscaled = org.apache.thrift.TBaseHelper.copyBinary(unscaled);
}

代码示例来源:origin: apache/hive

if (schemeField.type == org.apache.thrift.protocol.TType.I16) {
 struct.scale = iprot.readI16();
 struct.setScaleIsSet(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: org.spark-project.hive/hive-metastore

public Decimal(
 ByteBuffer unscaled,
 short scale)
{
 this();
 this.unscaled = unscaled;
 this.scale = scale;
 setScaleIsSet(true);
}

代码示例来源:origin: org.spark-project.hive/hive-metastore

@Override
public void clear() {
 this.unscaled = null;
 setScaleIsSet(false);
 this.scale = 0;
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

@Override
public void clear() {
 this.unscaled = null;
 setScaleIsSet(false);
 this.scale = 0;
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

public Decimal(
 ByteBuffer unscaled,
 short scale)
{
 this();
 this.unscaled = unscaled;
 this.scale = scale;
 setScaleIsSet(true);
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

public void setScale(short scale) {
 this.scale = scale;
 setScaleIsSet(true);
}

代码示例来源:origin: org.spark-project.hive/hive-metastore

public void setScale(short scale) {
 this.scale = scale;
 setScaleIsSet(true);
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

if (schemeField.type == org.apache.thrift.protocol.TType.I16) {
 struct.scale = iprot.readI16();
 struct.setScaleIsSet(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.I16) {
 struct.scale = iprot.readI16();
 struct.setScaleIsSet(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);
 }
}

相关文章