Package cleo.search.store

Examples of cleo.search.store.ArrayStoreConnections


   
    Chronos c = new Chronos();
   
    // Create connectionsStore
    int capacity = connSourceIdCount;
    ArrayStoreConnections connectionsStore =
      StoreFactory.createArrayStoreConnections(connectionsStoreDir, capacity, connectionsStoreSegMB);
   
    // Bootstrap connectionsStore
    ArrayStoreConnectionsBootstrap bootstrap =
      new ArrayStoreConnectionsBootstrap(connectionsStore,
                                         connSourceIdStart,
                                         connSourceIdCount,
                                         connTargetIdStart,
                                         connTargetIdCount);
   
    ConnectionsScanner scanner = new ConnectionsScanner(connectionsDir);
    scanner.scan(bootstrap);
    connectionsStore.sync();
   
    System.out.printf("Bootstrap done in %d ms%n", c.tick());
  }
View Full Code Here


   
    Chronos c = new Chronos();
   
    // Create connectionsStore
    int capacity = connSourceIdCount;
    ArrayStoreConnections connectionsStore =
      StoreFactory.createArrayStoreConnections(connectionsStoreDir, capacity, connectionsStoreSegMB);
   
    // Bootstrap connectionsStore
    ArrayStoreConnectionsBootstrap bootstrap =
      new ArrayStoreConnectionsBootstrap(connectionsStore,
                                         connSourceIdStart,
                                         connSourceIdCount,
                                         connTargetIdStart,
                                         connTargetIdCount);
   
    ConnectionsScanner scanner = new ConnectionsScanner(connectionsDir);
    scanner.scan(bootstrap);
    connectionsStore.sync();
   
    System.out.printf("Bootstrap done in %d ms%n", c.tick());
  }
View Full Code Here

    ConnectionFilter connFilter = null;
    if(!source.getConnectionFilter().equals(target.getConnectionFilter())) {
      connFilter = target.getConnectionFilter();
    }
   
    ArrayStoreConnections sourceConnectionsStore = source.getConnectionsStore();
    ArrayStoreConnections targetConnectionsStore = target.getConnectionsStore();
    if(targetConnectionsStore.length() < sourceConnectionsStore.length()) {
      targetConnectionsStore.setConnections(sourceConnectionsStore.length() - 1, (int[])null, targetConnectionsStore.getHWMark());
    }
    copy(sourceConnectionsStore, targetConnectionsStore, connFilter);
  }
View Full Code Here

    return networkTypeahead;
  }
 
  protected VanillaNetworkTypeahead<E> createTypeahead(NetworkTypeaheadConfig<E> config) throws Exception {
    // create connectionsStore
    ArrayStoreConnections connectionsStore = StoreFactory.createArrayStoreConnections(
        config.getConnectionsStoreDir(),
        config.getConnectionsStoreCapacity(),
        config.getConnectionsStoreSegmentMB());
   
    // create elementStore
View Full Code Here

  protected ArrayStoreConnections createConnectionsStore() throws Exception {
    File connectionsStoreDir = new File(getHomeDir(), "connections-store");
    int connectionsStoreSegMB = 32;
    SegmentFactory connectionsStoreSegFactory = new MemorySegmentFactory();
   
    ArrayStoreConnections connectionsStore =
      StoreFactory.createArrayStoreConnections(
          connectionsStoreDir,
          getConnectionsStoreCapacity(),
          connectionsStoreSegFactory,
          connectionsStoreSegMB);
View Full Code Here

TOP

Related Classes of cleo.search.store.ArrayStoreConnections

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.