Package org.apache.drill.exec.cache.infinispan

Examples of org.apache.drill.exec.cache.infinispan.ICache


  public static RemoteServiceSet getLocalServiceSet(){
    return new RemoteServiceSet(new LocalCache(), new LocalClusterCoordinator());
  }

  public static RemoteServiceSet getServiceSetWithFullCache(DrillConfig config, BufferAllocator allocator) throws Exception{
    ICache c = new ICache(config, allocator, true);
    return new RemoteServiceSet(c, new LocalClusterCoordinator());
  }
View Full Code Here


      this.storeProvider = new LocalPStoreProvider(config);
    } else {
      Runtime.getRuntime().addShutdownHook(new ShutdownThread(config));
      this.coord = new ZKClusterCoordinator(config);
      this.storeProvider = new PStoreRegistry(this.coord, config).newPStoreProvider();
      this.cache = new ICache(config, context.getAllocator(), false);
    }
  }
View Full Code Here

  }

  @BeforeClass
  public static void setupCache() throws Exception {
    ALLOCATOR = new TopLevelAllocator();
    ICACHE = new ICache(CONFIG, ALLOCATOR, true);
    ICACHE.run();
  }
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.cache.infinispan.ICache

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.