Search in sources :

Example 1 with QueryDefVisitor

use of com.sap.hadoop.windowing.query2.translate.QueryDefVisitor in project SQLWindowing by hbutani.

the class SerializationTest method reconstructQueryDef.

static void reconstructQueryDef(QueryDef qDef, HiveConf hiveConf) throws WindowingException {
    QueryDefVisitor qdd = new QueryDefDeserializer(hiveConf);
    QueryDefWalker qdw = new QueryDefWalker(qdd);
    qdw.walk(qDef);
}
Also used : QueryDefWalker(com.sap.hadoop.windowing.query2.translate.QueryDefWalker) QueryDefVisitor(com.sap.hadoop.windowing.query2.translate.QueryDefVisitor) QueryDefDeserializer(com.sap.hadoop.windowing.query2.translate.QueryDefDeserializer)

Example 2 with QueryDefVisitor

use of com.sap.hadoop.windowing.query2.translate.QueryDefVisitor in project SQLWindowing by hbutani.

the class PTFOperator method reconstructQueryDef.

/**
	 * Initialize the visitor to use the QueryDefDeserializer Use the order
	 * defined in QueryDefWalker to visit the QueryDef
	 * 
	 * @param hiveConf
	 * @throws WindowingException
	 */
protected void reconstructQueryDef(HiveConf hiveConf) throws WindowingException {
    QueryDefVisitor qdd = new QueryDefDeserializer(hiveConf, inputObjInspectors[0]);
    QueryDefWalker qdw = new QueryDefWalker(qdd);
    qdw.walk(qDef);
}
Also used : QueryDefWalker(com.sap.hadoop.windowing.query2.translate.QueryDefWalker) QueryDefVisitor(com.sap.hadoop.windowing.query2.translate.QueryDefVisitor) QueryDefDeserializer(com.sap.hadoop.windowing.query2.translate.QueryDefDeserializer)

Aggregations

QueryDefDeserializer (com.sap.hadoop.windowing.query2.translate.QueryDefDeserializer)2 QueryDefVisitor (com.sap.hadoop.windowing.query2.translate.QueryDefVisitor)2 QueryDefWalker (com.sap.hadoop.windowing.query2.translate.QueryDefWalker)2