public static void storeGraphFilter(final Configuration apacheConfiguration, final org.apache.hadoop.conf.Configuration hadoopConfiguration, final GraphFilter graphFilter) {
        if (graphFilter.hasFilter()) {
            VertexProgramHelper.serialize(graphFilter, apacheConfiguration, Constants.GREMLIN_HADOOP_GRAPH_FILTER);
            hadoopConfiguration.set(Constants.GREMLIN_HADOOP_GRAPH_FILTER, apacheConfiguration.getString(Constants.GREMLIN_HADOOP_GRAPH_FILTER));
        }
    }
An input graph class is {@code GraphFilterAware} if it can filter out vertices and edges as its loading the graph
from the source data. Any input class that is {@code GraphFilterAware} must be able to fully handle both vertex and
edge filtering. It is assumed that if the input class is {@code GraphFilterAware}, then the respective
{@link GraphComputer} will not perform any filtering on the loaded graph.

@author Marko A. Rodriguez (http://markorodriguez.com)
hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/structure/io/GraphFilterAware.java