Tabnine Logo
EditsDoubleBuffer.getCurrentBuf
Code IndexAdd Tabnine to your IDE (free)

How to use
getCurrentBuf
method
in
org.apache.hadoop.hdfs.server.namenode.EditsDoubleBuffer

Best Java code snippets using org.apache.hadoop.hdfs.server.namenode.EditsDoubleBuffer.getCurrentBuf (Showing top 5 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

/**
 * Create empty edits logs file.
 */
@Override
public void create(int layoutVersion) throws IOException {
 fc.truncate(0);
 fc.position(0);
 writeHeader(layoutVersion, doubleBuf.getCurrentBuf());
 setReadyToFlush();
 flush();
}
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * Create empty edits logs file.
 */
@Override
public void create(int layoutVersion) throws IOException {
 fc.truncate(0);
 fc.position(0);
 writeHeader(layoutVersion, doubleBuf.getCurrentBuf());
 setReadyToFlush();
 flush();
}
origin: com.facebook.hadoop/hadoop-core

/**
 * Create empty edits logs file.
 */
@Override
public void create() throws IOException {
 fc.truncate(0);
 fc.position(0);
 doubleBuf.getCurrentBuf().writeInt(FSConstants.LAYOUT_VERSION);
 setReadyToFlush();
 flush();
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Create empty edits logs file.
 */
@Override
public void create(int layoutVersion) throws IOException {
 fc.truncate(0);
 fc.position(0);
 writeHeader(layoutVersion, doubleBuf.getCurrentBuf());
 setReadyToFlush();
 flush();
}
origin: com.facebook.hadoop/hadoop-core

/**
 * All data that has been written to the stream so far will be flushed. New
 * data can be still written to the stream while flushing is performed.
 */
@Override
public void setReadyToFlush() throws IOException {
 doubleBuf.getCurrentBuf().write(FSEditLogOpCodes.OP_INVALID.getOpCode()); // insert eof marker
 doubleBuf.setReadyToFlush();
}
org.apache.hadoop.hdfs.server.namenodeEditsDoubleBuffergetCurrentBuf

Popular methods of EditsDoubleBuffer

  • <init>
  • close
  • countBufferedBytes
  • flushTo
    Writes the content of the "ready" buffer to the given output stream, and resets it. Does not swap an
  • isFlushed
  • setReadyToFlush
  • shouldForceSync
  • writeOp
  • writeRaw
  • countReadyBytes
  • countReadyTxns
  • getFirstReadyTxId
  • countReadyTxns,
  • getFirstReadyTxId,
  • getReadyBuf

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top plugins for WebStorm
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