Examples of initBuffer()


Examples of Hexel.rendering.GLObj.initBuffer()

    GLObj obj = Deer.obj;
    if (step - lastHurt < 10){
      obj = Deer.objHurt;
    }
    if (obj.buffer == null){
      obj.initBuffer(gl);
    }
    gl.glPushMatrix();
    gl.glTranslated((float)x+xlen/2, (float)y+ylen/2, (float)z);
    gl.glScaled(.5, .5, .5);
    gl.glRotated(this.dir*180/Math.PI, 0, 0, 1);
View Full Code Here

Examples of org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector.initBuffer()

      // Nothing to do
      return;
    }

    // initialize output vector buffer to receive data
    outV.initBuffer();

    if (inputColVector.noNulls) {
      outV.noNulls = true;
      if (inputColVector.isRepeating) {
        outV.isRepeating = true;
View Full Code Here

Examples of org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector.initBuffer()

    // but have no nulls initially
    longCol.noNulls = true;
    strCol.noNulls = true;
    dblCol.noNulls = true;
    outCol.initBuffer();
    b.size = 2;
    return b;
  }

View Full Code Here

Examples of org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector.initBuffer()

    lv.vector[3] = 1;
    batch.cols[0] = lv;

    // set second argument to IF
    BytesColumnVector v = new BytesColumnVector();
    v.initBuffer();
    setString(v, 0, "arg2_0");
    setString(v, 1, "arg2_1");
    setString(v, 2, "arg2_2");
    setString(v, 3, "arg2_3");
View Full Code Here

Examples of org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector.initBuffer()

    batch.cols[1] = v;

    // set third argument to IF
    v = new BytesColumnVector();
    v.initBuffer();
    setString(v, 0, "arg3_0");
    setString(v, 1, "arg3_1");
    setString(v, 2, "arg3_2");
    setString(v, 3, "arg3_3");
    batch.cols[2] = v;
View Full Code Here

Examples of org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector.initBuffer()

    setString(v, 3, "arg3_3");
    batch.cols[2] = v;

    // set output column
    v = new BytesColumnVector();
    v.initBuffer();
    batch.cols[3] = v;
    batch.size = 4;
    return batch;
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector.initBuffer()

  private void testWriterText(TypeInfo type) throws HiveException {
    Text t1 = new Text("alpha");
    Text t2 = new Text("beta");
    BytesColumnVector bcv = new BytesColumnVector(vectorSize);
    bcv.noNulls = false;
    bcv.initBuffer();
    bcv.setVal(0, t1.getBytes(), 0, t1.getLength());
    bcv.isNull[1] = true;
    bcv.setVal(2, t2.getBytes(), 0, t2.getLength());
    bcv.isNull[3] = true;
    bcv.setVal(4, t1.getBytes(), 0, t1.getLength());
View Full Code Here

Examples of org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector.initBuffer()

  private void testSetterText(TypeInfo type) throws HiveException {
    Text t1 = new Text("alpha");
    Text t2 = new Text("beta");
    BytesColumnVector bcv = new BytesColumnVector(vectorSize);
    bcv.noNulls = false;
    bcv.initBuffer();
    bcv.setVal(0, t1.getBytes(), 0, t1.getLength());
    bcv.isNull[1] = true;
    bcv.setVal(2, t2.getBytes(), 0, t2.getLength());
    bcv.isNull[3] = true;
    bcv.setVal(4, t1.getBytes(), 0, t1.getLength());
View Full Code Here

Examples of org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector.initBuffer()

    VectorizedRowBatch b = new VectorizedRowBatch(2);
    BytesColumnVector bv;
    b.cols[0] = bv = new BytesColumnVector();
    b.cols[1] = new DecimalColumnVector(18, 2);

    bv.initBuffer();

    byte[] x0 = toBytes("1.10");
    byte[] x1 = toBytes("-2.20");
    byte[] x2 = toBytes("99999999999999.0");
View Full Code Here

Examples of org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector.initBuffer()

    inS = new BytesColumnVector();
    outS = new BytesColumnVector();
    inL.vector[0] = 0;
    inL.vector[1] = 255;
    inL.vector[2] = 0;
    inS.initBuffer();
    try {
      inS.setVal(0, "00".getBytes("UTF-8"), 0, 2);
      inS.setVal(1, "3232".getBytes("UTF-8"), 0, 4);
      byte[] bad = "bad data".getBytes("UTF-8");
      inS.setVal(2, bad, 0, bad.length);
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.