phillipcheng / log.analysis

1 stars 15 forks source link

Load/Generate schema from/into directory #151

Closed hanzac closed 7 years ago

hanzac commented 7 years ago

SchemaUtils will have methods to load and write to directory or a single file: public static LogicSchema fromLocalJsonPath(String path, Class<? extends LogicSchema> clazz); public static LogicSchema fromRemoteJsonPath(FileSystem fs, String path, Class<? extends LogicSchema> clazz); public static void toLocalJsonPath(String path, boolean directory, LogicSchema schema, Map<String, List> attrIdMap); public static void toRemoteJsonPath(FileSystem fs, String path, boolean directory, LogicSchema schema, Map<String, List> attrIdMap);