@Test
  public void testFilterExprAndExpr() throws HiveException {
    VectorizedRowBatch batch1 = getBatchThreeBooleanCols();

    SelectColumnIsTrue expr1 = new SelectColumnIsTrue(0);
    SelectColumnIsFalse expr2 = new SelectColumnIsFalse(1);

    FilterExprAndExpr andExpr = new FilterExprAndExpr();
    andExpr.setChildExpressions(new VectorExpression[] {expr1, expr2});

    andExpr.evaluate(batch1);

    assertEquals(1, batch1.size);

    assertEquals(2, batch1.selected[0]);
  }
Get a batch with three boolean (long) columns.
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/expressions/TestVectorLogicalExpressions.java