Skip to content

Commit 22648a2

Browse files
committed
save point -- read path almost done
1 parent a4e47a8 commit 22648a2

File tree

4 files changed

+226
-122
lines changed

4 files changed

+226
-122
lines changed

fdb-extensions/src/main/java/com/apple/foundationdb/async/hnsw/GreedyResult.java renamed to fdb-extensions/src/main/java/com/apple/foundationdb/async/hnsw/GreedyState.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424

2525
import javax.annotation.Nonnull;
2626

27-
class GreedyResult {
27+
class GreedyState {
2828
private final int layer;
2929
@Nonnull
3030
private final Tuple primaryKey;
3131
private final double distance;
3232

33-
public GreedyResult(final int layer, @Nonnull final Tuple primaryKey, final double distance) {
33+
public GreedyState(final int layer, @Nonnull final Tuple primaryKey, final double distance) {
3434
this.layer = layer;
3535
this.primaryKey = primaryKey;
3636
this.distance = distance;
@@ -49,7 +49,7 @@ public double getDistance() {
4949
return distance;
5050
}
5151

52-
public NodeReferenceWithDistance toElement() {
52+
public NodeReferenceWithDistance toNodeReferenceWithDistance() {
5353
return new NodeReferenceWithDistance(getPrimaryKey(), getDistance());
5454
}
5555
}

0 commit comments

Comments
 (0)