public MilliSeconds deepCopy() { return new MilliSeconds(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof MilliSeconds) return this.equals((MilliSeconds)that); return false; }
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { scheme(oprot).write(oprot, this); }
@Override protected java.lang.Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException { _Fields setField = _Fields.findByThriftId(fieldID); if (setField != null) { switch (setField) { case MILLIS: MilliSeconds MILLIS; MILLIS = new MilliSeconds(); MILLIS.read(iprot); return MILLIS; case MICROS: MicroSeconds MICROS; MICROS = new MicroSeconds(); MICROS.read(iprot); return MICROS; case NANOS: NanoSeconds NANOS; NANOS = new NanoSeconds(); NANOS.read(iprot); return NANOS; default: throw new java.lang.IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { throw new org.apache.thrift.protocol.TProtocolException("Couldn't find a field with field id " + fieldID); } }
@Override protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { switch (setField_) { case MILLIS: MilliSeconds MILLIS = (MilliSeconds)value_; MILLIS.write(oprot); return; case MICROS: MicroSeconds MICROS = (MicroSeconds)value_; MICROS.write(oprot); return; case NANOS: NanoSeconds NANOS = (NanoSeconds)value_; NANOS.write(oprot); return; default: throw new java.lang.IllegalStateException("Cannot write union with unknown field " + setField_); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, MilliSeconds struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { 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); } }
@Override protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID) throws org.apache.thrift.TException { _Fields setField = _Fields.findByThriftId(fieldID); if (setField != null) { switch (setField) { case MILLIS: MilliSeconds MILLIS; MILLIS = new MilliSeconds(); MILLIS.read(iprot); return MILLIS; case MICROS: MicroSeconds MICROS; MICROS = new MicroSeconds(); MICROS.read(iprot); return MICROS; case NANOS: NanoSeconds NANOS; NANOS = new NanoSeconds(); NANOS.read(iprot); return NANOS; default: throw new IllegalStateException("setField wasn't null, but didn't match any of the case statements!"); } } else { throw new TProtocolException("Couldn't find a field with field id " + fieldID); } }
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); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, MilliSeconds struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldStop(); oprot.writeStructEnd(); }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { 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); } }
if (field.type == MILLIS_FIELD_DESC.type) { MilliSeconds MILLIS; MILLIS = new MilliSeconds(); MILLIS.read(iprot); return MILLIS; } else {
public MilliSeconds deepCopy() { return new MilliSeconds(this); }
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); } }
public void read(org.apache.thrift.protocol.TProtocol iprot, MilliSeconds 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) { default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); // check for required fields of primitive type, which can't be checked in the validate method struct.validate(); }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof MilliSeconds) return this.equals((MilliSeconds)that); return false; }
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { scheme(iprot).read(iprot, this); }
if (field.type == MILLIS_FIELD_DESC.type) { MilliSeconds MILLIS; MILLIS = new MilliSeconds(); MILLIS.read(iprot); return MILLIS; } else {
static org.apache.parquet.format.TimeUnit convertUnit(LogicalTypeAnnotation.TimeUnit unit) { switch (unit) { case MICROS: return org.apache.parquet.format.TimeUnit.MICROS(new MicroSeconds()); case MILLIS: return org.apache.parquet.format.TimeUnit.MILLIS(new MilliSeconds()); case NANOS: return TimeUnit.NANOS(new NanoSeconds()); default: throw new RuntimeException("Unknown time unit " + unit); } }
@Override protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { switch (setField_) { case MILLIS: MilliSeconds MILLIS = (MilliSeconds)value_; MILLIS.write(oprot); return; case MICROS: MicroSeconds MICROS = (MicroSeconds)value_; MICROS.write(oprot); return; case NANOS: NanoSeconds NANOS = (NanoSeconds)value_; NANOS.write(oprot); return; default: throw new IllegalStateException("Cannot write union with unknown field " + setField_); } }