Fields.parse("boolean_field:boolean, int_field:int, long_field:long,strField:string")));
schemas.add(new Schema("schema5",
Fields.parse("boolean_field:boolean, int_field:int, long_field:long,strField:string, " +
"enum_field:" + TestEnum.class.getName() + ",thrift_field:" + A.class.getName())));
schemas.add(SCHEMA);
TupleMRConfigBuilder b = new TupleMRConfigBuilder();
for (int i = 0; i < schemas.size(); i++) {
Schema schema = schemas.get(i);
if (withNullables) {
schema = decorateWithNullables(schema);
}
b.addIntermediateSchema(schema);
}
b.setGroupByFields("boolean_field", "int_field");
b.setOrderBy(new OrderBy().add("boolean_field", Order.ASC).add("int_field", Order.DESC).addSchemaOrder(Order.DESC));
b.setSpecificOrderBy("schema1", new OrderBy().add("string_field", Order.DESC));
b.setSpecificOrderBy("schema2", new OrderBy().add("long_field", Order.ASC));
return b.buildConf();
}