if(line.toLowerCase().startsWith("get")) {
System.out.println("Enter key:");
line = reader.readLine();
JsonDecoder decoder = new JsonDecoder(keySchema, line);
GenericDatumReader<Object> datumReader = null;
Object key = null;
try {
datumReader = new GenericDatumReader<Object>(keySchema);
key = datumReader.read(null, decoder);
} catch(IOException e) {}
if(key == null) {
System.err.println("Error parsing key ");
continue;
}
System.out.println("Value - " + client.get(key));
} else if(line.toLowerCase().startsWith("put")) {
String keyString = null;
String valueString = null;
System.out.println("Enter key:");
line = reader.readLine();
keyString = line;
System.out.println("Enter value:");
line = reader.readLine();
valueString = line;
JsonDecoder keyDecoder = new JsonDecoder(keySchema, keyString);
JsonDecoder valueDecoder = new JsonDecoder(valueSchema, valueString);
GenericDatumReader<Object> datumReader = null;
Object key = null;
Object value = null;
try {