Tabnine Logo
PageManager.getRecordFile
Code IndexAdd Tabnine to your IDE (free)

How to use
getRecordFile
method
in
jdbm.recman.PageManager

Best Java code snippets using jdbm.recman.PageManager.getRecordFile (Showing top 10 results out of 315)

origin: org.apache.directory.jdbm/apacheds-jdbm1

/**
 * Creates a new instance using the indicated record recordFile and page manager.
 */
FreePhysicalRowIdPageManager( PageManager pageManager ) throws IOException
{
  this.recordFile = pageManager.getRecordFile();
  this.pageManager = pageManager;
}
origin: org.apache.directory.jdbm/apacheds-jdbm2

/**
 * Creates a new instance using the indicated record recordFile and page manager.
 */
FreePhysicalRowIdPageManager( PageManager pageManager ) throws IOException
{
  this.recordFile = pageManager.getRecordFile();
  this.pageManager = pageManager;
}
origin: org.apache.directory.jdbm/apacheds-jdbm2

/**
 *  Creates a new instance using the indicated record file and
 *  page manager.
 */
FreeLogicalRowIdPageManager( PageManager pageManager) throws IOException 
{
  this.pageManager = pageManager;
  this.recordFile = pageManager.getRecordFile();
}

origin: org.apache.directory.jdbm/apacheds-jdbm1

/**
 *  Creates a new instance using the indicated record file and
 *  page manager.
 */
FreeLogicalRowIdPageManager( PageManager pageManager) throws IOException {
  this.pageManager = pageManager;
  this.recordFile = pageManager.getRecordFile();
}
origin: org.apache.directory.jdbm/apacheds-jdbm1

/**
 *  Creates a log rowid manager using the indicated record recordFile and
 *  page manager
 */
LogicalRowIdManager( PageManager pageManager ) throws IOException
{
  this.recordFile = pageManager.getRecordFile();
  this.pageManager = pageManager;
  this.freeman = new FreeLogicalRowIdPageManager( pageManager );
}
origin: org.apache.directory.jdbm/apacheds-jdbm2

/**
 *  Creates a new rowid manager using the indicated record file.
 *  and page manager.
 *  @throws IOException If we had an issue while creating the file
 */
PhysicalRowIdManager( PageManager pageManager ) throws IOException
{
  this.pageManager = pageManager;
  file = pageManager.getRecordFile();
  freePageManager = new FreePhysicalRowIdPageManager( pageManager );
}
 
origin: org.apache.directory.jdbm/apacheds-jdbm1

/**
 *  Creates a new rowid manager using the indicated record file.
 *  and page manager.
 */
PhysicalRowIdManager( PageManager pageManager )
  throws IOException
{
  this.pageManager = pageManager;
  this.file = pageManager.getRecordFile();
  this.freeman = new FreePhysicalRowIdPageManager( pageManager );
}
origin: org.apache.directory.jdbm/apacheds-jdbm2

/**
 *  Creates a log rowid manager using the indicated record recordFile and
 *  page manager
 */
LogicalRowIdManager( PageManager pageManager ) throws IOException
{
  this.recordFile = pageManager.getRecordFile();
  this.pageManager = pageManager;
  this.freeman = new FreeLogicalRowIdPageManager( pageManager );
}
origin: org.apache.directory.jdbm/apacheds-jdbm1

/**
 *  Updates an existing record. Returns the possibly changed
 *  physical rowid.
 */
Location update( Location rowid, byte[] data, int start, int length )
  throws IOException
{
  // fetch the record header
  BlockIo block = pageManager.getRecordFile().get( rowid.getBlock() );
  RecordHeader head = new RecordHeader( block, rowid.getOffset() );
  
  if ( length > head.getAvailableSize() ) {
    // not enough space - we need to copy to a new rowid.
    pageManager.getRecordFile().release( block );
    free( rowid );
    rowid = alloc( length );
  } else {
    pageManager.getRecordFile().release( block );
  }
  // 'nuff space, write it in and return the rowid.
  write( rowid, data, start, length );
  return rowid;
}
origin: org.apache.directory.jdbm/apacheds-jdbm2

/**
 *  Updates an existing record. Returns the possibly changed
 *  physical rowid.
 */
Location update( Location rowid, byte[] data, int start, int length ) throws IOException
{
  // fetch the record header
  BlockIo block = pageManager.getRecordFile().get( rowid.getBlock() );
  RecordHeader head = new RecordHeader( block, rowid.getOffset() );
  
  if ( length > head.getAvailableSize() ) 
  {
    // not enough space - we need to copy to a new rowid.
    pageManager.getRecordFile().release( block );
    free( rowid );
    rowid = alloc( length );
  } 
  else 
  {
    pageManager.getRecordFile().release( block );
  }
  // 'nuff space, write it in and return the rowid.
  write( rowid, data, start, length );
  
  return rowid;
}
 
jdbm.recmanPageManagergetRecordFile

Popular methods of PageManager

  • <init>
    Creates a new page manager using the indicated record file.
  • allocate
    Allocates a page of the indicated type. Returns recid of the page.
  • close
    Closes the page manager. This flushes the page manager and releases the lock on the header.
  • commit
    Commit all pending (in-memory) data by flushing the page manager. This forces a flush of all outstan
  • free
    Frees a page of the indicated type.
  • getFileHeader
    Returns the file header.
  • getFirst
    Returns the first page on the indicated list.
  • getLast
    Returns the last page on the indicated list.
  • getNext
    Returns the page following the indicated block
  • getPrev
    Returns the page before the indicated block
  • rollback
    Flushes the page manager. This forces a flush of all outstanding blocks (this it's an implicit Recor
  • rollback

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top plugins for Android Studio
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