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

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

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

Date.write介绍

暂无

代码示例

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

private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
 try {
  write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}

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

if (struct.isSetLowValue()) {
 oprot.writeFieldBegin(LOW_VALUE_FIELD_DESC);
 struct.lowValue.write(oprot);
 oprot.writeFieldEnd();
if (struct.isSetHighValue()) {
 oprot.writeFieldBegin(HIGH_VALUE_FIELD_DESC);
 struct.highValue.write(oprot);
 oprot.writeFieldEnd();

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

@Override
public void write(org.apache.thrift.protocol.TProtocol prot, DateColumnStatsData struct) throws org.apache.thrift.TException {
 TTupleProtocol oprot = (TTupleProtocol) prot;
 oprot.writeI64(struct.numNulls);
 oprot.writeI64(struct.numDVs);
 BitSet optionals = new BitSet();
 if (struct.isSetLowValue()) {
  optionals.set(0);
 }
 if (struct.isSetHighValue()) {
  optionals.set(1);
 }
 if (struct.isSetBitVectors()) {
  optionals.set(2);
 }
 oprot.writeBitSet(optionals, 3);
 if (struct.isSetLowValue()) {
  struct.lowValue.write(oprot);
 }
 if (struct.isSetHighValue()) {
  struct.highValue.write(oprot);
 }
 if (struct.isSetBitVectors()) {
  oprot.writeBinary(struct.bitVectors);
 }
}

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

private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
 try {
  write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}

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

private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
 try {
  write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}

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

public void write(org.apache.thrift.protocol.TProtocol oprot, DateColumnStatsData struct) throws org.apache.thrift.TException {
 struct.validate();
 oprot.writeStructBegin(STRUCT_DESC);
 if (struct.lowValue != null) {
  if (struct.isSetLowValue()) {
   oprot.writeFieldBegin(LOW_VALUE_FIELD_DESC);
   struct.lowValue.write(oprot);
   oprot.writeFieldEnd();
  }
 }
 if (struct.highValue != null) {
  if (struct.isSetHighValue()) {
   oprot.writeFieldBegin(HIGH_VALUE_FIELD_DESC);
   struct.highValue.write(oprot);
   oprot.writeFieldEnd();
  }
 }
 oprot.writeFieldBegin(NUM_NULLS_FIELD_DESC);
 oprot.writeI64(struct.numNulls);
 oprot.writeFieldEnd();
 oprot.writeFieldBegin(NUM_DVS_FIELD_DESC);
 oprot.writeI64(struct.numDVs);
 oprot.writeFieldEnd();
 oprot.writeFieldStop();
 oprot.writeStructEnd();
}

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

public void write(org.apache.thrift.protocol.TProtocol oprot, DateColumnStatsData struct) throws org.apache.thrift.TException {
 struct.validate();
 oprot.writeStructBegin(STRUCT_DESC);
 if (struct.lowValue != null) {
  if (struct.isSetLowValue()) {
   oprot.writeFieldBegin(LOW_VALUE_FIELD_DESC);
   struct.lowValue.write(oprot);
   oprot.writeFieldEnd();
  }
 }
 if (struct.highValue != null) {
  if (struct.isSetHighValue()) {
   oprot.writeFieldBegin(HIGH_VALUE_FIELD_DESC);
   struct.highValue.write(oprot);
   oprot.writeFieldEnd();
  }
 }
 oprot.writeFieldBegin(NUM_NULLS_FIELD_DESC);
 oprot.writeI64(struct.numNulls);
 oprot.writeFieldEnd();
 oprot.writeFieldBegin(NUM_DVS_FIELD_DESC);
 oprot.writeI64(struct.numDVs);
 oprot.writeFieldEnd();
 oprot.writeFieldStop();
 oprot.writeStructEnd();
}

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

if (struct.isSetLowValue()) {
 oprot.writeFieldBegin(LOW_VALUE_FIELD_DESC);
 struct.lowValue.write(oprot);
 oprot.writeFieldEnd();
if (struct.isSetHighValue()) {
 oprot.writeFieldBegin(HIGH_VALUE_FIELD_DESC);
 struct.highValue.write(oprot);
 oprot.writeFieldEnd();

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

@Override
public void write(org.apache.thrift.protocol.TProtocol prot, DateColumnStatsData struct) throws org.apache.thrift.TException {
 TTupleProtocol oprot = (TTupleProtocol) prot;
 oprot.writeI64(struct.numNulls);
 oprot.writeI64(struct.numDVs);
 BitSet optionals = new BitSet();
 if (struct.isSetLowValue()) {
  optionals.set(0);
 }
 if (struct.isSetHighValue()) {
  optionals.set(1);
 }
 oprot.writeBitSet(optionals, 2);
 if (struct.isSetLowValue()) {
  struct.lowValue.write(oprot);
 }
 if (struct.isSetHighValue()) {
  struct.highValue.write(oprot);
 }
}

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

@Override
public void write(org.apache.thrift.protocol.TProtocol prot, DateColumnStatsData struct) throws org.apache.thrift.TException {
 TTupleProtocol oprot = (TTupleProtocol) prot;
 oprot.writeI64(struct.numNulls);
 oprot.writeI64(struct.numDVs);
 BitSet optionals = new BitSet();
 if (struct.isSetLowValue()) {
  optionals.set(0);
 }
 if (struct.isSetHighValue()) {
  optionals.set(1);
 }
 oprot.writeBitSet(optionals, 2);
 if (struct.isSetLowValue()) {
  struct.lowValue.write(oprot);
 }
 if (struct.isSetHighValue()) {
  struct.highValue.write(oprot);
 }
}

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

@Override
public void write(org.apache.thrift.protocol.TProtocol prot, DateColumnStatsData struct) throws org.apache.thrift.TException {
 TTupleProtocol oprot = (TTupleProtocol) prot;
 oprot.writeI64(struct.numNulls);
 oprot.writeI64(struct.numDVs);
 BitSet optionals = new BitSet();
 if (struct.isSetLowValue()) {
  optionals.set(0);
 }
 if (struct.isSetHighValue()) {
  optionals.set(1);
 }
 if (struct.isSetBitVectors()) {
  optionals.set(2);
 }
 oprot.writeBitSet(optionals, 3);
 if (struct.isSetLowValue()) {
  struct.lowValue.write(oprot);
 }
 if (struct.isSetHighValue()) {
  struct.highValue.write(oprot);
 }
 if (struct.isSetBitVectors()) {
  oprot.writeBinary(struct.bitVectors);
 }
}

相关文章