Skip to content

Commit

Permalink
Upgrade to JVector 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
eolivelli committed Oct 20, 2023
1 parent 88dab94 commit b2627cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion herddb-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<dependency>
<groupId>io.github.jbellis</groupId>
<artifactId>jvector</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>com.indeed</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class JVectorIndexManager extends AbstractIndexManager {
private final AtomicLong newPageId = new AtomicLong(1);


private RandomAccessVectorValuesImpl nodeToVectorMapping = new RandomAccessVectorValuesImpl();
private final RandomAccessVectorValuesImpl nodeToVectorMapping = new RandomAccessVectorValuesImpl();

public JVectorIndexManager(Index index, AbstractTableManager tableManager,
DataStorageManager dataStorageManager, String tableSpaceUUID, CommitLog log,
Expand Down Expand Up @@ -194,7 +194,7 @@ public void recordInserted(Bytes key, Bytes indexKey) throws DataStorageManagerE
int nodeId = nodeToVectorMapping.registerRecord(key, indexKey);
float[] floatArray = indexKey.to_float_array();
LOGGER.log(Level.INFO, "Adding {0} as node id {1}", new Object[]{Arrays.toString(floatArray), nodeId});
currentGraphBuilder.addGraphNode(nodeId, floatArray);
currentGraphBuilder.addGraphNode(nodeId, nodeToVectorMapping);
}

@Override
Expand Down

0 comments on commit b2627cb

Please sign in to comment.