org.apache.hadoop.hive.ql.io.sarg
Class TestSearchArgumentImpl

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.sarg.TestSearchArgumentImpl

public class TestSearchArgumentImpl
extends Object

These test the SARG implementation. The xml files were generated by setting hive.optimize.index.filter to true and using a custom record reader that prints out the value of hive.io.filter.expr.serialized in createRecordReader. This should be replaced by generating the AST using the API and passing that in. In each case, the corresponding part of the where clause is in the comment above the blob.


Constructor Summary
TestSearchArgumentImpl()
           
 
Method Summary
static PredicateLeaf createPredicateLeaf(PredicateLeaf.Operator operator, PredicateLeaf.Type type, String columnName, Object literal, List<Object> literalList)
          Create a predicate leaf.
 void testBuilder()
           
 void testCNF()
           
 void testExpression1()
           
 void testExpression10()
           
 void testExpression2()
           
 void testExpression3()
           
 void testExpression4()
           
 void testExpression5()
           
 void testExpression7()
           
 void testExpression8()
           
 void testExpression9()
           
 void testFlatten()
           
 void testNotPushdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSearchArgumentImpl

public TestSearchArgumentImpl()
Method Detail

createPredicateLeaf

public static PredicateLeaf createPredicateLeaf(PredicateLeaf.Operator operator,
                                                PredicateLeaf.Type type,
                                                String columnName,
                                                Object literal,
                                                List<Object> literalList)
Create a predicate leaf. This is used by another test.


testNotPushdown

public void testNotPushdown()
                     throws Exception
Throws:
Exception

testFlatten

public void testFlatten()
                 throws Exception
Throws:
Exception

testCNF

public void testCNF()
             throws Exception
Throws:
Exception

testExpression1

public void testExpression1()
                     throws Exception
Throws:
Exception

testExpression2

public void testExpression2()
                     throws Exception
Throws:
Exception

testExpression3

public void testExpression3()
                     throws Exception
Throws:
Exception

testExpression4

public void testExpression4()
                     throws Exception
Throws:
Exception

testExpression5

public void testExpression5()
                     throws Exception
Throws:
Exception

testExpression7

public void testExpression7()
                     throws Exception
Throws:
Exception

testExpression8

public void testExpression8()
                     throws Exception
Throws:
Exception

testExpression9

public void testExpression9()
                     throws Exception
Throws:
Exception

testExpression10

public void testExpression10()
                      throws Exception
Throws:
Exception

testBuilder

public void testBuilder()
                 throws Exception
Throws:
Exception


Copyright © 2012 The Apache Software Foundation