@Override public void serialize(Object o, ObjectInspector oi, TProtocol oprot) throws TException, SerDeException, NoSuchFieldException, IllegalAccessException { DoubleObjectInspector poi = (DoubleObjectInspector) oi; oprot.writeDouble(poi.get(o)); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TDoubleValue struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetValue()) { oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeDouble(struct.value); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, RedirectionRule struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(ACCESS_POINT_ID_FIELD_DESC); oprot.writeI32(struct.accessPointId); oprot.writeFieldEnd(); oprot.writeFieldBegin(RULE_ID_FIELD_DESC); oprot.writeI64(struct.ruleId); oprot.writeFieldEnd(); oprot.writeFieldBegin(INIT_REDIRECT_PROBABILITY_FIELD_DESC); oprot.writeDouble(struct.initRedirectProbability); oprot.writeFieldEnd(); oprot.writeFieldBegin(SESSION_REDIRECT_PROBABILITY_FIELD_DESC); oprot.writeDouble(struct.sessionRedirectProbability); oprot.writeFieldEnd(); oprot.writeFieldBegin(RULE_TTL_FIELD_DESC); oprot.writeI64(struct.ruleTTL); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, MetricWindow struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.metricWindow != null) { oprot.writeFieldBegin(METRIC_WINDOW_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.DOUBLE, struct.metricWindow.size())); for (Map.Entry<Integer, Double> _iter110 : struct.metricWindow.entrySet()) { oprot.writeI32(_iter110.getKey()); oprot.writeDouble(_iter110.getValue()); } oprot.writeMapEnd(); } oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, BinaryColumnStatsData struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(MAX_COL_LEN_FIELD_DESC); oprot.writeI64(struct.maxColLen); oprot.writeFieldEnd(); oprot.writeFieldBegin(AVG_COL_LEN_FIELD_DESC); oprot.writeDouble(struct.avgColLen); oprot.writeFieldEnd(); oprot.writeFieldBegin(NUM_NULLS_FIELD_DESC); oprot.writeI64(struct.numNulls); oprot.writeFieldEnd(); if (struct.bitVectors != null) { if (struct.isSetBitVectors()) { oprot.writeFieldBegin(BIT_VECTORS_FIELD_DESC); oprot.writeBinary(struct.bitVectors); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TDoubleColumn struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.values != null) { oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, struct.values.size())); for (double _iter97 : struct.values) { oprot.writeDouble(_iter97); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.nulls != null) { oprot.writeFieldBegin(NULLS_FIELD_DESC); oprot.writeBinary(struct.nulls); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, StringColumnStatsData struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(MAX_COL_LEN_FIELD_DESC); oprot.writeI64(struct.maxColLen); oprot.writeFieldEnd(); oprot.writeFieldBegin(AVG_COL_LEN_FIELD_DESC); oprot.writeDouble(struct.avgColLen); 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(); if (struct.bitVectors != null) { if (struct.isSetBitVectors()) { oprot.writeFieldBegin(BIT_VECTORS_FIELD_DESC); oprot.writeBinary(struct.bitVectors); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, DoubleColumnStatsData struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.isSetLowValue()) { oprot.writeFieldBegin(LOW_VALUE_FIELD_DESC); oprot.writeDouble(struct.lowValue); oprot.writeFieldEnd(); } if (struct.isSetHighValue()) { oprot.writeFieldBegin(HIGH_VALUE_FIELD_DESC); oprot.writeDouble(struct.highValue); 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(); if (struct.bitVectors != null) { if (struct.isSetBitVectors()) { oprot.writeFieldBegin(BIT_VECTORS_FIELD_DESC); oprot.writeBinary(struct.bitVectors); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TOperationHandle struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.operationId != null) { oprot.writeFieldBegin(OPERATION_ID_FIELD_DESC); struct.operationId.write(oprot); oprot.writeFieldEnd(); } if (struct.operationType != null) { oprot.writeFieldBegin(OPERATION_TYPE_FIELD_DESC); oprot.writeI32(struct.operationType.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldBegin(HAS_RESULT_SET_FIELD_DESC); oprot.writeBool(struct.hasResultSet); oprot.writeFieldEnd(); if (struct.isSetModifiedRowCount()) { oprot.writeFieldBegin(MODIFIED_ROW_COUNT_FIELD_DESC); oprot.writeDouble(struct.modifiedRowCount); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
oprot.writeDouble(struct.allocFraction); oprot.writeFieldEnd();
oprot.writeDouble(struct.allocFraction); oprot.writeFieldEnd();
oprot.writeDouble(struct.doubleValue); oprot.writeFieldEnd(); oprot.writeDouble(struct.m1); oprot.writeFieldEnd(); oprot.writeDouble(struct.m5); oprot.writeFieldEnd(); oprot.writeDouble(struct.m15); oprot.writeFieldEnd(); oprot.writeDouble(struct.mean); oprot.writeFieldEnd(); oprot.writeDouble(struct.p50); oprot.writeFieldEnd(); oprot.writeDouble(struct.p75); oprot.writeFieldEnd(); oprot.writeDouble(struct.p95); oprot.writeFieldEnd(); oprot.writeDouble(struct.p98); oprot.writeFieldEnd(); oprot.writeDouble(struct.p99); oprot.writeFieldEnd();
case DOUBLE_ARG: Double double_arg = (Double)value_; oprot.writeDouble(double_arg); return; default:
case DOUBLE_ARG: Double double_arg = (Double)value_; oprot.writeDouble(double_arg); return; default:
oprot.writeDouble(struct.progressedPercentage); oprot.writeFieldEnd(); if (struct.status != null) {
oprot.writeDouble(this.doubleVal); oprot.writeFieldEnd(); oprot.writeDouble(this.floatVal); oprot.writeFieldEnd();
case DOUBLE_VALUE: Double doubleValue = (Double)value_; oprot.writeDouble(doubleValue); return; case FLAG:
case DOUBLE_VALUE: Double doubleValue = (Double)value_; oprot.writeDouble(doubleValue); return; case FLAG:
oprot.writeFieldEnd(); oprot.writeFieldBegin(DOUBLE_VAL_FIELD_DESC); oprot.writeDouble(struct.doubleVal); oprot.writeFieldEnd(); if (struct.stringVal != null) {
oprot.writeFieldEnd(); oprot.writeFieldBegin(DOUBLE_VAL_FIELD_DESC); oprot.writeDouble(struct.doubleVal); oprot.writeFieldEnd(); if (struct.stringVal != null) {