public class RuleConfigDeriver extends Object
Constructor and Description |
---|
RuleConfigDeriver() |
Modifier and Type | Method and Description |
---|---|
private static String |
collectMessage(Throwable e) |
List<RuleBase> |
derive(List<com.yahoo.io.reader.NamedReader> readers) |
List<RuleBase> |
derive(String ruleBaseDir) |
void |
derive(String ruleBaseDir,
String outputDir) |
private void |
ensureZeroOrOneDefault(List<RuleBase> ruleBases) |
private void |
exportConfig(List<RuleBase> ruleBases,
String outputDir) |
static void |
main(String[] args) |
private static String |
messageOrName(Throwable e) |
private void |
writeRuleBaseAsLine(String file,
Writer writer) |
public void derive(String ruleBaseDir, String outputDir) throws IOException, com.yahoo.prelude.semantics.parser.ParseException
IOException
com.yahoo.prelude.semantics.parser.ParseException
public List<RuleBase> derive(String ruleBaseDir) throws IOException, com.yahoo.prelude.semantics.parser.ParseException
IOException
com.yahoo.prelude.semantics.parser.ParseException
public List<RuleBase> derive(List<com.yahoo.io.reader.NamedReader> readers) throws IOException, com.yahoo.prelude.semantics.parser.ParseException
IOException
com.yahoo.prelude.semantics.parser.ParseException
private void ensureZeroOrOneDefault(List<RuleBase> ruleBases) throws com.yahoo.prelude.semantics.parser.ParseException
com.yahoo.prelude.semantics.parser.ParseException
private void exportConfig(List<RuleBase> ruleBases, String outputDir) throws IOException
IOException
private void writeRuleBaseAsLine(String file, Writer writer) throws IOException
IOException
public static void main(String[] args)
Copyright © 2018. All rights reserved.