@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Coordinate)) { return false; } Coordinate that = (Coordinate) o; return _id.equals(that.getId()) && _table.equals(that.getTable()); }
@Override public Iterator<Map<String, Object>> multiGet(List<Coordinate> coordinates, ReadConsistency consistency) { checkNotNull(coordinates, "coordinates"); checkNotNull(consistency, "consistency"); AnnotatedGet multiGet = prepareGetAnnotated(consistency); for (Coordinate coordinate : coordinates) { multiGet.add(coordinate.getTable(), coordinate.getId()); } return Iterators.transform(multiGet.execute(), new Function<AnnotatedContent, Map<String, Object>>() { @Override public Map<String, Object> apply(AnnotatedContent input) { return input.getContent(); } }); }
@Override public Iterator<Map<String, Object>> multiGet(List<Coordinate> coordinates, ReadConsistency consistency) { checkNotNull(coordinates, "coordinates"); checkNotNull(consistency, "consistency"); AnnotatedGet multiGet = prepareGetAnnotated(consistency); for (Coordinate coordinate : coordinates) { multiGet.add(coordinate.getTable(), coordinate.getId()); } return Iterators.transform(multiGet.execute(), new Function<AnnotatedContent, Map<String, Object>>() { @Override public Map<String, Object> apply(AnnotatedContent input) { return input.getContent(); } }); }
annotatedGet.add(coord.getTable(), coord.getId()); } catch (UnknownTableException | UnknownPlacementException e) {
annotatedGet.add(coord.getTable(), coord.getId()); } catch (UnknownTableException | UnknownPlacementException e) {
annotatedGet.add(coord.getTable(), coord.getId()); remaining -= 1; } catch (UnknownTableException | UnknownPlacementException e) {
annotatedGet.add(coord.getTable(), coord.getId()); remaining -= 1; } catch (UnknownTableException | UnknownPlacementException e) {
Table table = _tableDao.get(coord.getTable()); for (AstyanaxStorage storage : ((AstyanaxTable) table).getWriteStorage()) { ByteBuffer rowKey = storage.getRowKey(coord.getId()); out.printf("%s: %s%n", coord, ByteBufferUtil.bytesToHex(rowKey));
Table table = _tableDao.get(coord.getTable()); for (AstyanaxStorage storage : ((AstyanaxTable) table).getWriteStorage()) { ByteBuffer rowKey = storage.getRowKey(coord.getId()); out.printf("%s: %s%n", coord, ByteBufferUtil.bytesToHex(rowKey));