Java 类org.apache.avro.io.parsing.JsonGrammarGenerator 实例源码

项目:avro-json-decoder    文件:ExtendedJsonDecoder.java   
private static Symbol getSymbol(Schema schema) {
    if (null == schema) {
        throw new NullPointerException("Schema cannot be null!");
    }
    return new JsonGrammarGenerator().generate(schema);
}
项目:jasvorno    文件:JasvornoEncoder.java   
JasvornoEncoder(Schema sc, JsonGenerator out) throws IOException {
  configure(out);
  parser = new Parser(new JsonGrammarGenerator().generate(sc), this);
}
项目:iis    文件:HackedJsonEncoder.java   
HackedJsonEncoder(Schema sc, JsonGenerator out) throws IOException {
  configure(out);
  this.parser =
    new Parser(new JsonGrammarGenerator().generate(sc), this);
}
项目:iis    文件:HackedJsonDecoder.java   
private static Symbol getSymbol(Schema schema) {
  if (null == schema) {
    throw new NullPointerException("Schema cannot be null!");
  }
  return new JsonGrammarGenerator().generate(schema);
}
项目:iow-hadoop-streaming    文件:IOWJsonDecoder.java   
private static Symbol getSymbol(Schema schema) {
    if (null == schema) {
        throw new NullPointerException("Schema cannot be null!");
    }
    return new JsonGrammarGenerator().generate(schema);
}