pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remi Catherinot (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PIG-4598) Allow user defined plan optimizer rules
Date Thu, 11 Jun 2015 10:23:01 GMT
Remi Catherinot created PIG-4598:

             Summary: Allow user defined plan optimizer rules
                 Key: PIG-4598
                 URL: https://issues.apache.org/jira/browse/PIG-4598
             Project: Pig
          Issue Type: Improvement
          Components: impl
    Affects Versions: 0.15.0, 0.14.0
            Reporter: Remi Catherinot

Pig has only builtin plan optimizer rules. Adding the possibility to load used defined and
implemented Rule make it easier for people to work on plan optimization. The idea behind this
is to be able to push/propose new optimizer rule through the piggybank without touching pig
core classes. I'm preparing some optimisations and so need this patch 1st.

One can set classes extending the abstract Rule class using pig.optimizer.user.defined.rules,
setting this to one or more named classes splitted using regex [,;:\t ]. These classes will
be loaded using PigContext.getClassLoader() and if that fails use the current thread context
class loader. Classes can have a PigContext one argument constructor, and if it does not exists
the default constructor is used.

This message was sent by Atlassian JIRA

View raw message