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

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

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

Date.read介绍

暂无

代码示例

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

private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
 try {
  // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
  __isset_bitfield = 0;
  read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}

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

if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
 struct.lowValue = new Date();
 struct.lowValue.read(iprot);
 struct.setLowValueIsSet(true);
} else { 
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
 struct.highValue = new Date();
 struct.highValue.read(iprot);
 struct.setHighValueIsSet(true);
} else {

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

@Override
 public void read(org.apache.thrift.protocol.TProtocol prot, DateColumnStatsData struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.numNulls = iprot.readI64();
  struct.setNumNullsIsSet(true);
  struct.numDVs = iprot.readI64();
  struct.setNumDVsIsSet(true);
  BitSet incoming = iprot.readBitSet(3);
  if (incoming.get(0)) {
   struct.lowValue = new Date();
   struct.lowValue.read(iprot);
   struct.setLowValueIsSet(true);
  }
  if (incoming.get(1)) {
   struct.highValue = new Date();
   struct.highValue.read(iprot);
   struct.setHighValueIsSet(true);
  }
  if (incoming.get(2)) {
   struct.bitVectors = iprot.readBinary();
   struct.setBitVectorsIsSet(true);
  }
 }
}

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

private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
 try {
  // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
  __isset_bitfield = 0;
  read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}

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

private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
 try {
  // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
  __isset_bitfield = 0;
  read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}

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

if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
 struct.lowValue = new Date();
 struct.lowValue.read(iprot);
 struct.setLowValueIsSet(true);
} else { 
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
 struct.highValue = new Date();
 struct.highValue.read(iprot);
 struct.setHighValueIsSet(true);
} else {

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

@Override
 public void read(org.apache.thrift.protocol.TProtocol prot, DateColumnStatsData struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.numNulls = iprot.readI64();
  struct.setNumNullsIsSet(true);
  struct.numDVs = iprot.readI64();
  struct.setNumDVsIsSet(true);
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
   struct.lowValue = new Date();
   struct.lowValue.read(iprot);
   struct.setLowValueIsSet(true);
  }
  if (incoming.get(1)) {
   struct.highValue = new Date();
   struct.highValue.read(iprot);
   struct.setHighValueIsSet(true);
  }
 }
}

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

if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
 struct.lowValue = new Date();
 struct.lowValue.read(iprot);
 struct.setLowValueIsSet(true);
} else { 
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
 struct.highValue = new Date();
 struct.highValue.read(iprot);
 struct.setHighValueIsSet(true);
} else {

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

@Override
 public void read(org.apache.thrift.protocol.TProtocol prot, DateColumnStatsData struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.numNulls = iprot.readI64();
  struct.setNumNullsIsSet(true);
  struct.numDVs = iprot.readI64();
  struct.setNumDVsIsSet(true);
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
   struct.lowValue = new Date();
   struct.lowValue.read(iprot);
   struct.setLowValueIsSet(true);
  }
  if (incoming.get(1)) {
   struct.highValue = new Date();
   struct.highValue.read(iprot);
   struct.setHighValueIsSet(true);
  }
 }
}

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
 struct.lowValue = new Date();
 struct.lowValue.read(iprot);
 struct.setLowValueIsSet(true);
} else { 
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
 struct.highValue = new Date();
 struct.highValue.read(iprot);
 struct.setHighValueIsSet(true);
} else {

代码示例来源:origin: org.apache.hive/hive-standalone-metastore

@Override
 public void read(org.apache.thrift.protocol.TProtocol prot, DateColumnStatsData struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.numNulls = iprot.readI64();
  struct.setNumNullsIsSet(true);
  struct.numDVs = iprot.readI64();
  struct.setNumDVsIsSet(true);
  BitSet incoming = iprot.readBitSet(3);
  if (incoming.get(0)) {
   struct.lowValue = new Date();
   struct.lowValue.read(iprot);
   struct.setLowValueIsSet(true);
  }
  if (incoming.get(1)) {
   struct.highValue = new Date();
   struct.highValue.read(iprot);
   struct.setHighValueIsSet(true);
  }
  if (incoming.get(2)) {
   struct.bitVectors = iprot.readBinary();
   struct.setBitVectorsIsSet(true);
  }
 }
}

相关文章