Tabnine Logo
BPlusTreeFactory.makeMem
Code IndexAdd Tabnine to your IDE (free)

How to use
makeMem
method
in
org.apache.jena.dboe.trans.bplustree.BPlusTreeFactory

Best Java code snippets using org.apache.jena.dboe.trans.bplustree.BPlusTreeFactory.makeMem (Showing top 17 results out of 315)

origin: apache/jena

/** (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers */
public static BPlusTree makeMem(String name, int order, int keyLength, int valueLength)
{ return makeMem(name, order, -1, keyLength, valueLength) ; }
origin: apache/jena

/** (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers */
public static BPlusTree makeMem(int order, int keyLength, int valueLength)
{ return makeMem(null, order, keyLength, valueLength) ; }
origin: apache/jena

/** (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers */
public static BPlusTree makeMem(int order, int minDataRecords, int keyLength, int valueLength)
{ return makeMem(null, order, minDataRecords, keyLength, valueLength) ; }
origin: org.apache.jena/jena-dboe-trans-data

/** (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers */
public static BPlusTree makeMem(int order, int keyLength, int valueLength)
{ return makeMem(null, order, keyLength, valueLength) ; }
origin: org.apache.jena/jena-dboe-trans-data

/** (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers */
public static BPlusTree makeMem(String name, int order, int keyLength, int valueLength)
{ return makeMem(name, order, -1, keyLength, valueLength) ; }
origin: org.apache.jena/jena-dboe-trans-data

/** (Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers */
public static BPlusTree makeMem(int order, int minDataRecords, int keyLength, int valueLength)
{ return makeMem(null, order, minDataRecords, keyLength, valueLength) ; }
origin: apache/jena

static BPlusTree createBPTree() { 
  return BPlusTreeFactory.makeMem(2, 2, RecordLib.TestRecordLength, 0) ;
}

origin: org.apache.jena/jena-dboe-trans-data

static BPlusTree createBPTree() { 
  return BPlusTreeFactory.makeMem(2, 2, RecordLib.TestRecordLength, 0) ;
}

origin: apache/jena

@Override
public RangeIndex makeRangeIndex()
{
  BPlusTree bpTree = BPlusTreeFactory.makeMem(order, recordOrder, RecordLib.TestRecordLength, 0) ;
  if ( trackers )
    bpTree = BPlusTreeFactory.addTracking(bpTree) ;
  return bpTree ;
}
origin: org.apache.jena/jena-dboe-trans-data

@Override
public RangeIndex makeRangeIndex()
{
  BPlusTree bpTree = BPlusTreeFactory.makeMem(order, recordOrder, RecordLib.TestRecordLength, 0) ;
  if ( trackers )
    bpTree = BPlusTreeFactory.addTracking(bpTree) ;
  return bpTree ;
}
origin: org.apache.jena/jena-tdb2

public static RangeIndex buildRangeIndex(FileSet mem, RecordFactory factory, IndexParams indexParams) {
  BPlusTree bpt = BPlusTreeFactory.makeMem(5, factory.keyLength(), factory.valueLength()) ;
  bpt.nonTransactional() ;
  return bpt ; 
}
origin: apache/jena

public static RangeIndex buildRangeIndex(FileSet mem, RecordFactory factory, IndexParams indexParams) {
  BPlusTree bpt = BPlusTreeFactory.makeMem(5, factory.keyLength(), factory.valueLength()) ;
  bpt.nonTransactional() ;
  return bpt ; 
}
origin: apache/jena

  @Override
  protected BPlusTree makeRangeIndex(int order, int minRecords) {
    BPlusTree bpt = BPlusTreeFactory.makeMem(order, minRecords, RecordLib.TestRecordLength, 0) ;
    if ( addLogger ) {
      // Put it in but disable it so that it can be enabled
      // in the middle of a complex operation.
      LogCtl.disable(BlockMgr.class) ;
      bpt = BPlusTreeFactory.addLogging(bpt) ;
    }
    if ( addTracker )
      bpt = BPlusTreeFactory.addTracking(bpt) ;
    bpt.nonTransactional() ;
    return bpt ;
  }
}
origin: apache/jena

  @Override
  protected BPlusTree makeIndex(int order, int minRecords) {
    BPlusTree bpt = BPlusTreeFactory.makeMem(order, minRecords, RecordLib.TestRecordLength, 0) ;
    if ( addLogger ) {
      // Put it in but disable it so that it can be enabled
      // in the middle of a complex operation.
      LogCtl.disable(BlockMgr.class) ;
      bpt = BPlusTreeFactory.addLogging(bpt) ;
    }
    if ( addTracker )
      bpt = BPlusTreeFactory.addTracking(bpt) ;
    bpt.nonTransactional() ;
    return bpt ;
  }
}
origin: org.apache.jena/jena-dboe-trans-data

  @Override
  protected BPlusTree makeRangeIndex(int order, int minRecords) {
    BPlusTree bpt = BPlusTreeFactory.makeMem(order, minRecords, RecordLib.TestRecordLength, 0) ;
    if ( addLogger ) {
      // Put it in but disable it so that it can be enabled
      // in the middle of a complex operation.
      LogCtl.disable(BlockMgr.class) ;
      bpt = BPlusTreeFactory.addLogging(bpt) ;
    }
    if ( addTracker )
      bpt = BPlusTreeFactory.addTracking(bpt) ;
    bpt.nonTransactional() ;
    return bpt ;
  }
}
origin: org.apache.jena/jena-dboe-trans-data

  @Override
  protected BPlusTree makeIndex(int order, int minRecords) {
    BPlusTree bpt = BPlusTreeFactory.makeMem(order, minRecords, RecordLib.TestRecordLength, 0) ;
    if ( addLogger ) {
      // Put it in but disable it so that it can be enabled
      // in the middle of a complex operation.
      LogCtl.disable(BlockMgr.class) ;
      bpt = BPlusTreeFactory.addLogging(bpt) ;
    }
    if ( addTracker )
      bpt = BPlusTreeFactory.addTracking(bpt) ;
    bpt.nonTransactional() ;
    return bpt ;
  }
}
origin: apache/jena

  @Override
  protected void runOneTest(int testCount, int order, int size) {
//        //System.err.println("runOneTest("+order+","+size+")") ;
    BPlusTree bpt = BPlusTreeFactory.makeMem(order, Sys.SizeOfInt, 0) ;
    bpt = BPlusTreeFactory.addTracking(bpt) ;
    bpt.nonTransactional() ;
    IndexTestLib.randTest(bpt, 5*size, size, true);
    bpt.close() ;
    
    // Transaction.
//        BPlusTree bpt = BPlusTreeFactory.makeMem(order, SystemLz.SizeOfInt, 0) ;
//        Journal journal = Journal.create(Location.mem()) ;
//        Transactional holder = TransactionalFactory.create(journal, bpt) ;
//        holder.begin(ReadWrite.WRITE);
//        IndexTestLib.randTest(bpt, 5*size, size, true);
//        holder.commit() ;
//        holder.end() ;
  }
}
org.apache.jena.dboe.trans.bplustreeBPlusTreeFactorymakeMem

Javadoc

(Testing mainly) Make an in-memory B+Tree, with copy-in, copy-out block managers

Popular methods of BPlusTreeFactory

  • addTracking
    Debugging
  • createBPTree
    Create a B+Tree using defaults
  • addLogging
    Debugging
  • attach
    Create the in-memory structures to correspond to the supplied block managers for the persistent stor
  • create
    Create the java structures to correspond to the supplied block managers for the persistent storage.
  • createBPTreeByBlockSize
    Create a B+Tree by BlockSize
  • createEmptyBPT
    Allocate root node space. The root is a Node with a Records block.
  • createIfAbsent
    Create if does not exist
  • createNonTxn
    Create the java structures to correspond to the supplied block managers for the persistent storage.
  • makeRecordFactory
  • rebuild
    Reset an existing B+Tree with different storage units. For each, null means "use same as original"
  • rebuild

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • BoxLayout (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now