Package cleo.search.util

Examples of cleo.search.util.ElementScoreScanner


    elementStore = new MemoryArrayStoreElement<TypeaheadElement>(elementStore);
   
    // Load element scores
    if(elementStoreDir != null && elementScoreDir.exists()) {
      ElementScoreSetter<TypeaheadElement> handler = new ElementScoreSetter<TypeaheadElement>(elementStore);
      ElementScoreScanner scan = new ElementScoreScanner(elementScoreDir);
      scan.scan(handler);
    }
   
    // Create connectionsStore
    int indexSegmentFileSizeMB = 8;
    SegmentFactory indexSegmentFactory = new MemorySegmentFactory();
View Full Code Here


    System.out.printf("Bootstrap %s ...%n", connectionsStoreName);
   
    // Load element scores
    if(scoreDir != null && scoreDir.exists()) {
      ElementScoreSetter<TypeaheadElement> handler = new ElementScoreSetter<TypeaheadElement>(elementStore);
      ElementScoreScanner scan = new ElementScoreScanner(scoreDir);
      scan.scan(handler);
    }
   
    ConnectionsCollector connectionsCollector = new ConnectionsCollector(config.getConnectionsStoreCapacity());
    connectionsCollector.collect(elementStore, config.getMaxKeyLength());
    connectionsCollector.store(connectionsStore);
View Full Code Here

    return new FnvBloomFilterLong(getFilterPrefixLength());
  }
 
  protected ScoreScanner createScoreScanner() {
    File elementScoreFile = new File(getHomeDir(), "element-score.txt");
    return new ElementScoreScanner(elementScoreFile);
  }
View Full Code Here

   
    // create bloomFilter
    BloomFilter<Long> bloomFilter = new FnvBloomFilterLong(config.getFilterPrefixLength());
   
    // create scoreScanner
    ScoreScanner scoreScanner = new ElementScoreScanner(config.getElementScoreFile());
   
    // Create GenericTypeahead
    return new GenericTypeahead<E>(
          config.getName(),
          elementStore,
View Full Code Here

TOP

Related Classes of cleo.search.util.ElementScoreScanner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.