System.out.println("Name: " + schema.getDefault_name_type());
System.out.println("Value: " + schema.getDefault_value_type());
for (Entry<ByteBuffer, String> type : schema.getName_types().entrySet()) {
Serializer serializer = ComparatorType.valueOf(type.getValue().toUpperCase()).getSerializer();
System.out.println("Name: " + type.getValue() + " = " + serializer.getString(type.getKey()));
}
for (Entry<ByteBuffer, String> value : schema.getValue_types().entrySet()) {
Serializer serializer = StringSerializer.get(); // ComparatorType.valueOf(value.getValue().toUpperCase()).getSerializer();
System.out.println("Type: " + value.getValue() + " = " + ((value.getKey() == null) ? "null" : serializer.getString(value.getKey())));
}
}