Code example for SimpleBindings

Methods: put

0
    public static List<String> getEvaluates() {
        return Imports.evaluates;
    } 
 
    public static Bindings getEvaluateBindings() throws IOException {
        Bindings bindings = new SimpleBindings();
        bindings.put(Imports.HDFS, FileSystem.get(new Configuration()));
        bindings.put(Imports.LOCAL, FileSystem.getLocal(new Configuration()));
        return bindings;
    } 
}