8283848586878889909192
RiakDatatype element = null; if (response.hasCounterValue()) { element = new RiakCounter(response.getCounterValue()); } else if (response.getSetValueCount() > 0) { element = parseSet(response.getSetValueList()); }
103104105106107108109110111112113
{ RiakDatatype element; switch (response.getType()) { case COUNTER: element = new RiakCounter(response.getValue().getCounterValue()); break; case MAP: element = parseMap(response.getValue().getMapValueList()); break; case SET:
6566676869707172737475
if (coreResponse.hasContext()) { context = new Context(coreResponse.getContext()); } RiakCounter datatype = extractDatatype(element); return new Response(datatype, context); } @Override