From 347fbe22bad209da8efa109d5662d7e27b537306 Mon Sep 17 00:00:00 2001 From: David Sisson Date: Tue, 6 Feb 2024 10:30:52 -0800 Subject: [PATCH] Remove accidentally added java library still in progress. --- export/java/TextPlan.java | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 export/java/TextPlan.java diff --git a/export/java/TextPlan.java b/export/java/TextPlan.java deleted file mode 100644 index 0e846663..00000000 --- a/export/java/TextPlan.java +++ /dev/null @@ -1,29 +0,0 @@ -package io.substrait; - -public class SubstraitPlanLoader { - enum PlanFileFormat { - kBinary = 0, - kJson = 1, - kProtoText = 2, - kText = 3, - }; - - // Load a Substrait plan (in any format) from disk. - // Returns error message on failure, otherwise returns nullptr and - // updates the provided buffer. - public native String loadSubstraitPlan(String filename); - - // Write a Substrait plan to disk in the specified format. - public native String saveSubstraitPlan(Plan plan, String filename, PlanFileFormat format); - - static { - System.load("/path/to/libMYSTUFF.so"); - } - - public static void main(String [] args) { - SubstraitPlanLoader loader = new SubstraitPlanLoader(); - - String result = loader.loadSubstraitPlan("filename.plan"); - System.out.println("Result: " + result); - } -}