Java Code Examples for org.apache.hadoop.hdfs.server.namenode.FSEditLogOp.Writer

The following examples show how to use org.apache.hadoop.hdfs.server.namenode.FSEditLogOp.Writer. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: hadoop   Source File: BookKeeperEditLogOutputStream.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Construct an edit log output stream which writes to a ledger.

 */
protected BookKeeperEditLogOutputStream(Configuration conf, LedgerHandle lh)
    throws IOException {
  super();

  bufCurrent = new DataOutputBuffer();
  outstandingRequests = new AtomicInteger(0);
  syncLatch = null;
  this.lh = lh;
  this.writer = new Writer(bufCurrent);
  this.transmissionThreshold
    = conf.getInt(BookKeeperJournalManager.BKJM_OUTPUT_BUFFER_SIZE,
                  BookKeeperJournalManager.BKJM_OUTPUT_BUFFER_SIZE_DEFAULT);
}
 
Example 2
Source Project: big-c   Source File: BookKeeperEditLogOutputStream.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Construct an edit log output stream which writes to a ledger.

 */
protected BookKeeperEditLogOutputStream(Configuration conf, LedgerHandle lh)
    throws IOException {
  super();

  bufCurrent = new DataOutputBuffer();
  outstandingRequests = new AtomicInteger(0);
  syncLatch = null;
  this.lh = lh;
  this.writer = new Writer(bufCurrent);
  this.transmissionThreshold
    = conf.getInt(BookKeeperJournalManager.BKJM_OUTPUT_BUFFER_SIZE,
                  BookKeeperJournalManager.BKJM_OUTPUT_BUFFER_SIZE_DEFAULT);
}
 
Example 3
Source Project: hadoop   Source File: EditsDoubleBuffer.java    License: Apache License 2.0 4 votes vote down vote up
public TxnBuffer(int initBufferSize) {
  super(initBufferSize);
  writer = new FSEditLogOp.Writer(this);
  reset();
}
 
Example 4
Source Project: big-c   Source File: EditsDoubleBuffer.java    License: Apache License 2.0 4 votes vote down vote up
public TxnBuffer(int initBufferSize) {
  super(initBufferSize);
  writer = new FSEditLogOp.Writer(this);
  reset();
}
 
Example 5
Source Project: RDFS   Source File: EditsDoubleBuffer.java    License: Apache License 2.0 4 votes vote down vote up
public TxnBuffer(int initBufferSize) {
  super(initBufferSize);
  writer = new FSEditLogOp.Writer(this);
  reset();
}