Package proj.zoie.api.DefaultZoieVersion

Examples of proj.zoie.api.DefaultZoieVersion.DefaultZoieVersionFactory


    oneTest(idxDir, schedule, numTestContent); // test index pick up
    return;
  }
  private void oneTest(File idxDir, String schedule, long numTestContent) throws IOException, InterruptedException
  {
    DefaultZoieVersionFactory defaultZoieVersionFactory = new DefaultZoieVersionFactory();
    HourglassDirectoryManagerFactory<DefaultZoieVersion> factory = new HourglassDirectoryManagerFactory<DefaultZoieVersion>(idxDir, new HourGlassScheduler(HourGlassScheduler.FREQUENCY.MINUTELY, schedule, 100), defaultZoieVersionFactory);
    ZoieConfig<DefaultZoieVersion> zConfig = new ZoieConfig<DefaultZoieVersion>(defaultZoieVersionFactory);
    zConfig.setBatchSize(3);
    zConfig.setBatchDelay(10);
    zConfig.setFreshness(10);
View Full Code Here


    public Exception exception = null;
  }
  public void testThreadDelImpl() throws ZoieException
  {
    File idxDir = getIdxDir();
    DefaultZoieVersionFactory defaultZoieVersionFactory = new DefaultZoieVersionFactory();
    final ZoieSystem<IndexReader,String, DefaultZoieVersion> idxSystem = createZoie(idxDir,true, 100,defaultZoieVersionFactory);
    for(String bname : idxSystem.getStandardMBeanNames())
    {
      registerMBean(idxSystem.getStandardMBean(bname), bname);
    }
View Full Code Here

    Random r = new Random(0);
    for(int i =0; i < datacount; i++)
    {
      testdata[i] = "zoie " + (i%2 == 0?"even ":"odd ") + i;
    }
    DefaultZoieVersionFactory defaultZoieVersionFactory = new DefaultZoieVersionFactory();
    final ZoieSystem<IndexReader,String,DefaultZoieVersion> idxSystem = createZoie(idxDir,true, 2,defaultZoieVersionFactory);
    for(String bname : idxSystem.getStandardMBeanNames())
    {
      registerMBean(idxSystem.getStandardMBean(bname), bname);
    }
View Full Code Here

    }
  }

  public void testIndexWithAnalyzer() throws ZoieException,IOException{
    File idxDir=getIdxDir();
    DefaultZoieVersionFactory defaultZoieVersionFactory = new DefaultZoieVersionFactory();
    ZoieSystem<IndexReader,String,DefaultZoieVersion> idxSystem=createZoie(idxDir,true,20,new WhitespaceAnalyzer(),null,defaultZoieVersionFactory);
    idxSystem.start();

    MemoryStreamDataProvider<String, DefaultZoieVersion> memoryProvider=new MemoryStreamDataProvider<String, DefaultZoieVersion>();
    memoryProvider.setMaxEventsPerMinute(Long.MAX_VALUE);
View Full Code Here

   
  }
 
  public void testRealtime2() throws ZoieException{
    File idxDir=getIdxDir();
    DefaultZoieVersionFactory defaultZoieVersionFactory = new DefaultZoieVersionFactory();
    ZoieSystem<IndexReader,String,DefaultZoieVersion> idxSystem=createZoie(idxDir,true,defaultZoieVersionFactory);
    idxSystem.start();
     
    MemoryStreamDataProvider<String, DefaultZoieVersion> memoryProvider=new MemoryStreamDataProvider<String, DefaultZoieVersion>();
    memoryProvider.setMaxEventsPerMinute(Long.MAX_VALUE);
View Full Code Here

  // hao: test for new zoieVersion
  public void testRealtime() throws ZoieException
  {
    File idxDir=getIdxDir();
    DefaultZoieVersionFactory defaultZoieVersionFactory = new DefaultZoieVersionFactory();
    ZoieSystem<IndexReader,String,DefaultZoieVersion> idxSystem=createZoie(idxDir,true,defaultZoieVersionFactory);
    idxSystem.start();
    String query="zoie";
    QueryParser parser=new QueryParser(Version.LUCENE_CURRENT,"contents",idxSystem.getAnalyzer());
    Query q=null;
View Full Code Here

  }

  private void testDelSetImpl() throws ZoieException
  {
    File idxDir = getIdxDir();
    DefaultZoieVersionFactory defaultZoieVersionFactory = new DefaultZoieVersionFactory();
    final ZoieSystem<IndexReader,String,DefaultZoieVersion> idxSystem = createZoie(idxDir,true, 100,defaultZoieVersionFactory);
    idxSystem.getAdminMBean().setFreshness(50);
    idxSystem.start();
    final String query = "zoie";
    int numThreads = 5;
View Full Code Here

  }

  public void testUpdates() throws ZoieException, ParseException, IOException
  {
    File idxDir = getIdxDir();
    DefaultZoieVersionFactory defaultZoieVersionFactory = new DefaultZoieVersionFactory();
    final ZoieSystem<IndexReader,String,DefaultZoieVersion> idxSystem = createZoie(idxDir,true,defaultZoieVersionFactory);
    idxSystem.start();
    final String query = "zoie";

    MemoryStreamDataProvider<String, DefaultZoieVersion> memoryProvider=new MemoryStreamDataProvider<String, DefaultZoieVersion>();
View Full Code Here

  }

  public void testIndexSignature() throws ZoieException, IOException
  {
    File idxDir=getIdxDir();
    DefaultZoieVersionFactory defaultZoieVersionFactory = new DefaultZoieVersionFactory();
    ZoieSystem<IndexReader,String,DefaultZoieVersion> idxSystem=createZoie(idxDir,true,defaultZoieVersionFactory);
    idxSystem.start();
    DefaultDirectoryManager<DefaultZoieVersion> dirMgr = new DefaultDirectoryManager<DefaultZoieVersion>(idxDir,defaultZoieVersionFactory);
    try
    {
View Full Code Here

  }
 
  public void testDocIDMapperFactory() throws Exception{

    File idxDir=getIdxDir();
    DefaultZoieVersionFactory defaultZoieVersionFactory = new DefaultZoieVersionFactory();
    ZoieSystem<IndexReader,String, DefaultZoieVersion> idxSystem=createZoie(idxDir,true,new InRangeDocIDMapperFactory(0, 1000000),defaultZoieVersionFactory);
    idxSystem.start();
    int numDiskIdx = 0;
    MemoryStreamDataProvider<String, DefaultZoieVersion> memoryProvider=new MemoryStreamDataProvider<String, DefaultZoieVersion>();
    memoryProvider.setMaxEventsPerMinute(Long.MAX_VALUE);
View Full Code Here

TOP

Related Classes of proj.zoie.api.DefaultZoieVersion.DefaultZoieVersionFactory

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.