@Test
  public void testLongInExpr() throws HiveException {

    // check basic operation
    VectorizedRowBatch b = TestVectorMathFunctions.getVectorizedRowBatchLongInLongOut();
    LongColumnVector outV = (LongColumnVector) b.cols[1];
    long[] inVals = new long[2];
    inVals[0] = 0;
    inVals[1] = -2;
    LongColumnInList expr = new LongColumnInList(0, 1);
    expr.setInListValues(inVals);
    expr.evaluate(b);
    assertEquals(1, outV.vector[0]);
    assertEquals(0, outV.vector[1]);

    // check null handling
    b.cols[0].noNulls = false;
    b.cols[0].isNull[0] = true;
    expr.evaluate(b);
    assertEquals(true, !outV.noNulls && outV.isNull[0]);
    assertEquals(0, outV.vector[1]);

    // check isRepeating handling
    b = TestVectorMathFunctions.getVectorizedRowBatchLongInLongOut();
    outV = (LongColumnVector) b.cols[1];
    b.cols[0].isRepeating = true;
    expr.evaluate(b);
    assertEquals(true, outV.isRepeating);
    assertEquals(1, outV.vector[0]);
  }
Get a batch with three boolean (long) columns.
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/expressions/TestVectorLogicalExpressions.java