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

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

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

Date.setDaysSinceEpochIsSet介绍

暂无

代码示例

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

@Override
public void clear() {
 setDaysSinceEpochIsSet(false);
 this.daysSinceEpoch = 0;
}

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

public Date(
 long daysSinceEpoch)
{
 this();
 this.daysSinceEpoch = daysSinceEpoch;
 setDaysSinceEpochIsSet(true);
}

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

public void setDaysSinceEpoch(long daysSinceEpoch) {
 this.daysSinceEpoch = daysSinceEpoch;
 setDaysSinceEpochIsSet(true);
}

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

@Override
 public void read(org.apache.thrift.protocol.TProtocol prot, Date struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.daysSinceEpoch = iprot.readI64();
  struct.setDaysSinceEpochIsSet(true);
 }
}

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

public void read(org.apache.thrift.protocol.TProtocol iprot, Date struct) throws org.apache.thrift.TException {
 org.apache.thrift.protocol.TField schemeField;
 iprot.readStructBegin();
 while (true)
 {
  schemeField = iprot.readFieldBegin();
  if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
   break;
  }
  switch (schemeField.id) {
   case 1: // DAYS_SINCE_EPOCH
    if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
     struct.daysSinceEpoch = iprot.readI64();
     struct.setDaysSinceEpochIsSet(true);
    } else { 
     org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    }
    break;
   default:
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
  }
  iprot.readFieldEnd();
 }
 iprot.readStructEnd();
 struct.validate();
}

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

@Override
public void clear() {
 setDaysSinceEpochIsSet(false);
 this.daysSinceEpoch = 0;
}

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

public Date(
 long daysSinceEpoch)
{
 this();
 this.daysSinceEpoch = daysSinceEpoch;
 setDaysSinceEpochIsSet(true);
}

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

public Date(
 long daysSinceEpoch)
{
 this();
 this.daysSinceEpoch = daysSinceEpoch;
 setDaysSinceEpochIsSet(true);
}

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

@Override
public void clear() {
 setDaysSinceEpochIsSet(false);
 this.daysSinceEpoch = 0;
}

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

public void setDaysSinceEpoch(long daysSinceEpoch) {
 this.daysSinceEpoch = daysSinceEpoch;
 setDaysSinceEpochIsSet(true);
}

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

public void setDaysSinceEpoch(long daysSinceEpoch) {
 this.daysSinceEpoch = daysSinceEpoch;
 setDaysSinceEpochIsSet(true);
}

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

@Override
 public void read(org.apache.thrift.protocol.TProtocol prot, Date struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.daysSinceEpoch = iprot.readI64();
  struct.setDaysSinceEpochIsSet(true);
 }
}

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

@Override
 public void read(org.apache.thrift.protocol.TProtocol prot, Date struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.daysSinceEpoch = iprot.readI64();
  struct.setDaysSinceEpochIsSet(true);
 }
}

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

public void read(org.apache.thrift.protocol.TProtocol iprot, Date struct) throws org.apache.thrift.TException {
 org.apache.thrift.protocol.TField schemeField;
 iprot.readStructBegin();
 while (true)
 {
  schemeField = iprot.readFieldBegin();
  if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
   break;
  }
  switch (schemeField.id) {
   case 1: // DAYS_SINCE_EPOCH
    if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
     struct.daysSinceEpoch = iprot.readI64();
     struct.setDaysSinceEpochIsSet(true);
    } else { 
     org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    }
    break;
   default:
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
  }
  iprot.readFieldEnd();
 }
 iprot.readStructEnd();
 struct.validate();
}

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

public void read(org.apache.thrift.protocol.TProtocol iprot, Date struct) throws org.apache.thrift.TException {
 org.apache.thrift.protocol.TField schemeField;
 iprot.readStructBegin();
 while (true)
 {
  schemeField = iprot.readFieldBegin();
  if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
   break;
  }
  switch (schemeField.id) {
   case 1: // DAYS_SINCE_EPOCH
    if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
     struct.daysSinceEpoch = iprot.readI64();
     struct.setDaysSinceEpochIsSet(true);
    } else { 
     org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
    }
    break;
   default:
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
  }
  iprot.readFieldEnd();
 }
 iprot.readStructEnd();
 struct.validate();
}

相关文章