Package proj.zoie.api.DefaultZoieVersion

Examples of proj.zoie.api.DefaultZoieVersion.DefaultZoieVersionFactory


  }

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


  }

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

  }

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

    DirectoryManager dirMgr = new DefaultDirectoryManager(idxDir,defaultZoieVersionFactory);
View Full Code Here

    int numReplicas = Integer.parseInt(args[2]);
    System.out.println("source index: "+srcIndex.getAbsolutePath());
    System.out.println("target index: "+targetIndex.getAbsolutePath());
    System.out.println("num replications: "+numReplicas);
    IndexReader reader = null;
    DirectoryManager srcDirMgr = new DefaultDirectoryManager(srcIndex, new DefaultZoieVersionFactory());
    try
    {
      Directory dir = srcDirMgr.getDirectory();
      reader=IndexReader.open(dir,true);
      System.out.println("source index, numdocs: "+reader.numDocs());
    }
    catch(IOException e)
    {
      e.printStackTrace();
    }
    finally
    {
      if (reader!=null)
      {
        reader.close();
      }
      reader = null;
    }
    DirectoryManager targetDirMgr = new DefaultDirectoryManager(targetIndex, new DefaultZoieVersionFactory());

    Directory targetDir = targetDirMgr.getDirectory(true);
   
    IndexWriter writer = null;
    try
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.