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

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

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

origin: org.apache.hadoop/hadoop-hdfs

@Override
public void writeRaw(byte[] bytes, int offset, int length) throws IOException {
 buf.writeRaw(bytes, offset, length);
}
origin: org.apache.hadoop/hadoop-hdfs

/**
 * Write a transaction to the stream. The serialization format is:
 * <ul>
 *   <li>the opcode (byte)</li>
 *   <li>the transaction id (long)</li>
 *   <li>the actual Writables for the transaction</li>
 * </ul>
 * */
@Override
public void writeRaw(byte[] bytes, int offset, int length) throws IOException {
 doubleBuf.writeRaw(bytes, offset, length);
}
origin: io.prestosql.hadoop/hadoop-apache

/**
 * Write a transaction to the stream. The serialization format is:
 * <ul>
 *   <li>the opcode (byte)</li>
 *   <li>the transaction id (long)</li>
 *   <li>the actual Writables for the transaction</li>
 * </ul>
 * */
@Override
public void writeRaw(byte[] bytes, int offset, int length) throws IOException {
 doubleBuf.writeRaw(bytes, offset, length);
}
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * Write a transaction to the stream. The serialization format is:
 * <ul>
 *   <li>the opcode (byte)</li>
 *   <li>the transaction id (long)</li>
 *   <li>the actual Writables for the transaction</li>
 * </ul>
 * */
@Override
public void writeRaw(byte[] bytes, int offset, int length) throws IOException {
 doubleBuf.writeRaw(bytes, offset, length);
}
origin: io.prestosql.hadoop/hadoop-apache

@Override
public void writeRaw(byte[] bytes, int offset, int length) throws IOException {
 buf.writeRaw(bytes, offset, length);
}
origin: ch.cern.hadoop/hadoop-hdfs

@Override
public void writeRaw(byte[] bytes, int offset, int length) throws IOException {
 buf.writeRaw(bytes, offset, length);
}
origin: ch.cern.hadoop/hadoop-hdfs

 @Test
 public void shouldFailToCloseWhenUnflushed() throws IOException {
  EditsDoubleBuffer buf = new EditsDoubleBuffer(1024);
  buf.writeRaw(new byte[1], 0, 1);
  try {
   buf.close();
   fail("Did not fail to close with unflushed data");
  } catch (IOException ioe) {
   if (!ioe.toString().contains("still to be flushed")) {
    throw ioe;
   }
  }
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

buf.writeRaw(data, 0, data.length);
assertEquals("Should count new data correctly",
  data.length, buf.countBufferedBytes());
buf.writeRaw(data, 0, data.length);
assertEquals("Should count new data correctly",
  data.length, buf.countBufferedBytes());
org.apache.hadoop.hdfs.server.namenodeEditsDoubleBufferwriteRaw

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
  • getCurrentBuf
  • shouldForceSync
  • writeOp
  • countReadyBytes
  • countReadyTxns
  • getFirstReadyTxId
  • countReadyTxns,
  • getFirstReadyTxId,
  • getReadyBuf

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JFrame (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Vim plugins
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