final Class<?> parameterType = recordProperty.getParameterTypes()[i]; if (boolean.class.equals(parameterType)) { values[i] = deserializer.getBoolean(); } else if (parameterType.equals(Boolean.class)) { values[i] = deserializer.getBoolean(); } else if (byte.class.equals(parameterType)) { values[i] = deserializer.getByte();
final Class<?> parameterType = recordProperty.getParameterTypes()[i]; if (boolean.class.equals(parameterType)) { values[i] = deserializer.getBoolean(); } else if (parameterType.equals(Boolean.class)) { values[i] = deserializer.getBoolean(); } else if (byte.class.equals(parameterType)) { values[i] = deserializer.getByte();
/** * @param deserializer * The deserializer to use */ public KiekerMetadataRecord(final IValueDeserializer deserializer) { this.version = deserializer.getString(); this.controllerName = deserializer.getString(); this.hostname = deserializer.getString(); this.experimentId = deserializer.getInt(); this.debugMode = deserializer.getBoolean(); this.timeOffset = deserializer.getLong(); this.timeUnit = deserializer.getString(); this.numberOfRecords = deserializer.getLong(); }
/** * @param deserializer * The deserializer to use * @throws RecordInstantiationException * when the record could not be deserialized */ public KiekerMetadataRecord(final IValueDeserializer deserializer) throws RecordInstantiationException { this.version = deserializer.getString(); this.controllerName = deserializer.getString(); this.hostname = deserializer.getString(); this.experimentId = deserializer.getInt(); this.debugMode = deserializer.getBoolean(); this.timeOffset = deserializer.getLong(); this.timeUnit = deserializer.getString(); this.numberOfRecords = deserializer.getLong(); }