public static ConsumerConfig readConsumerConfig(DataInput dataInput) throws IOException {
long groupId = dataInput.readLong();
int groupSize = dataInput.readInt();
int instanceId = dataInput.readInt();
DequeueStrategy strategy = WritableUtils.readEnum(dataInput, DequeueStrategy.class);
String hashKey = WritableUtils.readString(dataInput);
return new ConsumerConfig(groupId, instanceId, groupSize, strategy, hashKey);
}