Examples of ReallyBigRow


Examples of com.facebook.hive.orc.OrcTestUtils.ReallyBigRow

      byte[] buf = new byte[20];
      rand.nextBytes(buf);
      byteValues[i] = new BytesWritable(buf);
    }
    for(int i=0; i < count; ++i) {
      ReallyBigRow bigrow = createRandomRow(intValues, doubleValues, stringValues,
          byteValues, words, i);
      writer.addRow(bigrow);
    }
    writer.close();
    writer = null;
View Full Code Here

Examples of com.facebook.hive.orc.OrcTestUtils.ReallyBigRow

    }
  }

  private void compareRows(OrcStruct row, RandomRowInputs inputs, int rowNumber,
      NumberOfNulls numNulls, boolean testPrimitives) throws Exception {
    ReallyBigRow expected = null ;
    switch (numNulls) {
    case MANY:
    case SOME:
      expected = createRandomRowWithNulls(inputs.intValues, inputs.doubleValues,
          inputs.stringValues, inputs.byteValues, inputs.words, rowNumber, numNulls);
View Full Code Here

Examples of com.facebook.hive.orc.OrcTestUtils.ReallyBigRow

  }

  private void compareRowsWithoutNextIsNull(OrcStruct row, RandomRowInputs inputs, int rowNumber,
      NumberOfNulls numNulls, boolean usingPrimitives) throws Exception {

    ReallyBigRow expected = null;
    switch (numNulls) {
    case MANY:
    case SOME:
      expected = createRandomRowWithNulls(inputs.intValues, inputs.doubleValues,
          inputs.stringValues, inputs.byteValues, inputs.words, rowNumber, numNulls);
View Full Code Here

Examples of com.facebook.hive.orc.OrcTestUtils.ReallyBigRow

      byte[] buf = new byte[20];
      rand.nextBytes(buf);
      byteValues[i] = new BytesWritable(buf);
    }
    for(int i=0; i < count; ++i) {
      ReallyBigRow bigrow = createRandomRowWithNulls(intValues, doubleValues, stringValues,
          byteValues, words, i, numNulls);
      writer.addRow(bigrow);
    }
    writer.close();
    writer = null;
View Full Code Here

Examples of com.facebook.hive.orc.OrcTestUtils.ReallyBigRow

    Short shortWithUniques = i % 10 == 0 ? (short) i :  (short) (intValues[i] % 10);
    Integer intWithUniques = i % 10 == 0 ? (int) (Short.MAX_VALUE + i) :
      (int) (Short.MAX_VALUE + (intValues[i] % 10));
    Long longWithUniques = i % 10 == 0 ? (long) (Integer.MAX_VALUE + i) :
      (long) (Integer.MAX_VALUE + (intValues[i] % 10));
    return new ReallyBigRow((intValues[i] & 1) == 0, (byte) intValues[i],
        (short) intValues[i], (int) (Short.MAX_VALUE + intValues[i]),
        (long) (Integer.MAX_VALUE + intValues[i]), (short) (intValues[i] % 10),
        (int) (Short.MAX_VALUE + (intValues[i] % 10)),
        (long) (Integer.MAX_VALUE + (intValues[i] % 10)),
        shortWithUniques, intWithUniques, longWithUniques, (float) doubleValues[i],
View Full Code Here

Examples of com.facebook.hive.orc.OrcTestUtils.ReallyBigRow

      (intValues[i] % 10 == 0 ? (int) (Short.MAX_VALUE + i) :
        (int) (Short.MAX_VALUE + (intValues[i] % 10)));
    Long longVal3 = intValues[i] % 15 == 0 ^ lotsOfNulls  ? null :
      (intValues[i] % 10 == 0 ? (long) (Integer.MAX_VALUE + i) :
        (long) (Integer.MAX_VALUE + (intValues[i] % 10)));
    return new ReallyBigRow(booleanVal, byteVal, shortVal, intVal, longVal, shortVal2, intVal2,
        longVal2, shortVal3, intVal3, longVal3, floatVal, doubleVal, bytesVal, strVal, strVal2,
        strVal3, middle, list, map);
  }
View Full Code Here

Examples of com.facebook.hive.orc.OrcTestUtils.ReallyBigRow

      byte[] buf = new byte[20];
      rand.nextBytes(buf);
      byteValues[i] = new BytesWritable(buf);
    }
    for(int i=0; i < count; ++i) {
      ReallyBigRow bigrow = createRandomRow(intValues, doubleValues, stringValues,
          byteValues, words, i);
      writer.addRow(bigrow);
    }
    writer.close();
    writer = null;
View Full Code Here

Examples of com.facebook.hive.orc.OrcTestUtils.ReallyBigRow

    }
  }

  private void compareRows(OrcStruct row, RandomRowInputs inputs, int rowNumber,
      NumberOfNulls numNulls, boolean testPrimitives) throws Exception {
    ReallyBigRow expected = null ;
    switch (numNulls) {
    case MANY:
    case SOME:
      expected = createRandomRowWithNulls(inputs.intValues, inputs.doubleValues,
          inputs.stringValues, inputs.byteValues, inputs.words, rowNumber, numNulls);
View Full Code Here

Examples of com.facebook.hive.orc.OrcTestUtils.ReallyBigRow

  }

  private void compareRowsWithoutNextIsNull(OrcStruct row, RandomRowInputs inputs, int rowNumber,
      NumberOfNulls numNulls, boolean usingPrimitives) throws Exception {

    ReallyBigRow expected = null;
    switch (numNulls) {
    case MANY:
    case SOME:
      expected = createRandomRowWithNulls(inputs.intValues, inputs.doubleValues,
          inputs.stringValues, inputs.byteValues, inputs.words, rowNumber, numNulls);
View Full Code Here

Examples of com.facebook.hive.orc.OrcTestUtils.ReallyBigRow

      byte[] buf = new byte[20];
      rand.nextBytes(buf);
      byteValues[i] = new BytesWritable(buf);
    }
    for(int i=0; i < count; ++i) {
      ReallyBigRow bigrow = createRandomRowWithNulls(intValues, doubleValues, stringValues,
          byteValues, words, i, numNulls);
      writer.addRow(bigrow);
    }
    writer.close();
    writer = null;
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.