177178179180181182183184
@Override public void writeNumber(long l) { try { generator.writeNumber(l); } catch (IOException ex) { throw new EsHadoopSerializationException(ex); } }
186187188189190191192193
@Override public void writeNumber(double d) { try { generator.writeNumber(d); } catch (IOException ex) { throw new EsHadoopSerializationException(ex); } }
195196197198199200201202
@Override public void writeNumber(float f) { try { generator.writeNumber(f); } catch (IOException ex) { throw new EsHadoopSerializationException(ex); } }
204205206207208209210211
@Override public void writeBoolean(boolean b) { try { generator.writeBoolean(b); } catch (IOException ex) { throw new EsHadoopSerializationException(ex); } }
213214215216217218219220
@Override public void writeNull() { try { generator.writeNull(); } catch (IOException ex) { throw new EsHadoopSerializationException(ex); } }
222223224225226227228229
@Override public void flush() { try { generator.flush(); } catch (IOException ex) { throw new EsHadoopSerializationException(ex); } }
231232233234235236237238
@Override public void close() { try { generator.close(); } catch (IOException ex) { throw new EsHadoopSerializationException(ex); } }
4243444546474849
public JacksonJsonParser(InputStream in) { try { this.parser = JSON_FACTORY.createJsonParser(in); } catch (IOException ex) { throw new EsHadoopSerializationException(ex); } }
5455565758596061
public JacksonJsonParser(byte[] content, int offset, int length) { try { this.parser = JSON_FACTORY.createJsonParser(content, offset, length); } catch (IOException ex) { throw new EsHadoopSerializationException(ex); } }
7273747576777879
@Override public Object currentValue() { try { return (parser.getCurrentToken().isNumeric() ? parser.getNumberValue() : parser.getText()); } catch (IOException ex) { throw new EsHadoopSerializationException(ex); } }