SearchArgumentFactory { public static SearchArgumentFactory.Builder newBuilder() { org.apache.hadoop.hive.ql.io.sarg.SearchArgument.Builder internalBuilder = org.apache.hadoop.hive.ql.io.sarg.SearchArgumentFactory .newBuilder(); return new Builder(internalBuilder); } private  SearchArgumentFactory(); static SearchArgumentFactory.Builder newBuilder();  }
@Test public void builderFactoryMethod() { SearchArgument kryoFromFields = SearchArgumentFactory .newBuilder() .startAnd() .equals(new Fields("a", String.class), "hello") .end() .build(); String kryoFields = CorcInputFormat.toKryo(kryoFromFields); SearchArgument kryoFromString = org.apache.hadoop.hive.ql.io.sarg.SearchArgumentFactory .newBuilder() .startAnd() .equals("a", PredicateLeaf.Type.STRING, "hello") .end() .build(); String kryoString = CorcInputFormat.toKryo(kryoFromString); assertThat(kryoFields, is(kryoString)); }