private ClosableIterator<List<CandidateRowForSweeping>> getCandidateRowsForSweeping( String kvsMethodName, TableReference tableRef, CandidateCellForSweepingRequest request) { RowGetter rowGetter = new RowGetter(clientPool, queryRunner, ConsistencyLevel.ALL, tableRef); return new CandidateRowsForSweepingIterator( (iteratorTableRef, cells, maxTimestampExclusive) -> get(kvsMethodName, iteratorTableRef, cells, maxTimestampExclusive), newInstrumentedCqlExecutor(), rowGetter, tableRef, request, config); }
Map<Cell, Value> existingMetadataAtNewName = get(AtlasDbConstants.DEFAULT_METADATA_TABLE, tableRefToNewCell.values().stream() .collect(Collectors.toMap(Functions.identity(), Functions.constant(Long.MAX_VALUE)))); Map<Cell, Value> existingMetadataAtOldName = get(AtlasDbConstants.DEFAULT_METADATA_TABLE, tableRefToOldCell.values().stream() .collect(Collectors.toMap(Functions.identity(), Functions.constant(Long.MAX_VALUE))));
Map<Cell, Value> existingMetadataAtNewName = get(AtlasDbConstants.DEFAULT_METADATA_TABLE, tableRefToNewCell.values().stream() .collect(Collectors.toMap(Functions.identity(), Functions.constant(Long.MAX_VALUE)))); Map<Cell, Value> existingMetadataAtOldName = get(AtlasDbConstants.DEFAULT_METADATA_TABLE, tableRefToOldCell.values().stream() .collect(Collectors.toMap(Functions.identity(), Functions.constant(Long.MAX_VALUE))));
Long firstTs = timestampByCell.values().iterator().next(); if (Iterables.all(timestampByCell.values(), Predicates.equalTo(firstTs))) { return get("get", tableRef, timestampByCell.keySet(), firstTs);
private ClosableIterator<List<CandidateRowForSweeping>> getCandidateRowsForSweeping( String kvsMethodName, TableReference tableRef, CandidateCellForSweepingRequest request) { RowGetter rowGetter = new RowGetter(clientPool, queryRunner, ConsistencyLevel.ALL, tableRef); return new CandidateRowsForSweepingIterator( (iteratorTableRef, cells, maxTimestampExclusive) -> get(kvsMethodName, iteratorTableRef, cells, maxTimestampExclusive), newInstrumentedCqlExecutor(), rowGetter, tableRef, request, config); }
Long firstTs = timestampByCell.values().iterator().next(); if (Iterables.all(timestampByCell.values(), Predicates.equalTo(firstTs))) { return get("get", tableRef, timestampByCell.keySet(), firstTs);