class TupleToRange implements Function<Tuple2<String,IndexInfo>,Iterator<QueryPlan>> {

    public static Iterator<QueryPlan> createDayRange(JexlNode queryNode, String shard, IndexInfo indexInfo) {
        JexlNode myNode = queryNode;
        if (indexInfo.getNode() != null) {
            myNode = indexInfo.getNode();
        }
        
        Range range = RangeFactory.createDayRange(shard);
        if (log.isTraceEnabled())
            log.trace("Building day" + range + " from " + (null == myNode ? "NoQueryNode" : JexlStringBuildingVisitor.buildQuery(myNode)));
        return Collections.singleton(new QueryPlan(myNode, range)).iterator();
    }

    public  TupleToRange(JexlNode currentNode, ShardQueryConfiguration config);

}