public MicroSeconds deepCopy() { return new MicroSeconds(this); }
public MicroSeconds deepCopy() { return new MicroSeconds(this); }
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 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 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); } }
if (field.type == MICROS_FIELD_DESC.type) { MicroSeconds MICROS; MICROS = new MicroSeconds(); MICROS.read(iprot); return MICROS;
if (field.type == MICROS_FIELD_DESC.type) { MicroSeconds MICROS; MICROS = new MicroSeconds(); MICROS.read(iprot); return MICROS;