/** {@inheritDoc} */ @Override public List<FlatRow> readFlatRowsList(Query request) { return delegate.readFlatRowsList(request.toProto(requestContext)); }
private FlatRow getResults(Get get, String method) throws IOException { try (Timer.Context ignored = metrics.getTimer.time()) { List<FlatRow> list = client.readFlatRowsList(hbaseAdapter.adapt(get)); switch(list.size()) { case 0: return null; case 1: return list.get(0); default: throw new IllegalStateException("Multiple responses found for " + method); } } }
private FlatRow getResults(Get get, String method) throws IOException { try (Timer.Context ignored = metrics.getTimer.time()) { List<FlatRow> list = client.readFlatRowsList(hbaseAdapter.adapt(get)); switch(list.size()) { case 0: return null; case 1: return list.get(0); default: throw new IllegalStateException("Multiple responses found for " + method); } } }