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

How to use
getFirst
method
in
jdbm.recman.PageManager

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

origin: org.fusesource.jdbm/jdbm

/**
 *  Returns the next value of the cursor
 */
long next() throws IOException {
  if (current == 0)
    current = pageman.getFirst(type);
  else
    current = pageman.getNext(current);
  return current;
} 

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

/**
 * Returns the next value of the cursor.
 */
long next() throws IOException 
{
  if ( current == 0 )
  {
    current = pageman.getFirst( type );
  }
  else
  {
    current = pageman.getNext( current );
  }
  
  return current;
} 

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

/**
 * Returns the next value of the cursor.
 */
long next() throws IOException 
{
  if ( current == 0 )
  {
    current = pageman.getFirst( type );
  }
  else
  {
    current = pageman.getNext( current );
  }
  
  return current;
} 

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

/**
 * @return the next blockId 
 */
long next() throws IOException 
{
  if ( blockId == 0 )
  {
    blockId = pageManager.getFirst( type );
  }
  else
  {
    blockId = pageManager.getNext( blockId );
  }
  
  return blockId;
} 

jdbm.recmanPageManagergetFirst

Javadoc

Returns the first page on the indicated list.

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.
  • 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
  • getRecordFile
  • getRecordFile

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
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