Package com.antlersoft.odb.diralloc

Examples of com.antlersoft.odb.diralloc.DirectoryAllocator


  @Override
    protected IDBSource internalOpen(File location) throws Exception
    {
        createCount=0;
        _session=new IndexObjectDB( new DirectoryAllocator( location,
            new CFactory(), isUseMapped()));
        _session.redefineIndex( DBArgument.ARGUMENT_TYPE_INDEX, DBArgument.class,
            new DBArgument.ArgumentTypeKeyGenerator(), false, false, TYPEKEY_INDEX_PROPS);
        _session.redefineIndex( DBCall.CALL_TARGET, DBCall.class,
            new DBReference.ReferenceTargetGenerator(), false, false, TYPEKEY_INDEX_PROPS);
View Full Code Here


     * @param args The first argument should be the database directory
     */
    public static void main( String[] args)
    throws Exception
    {
      DirectoryAllocator store=new DirectoryAllocator( new File( args[0]),
                new CFactory());
      store.logAllStatistics();
    }
View Full Code Here

     * @param args The first argument should be the database directory
     */
    public static void validate( String[] args)
    throws Exception
    {
      DirectoryAllocator store=new DirectoryAllocator( new File( args[0]),
                new CFactory());
      store.validateIndex(null, true);
    }
View Full Code Here

  private SourceFile m_current_file;
  private int m_line;

  public CxxIndexObjectDB( String directory_name)
  {
    m_session=new IndexObjectDB( new DirectoryAllocator(
          new File( directory_name), new CFactory()));
    try
    {
      m_session.defineIndex( TranslationUnit.TRANSLATION_UNIT_NAME_INDEX,
                   TranslationUnit.class,
View Full Code Here

  /**
   * Create interface to ILDB stored in a directory
   * @param db_directory Directory that contains the DirAlloc files for the database
   */
  public ILDB(File db_directory, boolean useMapped) {
    super(new DirectoryAllocator(
          db_directory, new CFactory(), useMapped));
    // Create indices for the classes
    try
    {
      defineIndex( DBAssembly.ASSEMBLY_NAME_INDEX,
View Full Code Here

     * @param args The first argument should be the database directory
     */
    public static void validate( String[] args)
    throws Exception
    {
      DirectoryAllocator store=new DirectoryAllocator( new File( args[0]),
                new CFactory());
      store.validateIndex(null, true);
     }
View Full Code Here

     * @param args The first argument should be the database directory
     */
    public static void main( String[] args)
    throws Exception
    {
      DirectoryAllocator store=new DirectoryAllocator( new File( args[0]),
                new CFactory());
      store.logAllStatistics();
     }
View Full Code Here

TOP

Related Classes of com.antlersoft.odb.diralloc.DirectoryAllocator

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.