Java 类org.apache.hadoop.hbase.util.ByteBufferArray 实例源码

项目:ditb    文件:ByteBufferIOEngine.java   
/**
 * Construct the ByteBufferIOEngine with the given capacity
 * @param capacity
 * @param direct true if allocate direct buffer
 * @throws IOException
 */
public ByteBufferIOEngine(long capacity, boolean direct)
    throws IOException {
  this.capacity = capacity;
  this.direct = direct;
  bufferArray = new ByteBufferArray(capacity, direct);
}
项目:pbase    文件:ByteBufferIOEngine.java   
/**
 * Construct the ByteBufferIOEngine with the given capacity
 * @param capacity
 * @param direct true if allocate direct buffer
 * @throws IOException
 */
public ByteBufferIOEngine(long capacity, boolean direct)
    throws IOException {
  this.capacity = capacity;
  this.direct = direct;
  bufferArray = new ByteBufferArray(capacity, direct);
}
项目:hbase    文件:ByteBufferIOEngine.java   
/**
 * Construct the ByteBufferIOEngine with the given capacity
 * @param capacity
 * @throws IOException ideally here no exception to be thrown from the allocator
 */
public ByteBufferIOEngine(long capacity)
    throws IOException {
  this.capacity = capacity;
  ByteBufferAllocator allocator = new ByteBufferAllocator() {
    @Override
    public ByteBuffer allocate(long size) throws IOException {
      return ByteBuffer.allocateDirect((int) size);
    }
  };
  bufferArray = new ByteBufferArray(capacity, allocator);
}
项目:HIndex    文件:ByteBufferIOEngine.java   
/**
 * Construct the ByteBufferIOEngine with the given capacity
 * @param capacity
 * @param direct true if allocate direct buffer
 * @throws IOException
 */
public ByteBufferIOEngine(long capacity, boolean direct)
    throws IOException {
  bufferArray = new ByteBufferArray(capacity, direct);
}
项目:PyroDB    文件:ByteBufferIOEngine.java   
/**
 * Construct the ByteBufferIOEngine with the given capacity
 * @param capacity
 * @param direct true if allocate direct buffer
 * @throws IOException
 */
public ByteBufferIOEngine(long capacity, boolean direct)
    throws IOException {
  bufferArray = new ByteBufferArray(capacity, direct);
}
项目:c5    文件:ByteBufferIOEngine.java   
/**
 * Construct the ByteBufferIOEngine with the given capacity
 * @param capacity
 * @param direct true if allocate direct buffer
 * @throws IOException
 */
public ByteBufferIOEngine(long capacity, boolean direct)
    throws IOException {
  bufferArray = new ByteBufferArray(capacity, direct);
}
项目:DominoHBase    文件:ByteBufferIOEngine.java   
/**
 * Construct the ByteBufferIOEngine with the given capacity
 * @param capacity
 * @param direct true if allocate direct buffer
 * @throws IOException
 */
public ByteBufferIOEngine(long capacity, boolean direct)
    throws IOException {
  bufferArray = new ByteBufferArray(capacity, direct);
}