Examples of DirectBufferAllocator


Examples of org.apache.drill.exec.memory.DirectBufferAllocator

public class TestEndianess {
 
  @Test
  public void testLittleEndian(){
    DirectBufferAllocator a = new DirectBufferAllocator();
    ByteBuf b = a.buffer(4);
    b.setInt(0, 35);
    assertEquals((int) b.getByte(0), 35);
    assertEquals((int) b.getByte(1), 0);
    assertEquals((int) b.getByte(2), 0);
    assertEquals((int) b.getByte(3), 0);
View Full Code Here

Examples of org.apache.drill.exec.memory.DirectBufferAllocator

  public void testSameSchemaInSameBatch(@Injectable final FragmentContext context) throws IOException,
      ExecutionSetupException {
    new Expectations() {
      {
        context.getAllocator();
        returns(new DirectBufferAllocator());
      }
    };
    JSONRecordReader jr = new JSONRecordReader(context,
        FileUtils.getResourceAsFile("/scan_json_test_1.json").toURI().toString(),
        FileSystem.getLocal(new Configuration()), null);
View Full Code Here

Examples of org.apache.drill.exec.memory.DirectBufferAllocator

  public void testChangedSchemaInSameBatch(@Injectable final FragmentContext context) throws IOException,
      ExecutionSetupException {
    new Expectations() {
      {
        context.getAllocator();
        returns(new DirectBufferAllocator());
      }
    };

    JSONRecordReader jr = new JSONRecordReader(context,
        FileUtils.getResourceAsFile("/scan_json_test_2.json").toURI().toString(),
View Full Code Here

Examples of org.apache.drill.exec.memory.DirectBufferAllocator

  public void testChangedSchemaInTwoBatches(@Injectable final FragmentContext context) throws IOException,
      ExecutionSetupException {
    new Expectations() {
      {
        context.getAllocator();
        returns(new DirectBufferAllocator());
      }
    };

    JSONRecordReader jr = new JSONRecordReader(context,
        FileUtils.getResourceAsFile("/scan_json_test_2.json").toURI().toString(),
View Full Code Here

Examples of org.apache.drill.exec.memory.DirectBufferAllocator

  @Test
  public void testNestedFieldInSameBatch(@Injectable final FragmentContext context) throws ExecutionSetupException, IOException {
    new Expectations() {
      {
        context.getAllocator();
        returns(new DirectBufferAllocator());
      }
    };

    JSONRecordReader jr = new JSONRecordReader(context,
        FileUtils.getResourceAsFile("/scan_json_test_3.json").toURI().toString(),
View Full Code Here

Examples of org.apache.drill.exec.memory.DirectBufferAllocator

  @Test
  public void testRepeatedFields(@Injectable final FragmentContext context) throws ExecutionSetupException, IOException {
    new Expectations() {
      {
        context.getAllocator();
        returns(new DirectBufferAllocator());
      }
    };

    JSONRecordReader jr = new JSONRecordReader(context,
        FileUtils.getResourceAsFile("/scan_json_test_4.json").toURI().toString(),
View Full Code Here

Examples of org.apache.drill.exec.memory.DirectBufferAllocator

  @Test
  public void testRepeatedMissingFields(@Injectable final FragmentContext context) throws ExecutionSetupException, IOException {
    new Expectations() {
      {
        context.getAllocator();
        returns(new DirectBufferAllocator());
      }
    };

    JSONRecordReader jr = new JSONRecordReader(context,
        FileUtils.getResourceAsFile("/scan_json_test_5.json").toURI().toString(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.