@Test
  public void testBooleanNot() throws HiveException {
    VectorizedRowBatch batch = getBatchThreeBooleanCols();
    NotCol expr = new NotCol(0, 2);
    LongColumnVector outCol = (LongColumnVector) batch.cols[2];
    expr.evaluate(batch);

    // Case with nulls
    Assert.assertFalse(outCol.isRepeating);
    Assert.assertEquals(1, outCol.vector[0]);
    Assert.assertFalse(outCol.isNull[0]);
    Assert.assertEquals(0, outCol.vector[2]);
    Assert.assertFalse(outCol.isNull[0]);
    Assert.assertTrue(outCol.isNull[4]);

    // No nulls case
    batch.cols[0].noNulls = true;
    expr.evaluate(batch);
    Assert.assertFalse(outCol.isRepeating);
    Assert.assertEquals(1, outCol.vector[0]);
    Assert.assertEquals(0, outCol.vector[2]);

    // isRepeating, and there are nulls
    batch = getBatchThreeBooleanCols();
    outCol = (LongColumnVector) batch.cols[2];
    batch.cols[0].isRepeating = true;
    batch.cols[0].isNull[0] = true;
    expr.evaluate(batch);
    Assert.assertTrue(outCol.isRepeating);
    Assert.assertTrue(outCol.isNull[0]);

    // isRepeating, and no nulls
    batch = getBatchThreeBooleanCols();
    outCol = (LongColumnVector) batch.cols[2];
    batch.cols[0].isRepeating = true;
    batch.cols[0].noNulls = true;
    expr.evaluate(batch);
    Assert.assertTrue(outCol.isRepeating);
    Assert.assertTrue(outCol.noNulls);
    Assert.assertEquals(1, outCol.vector[0]);
  }
Get a batch with three boolean (long) columns.
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/expressions/TestVectorLogicalExpressions.java