File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed 
internalClusterTest/java/org/elasticsearch/index/store 
main/java/org/elasticsearch/index/codec/vectors/es818 Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1717import  org .apache .lucene .store .IndexOutput ;
1818import  org .apache .lucene .tests .util .LuceneTestCase ;
1919import  org .elasticsearch .common .settings .Settings ;
20+ import  org .elasticsearch .index .codec .vectors .es818 .ES818BinaryQuantizedVectorsFormat ;
2021import  org .elasticsearch .plugins .Plugin ;
2122import  org .elasticsearch .search .vectors .KnnSearchBuilder ;
2223import  org .elasticsearch .search .vectors .VectorData ;
@@ -46,6 +47,7 @@ public class DirectIOIT extends ESIntegTestCase {
4647
4748    @ BeforeClass 
4849    public  static  void  checkSupported () throws  IOException  {
50+         assumeTrue ("test requires direct IO" , ES818BinaryQuantizedVectorsFormat .USE_DIRECT_IO );
4951        Path  path  = createTempDir ("directIOProbe" );
5052        try  (Directory  dir  = open (path ); IndexOutput  out  = dir .createOutput ("out" , IOContext .DEFAULT )) {
5153            out .writeString ("test" );
Original file line number Diff line number Diff line change 8787 */ 
8888public  class  ES818BinaryQuantizedVectorsFormat  extends  FlatVectorsFormat  {
8989
90-     static  final  boolean  USE_DIRECT_IO  = Boolean .parseBoolean (System .getProperty ("vector.rescoring.directio" , "false" ));
90+     public   static  final  boolean  USE_DIRECT_IO  = Boolean .parseBoolean (System .getProperty ("vector.rescoring.directio" , "false" ));
9191
9292    public  static  final  String  BINARIZED_VECTOR_COMPONENT  = "BVEC" ;
9393    public  static  final  String  NAME  = "ES818BinaryQuantizedVectorsFormat" ;
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments