Search in sources :

Example 1 with BufferManagerImpl

use of org.apache.drill.exec.ops.BufferManagerImpl in project drill by apache.

the class TestBsonRecordReader method setUp.

@Before
public void setUp() {
    allocator = new RootAllocator(Long.MAX_VALUE);
    TestOutputMutator mutator = new TestOutputMutator(allocator);
    writer = new VectorContainerWriter(mutator);
    bufferManager = new BufferManagerImpl(allocator);
    bsonReader = new BsonRecordReader(bufferManager.getManagedBuffer(1024), false, false);
}
Also used : RootAllocator(org.apache.drill.exec.memory.RootAllocator) VectorContainerWriter(org.apache.drill.exec.vector.complex.impl.VectorContainerWriter) BufferManagerImpl(org.apache.drill.exec.ops.BufferManagerImpl) TestOutputMutator(org.apache.drill.exec.store.TestOutputMutator) Before(org.junit.Before)

Aggregations

RootAllocator (org.apache.drill.exec.memory.RootAllocator)1 BufferManagerImpl (org.apache.drill.exec.ops.BufferManagerImpl)1 TestOutputMutator (org.apache.drill.exec.store.TestOutputMutator)1 VectorContainerWriter (org.apache.drill.exec.vector.complex.impl.VectorContainerWriter)1 Before (org.junit.Before)1