Examples of OrcLazyBoolean


Examples of com.facebook.hive.orc.lazy.OrcLazyBoolean

    case NONE:
      expected = createRandomRow(inputs.intValues, inputs.doubleValues,
          inputs.stringValues, inputs.byteValues, inputs.words, rowNumber);
      break;
    }
    OrcLazyBoolean boolean1 = (OrcLazyBoolean) row.getFieldValue(0);
    if (boolean1.nextIsNull()) {
      assertNull(expected.boolean1);
    } else {
      assertEquals(expected.boolean1.booleanValue(),
          ((BooleanWritable) boolean1.materialize()).get());
    }

    if (((OrcLazyObject) row.getFieldValue(1)).nextIsNull()) {
      assertNull(expected.byte1);
    } else {
View Full Code Here

Examples of com.facebook.hive.orc.lazy.OrcLazyBoolean

      expected = createRandomRow(inputs.intValues, inputs.doubleValues,
          inputs.stringValues, inputs.byteValues, inputs.words, rowNumber);
      break;
    }

    OrcLazyBoolean lazyBoolean1 = (OrcLazyBoolean) row.getFieldValue(0);
    BooleanWritable boolean1 = (BooleanWritable) lazyBoolean1.materialize();
    if (boolean1 == null) {
      assertNull(expected.boolean1);
    } else {
      assertEquals(expected.boolean1.booleanValue(), boolean1.get());
    }
View Full Code Here

Examples of com.facebook.hive.orc.lazy.OrcLazyBoolean

                                             boolean[] included
                                            ) throws IOException {
    OrcProto.Type type = types.get(columnId);
    switch (type.getKind()) {
      case BOOLEAN:
        return new OrcLazyBoolean((LazyBooleanTreeReader)createLazyTreeReader(columnId, types, included));
      case BYTE:
        return new OrcLazyByte((LazyByteTreeReader)createLazyTreeReader(columnId, types, included));
      case DOUBLE:
        return new OrcLazyDouble((LazyDoubleTreeReader)createLazyTreeReader(columnId, types, included));
      case FLOAT:
View Full Code Here

Examples of com.facebook.hive.orc.lazy.OrcLazyBoolean

    // Check that the object read equals what is expected, then copy the object, and make the same
    // check
    OrcLazyObject obj;
    assertEquals(false,
        ((BooleanWritable) ((OrcLazyBoolean) row.getFieldValue(0)).materialize()).get());
    obj = new OrcLazyBoolean((OrcLazyBoolean) row.getFieldValue(0));
    assertEquals(false, ((BooleanWritable) obj.materialize()).get());

    assertEquals(1, ((ByteWritable) ((OrcLazyByte) row.getFieldValue(1)).materialize()).get());
    obj = new OrcLazyByte((OrcLazyByte) row.getFieldValue(1));
    assertEquals(1, ((ByteWritable) obj.materialize()).get());
View Full Code Here

Examples of com.facebook.hive.orc.lazy.OrcLazyBoolean

    case NONE:
      expected = createRandomRow(inputs.intValues, inputs.doubleValues,
          inputs.stringValues, inputs.byteValues, inputs.words, rowNumber);
      break;
    }
    OrcLazyBoolean boolean1 = (OrcLazyBoolean) row.getFieldValue(0);
    if (boolean1.nextIsNull()) {
      assertNull(expected.boolean1);
    } else {
      assertEquals(expected.boolean1.booleanValue(),
          ((BooleanWritable) boolean1.materialize()).get());
    }

    if (((OrcLazyObject) row.getFieldValue(1)).nextIsNull()) {
      assertNull(expected.byte1);
    } else {
View Full Code Here

Examples of com.facebook.hive.orc.lazy.OrcLazyBoolean

      expected = createRandomRow(inputs.intValues, inputs.doubleValues,
          inputs.stringValues, inputs.byteValues, inputs.words, rowNumber);
      break;
    }

    OrcLazyBoolean lazyBoolean1 = (OrcLazyBoolean) row.getFieldValue(0);
    BooleanWritable boolean1 = (BooleanWritable) lazyBoolean1.materialize();
    if (boolean1 == null) {
      assertNull(expected.boolean1);
    } else {
      assertEquals(expected.boolean1.booleanValue(), boolean1.get());
    }
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.