public static HiveRelFieldTrimmer get(boolean fetchStats, boolean useLMFBasedDispatcher) {
    return fetchStats ?
        (useLMFBasedDispatcher ? FIELD_TRIMMER_STATS : FIELD_TRIMMER_STATS_METHOD_DISPATCHER) :
        (useLMFBasedDispatcher ? FIELD_TRIMMER_NO_STATS : FIELD_TRIMMER_NO_STATS_METHOD_DISPATCHER);
  }
Returns a HiveRelFieldTrimmer instance that can retrieve stats and use
a custom dispatcher.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveRelFieldTrimmer.java