@@ -1718,37 +1718,4 @@ private void setupVSimTestSetBinaryWithAttribs(byte[] testKey) {
17181718 jedis .vadd (testKey , vector3 , "element3" .getBytes ());
17191719 }
17201720
1721- /**
1722- * Helper method to set up test vector set for binary VSIM by element tests with attributes.
1723- */
1724- private void setupVSimByElementTestSetBinaryWithAttribs (byte [] testKey ) {
1725- // Add test vectors with attributes for element-based similarity
1726- float [] vector1 = { 0.1f , 0.2f , 0.3f };
1727- float [] vector2 = { 0.12f , 0.22f , 0.32f };
1728- float [] vector3 = { 0.9f , 0.8f , 0.7f };
1729-
1730- VAddParams addParams1 = new VAddParams ().setAttr ("type=reference,quality=high" );
1731- jedis .vadd (testKey , vector1 , "reference" .getBytes (), addParams1 );
1732-
1733- VAddParams addParams2 = new VAddParams ().setAttr ("type=similar,quality=medium" );
1734- jedis .vadd (testKey , vector2 , "similar1" .getBytes (), addParams2 );
1735-
1736- VAddParams addParams3 = new VAddParams ().setAttr ("type=different,quality=low" );
1737- jedis .vadd (testKey , vector3 , "different" .getBytes (), addParams3 );
1738- }
1739-
1740- /**
1741- * Helper method to get VSimScoreAttribs for a specific element from binary score map.
1742- */
1743- private VSimScoreAttribs getBinaryScoreAttribsForElement (Map <byte [], VSimScoreAttribs > scoreMap ,
1744- String elementName ) {
1745- byte [] elementBytes = elementName .getBytes ();
1746- for (Map .Entry <byte [], VSimScoreAttribs > entry : scoreMap .entrySet ()) {
1747- if (java .util .Arrays .equals (entry .getKey (), elementBytes )) {
1748- return entry .getValue ();
1749- }
1750- }
1751- return null ;
1752- }
1753-
17541721}
0 commit comments