Class FilterFactory

java.lang.Object
org.apache.orc.impl.filter.FilterFactory

public class FilterFactory extends Object
  • Constructor Details

    • FilterFactory

      public FilterFactory()
  • Method Details

    • createBatchFilter

      public static BatchFilter createBatchFilter(Reader.Options opts, TypeDescription readSchema, boolean isSchemaCaseAware, OrcFile.Version version, boolean normalize, String filePath, Configuration conf)
      Create a BatchFilter. This considers both the input filter and the SearchArgument filter. If both are available then they are compounded by AND.
      Parameters:
      opts - for reading the file
      readSchema - that should be used
      isSchemaCaseAware - identifies if the schema is case-sensitive
      version - provides the ORC file version
      normalize - identifies if the SArg should be normalized or not
      filePath - that is fully qualified to determine plugin filter(s)
      conf - configuration shared when determining Plugin filter(s)
      Returns:
      BatchFilter that represents the SearchArgument or null
    • createSArgFilter

      public static VectorFilter createSArgFilter(org.apache.hadoop.hive.ql.io.sarg.ExpressionTree expr, Set<String> colIds, List<org.apache.hadoop.hive.ql.io.sarg.PredicateLeaf> leaves, TypeDescription readSchema, boolean isSchemaCaseAware, OrcFile.Version version) throws FilterFactory.UnSupportedSArgException
      Throws:
      FilterFactory.UnSupportedSArgException