@Override protected Object preProcess(Object object, BytesArray storage) { // serialize the json early on and copy it to storage Assert.notNull(object, "Empty/null JSON document given..."); jsonWriter.convert(object, storage); if (log.isTraceEnabled()) { log.trace(String.format("About to extract information from [%s]", storage)); } jsonExtractors.process(storage); return storage; }
@Override protected Object preProcess(Object object, BytesArray storage) { // serialize the json early on and copy it to storage Assert.notNull(object, "Empty/null JSON document given..."); BytesArray ba = null; if (ConfigurationOptions.ES_OPERATION_UPSERT.equals(settings.getOperation())) { ba = storage; } else { scratchPad.reset(); ba = scratchPad; } // write the doc to a temporary space jsonWriter.convert(object, ba); if (log.isTraceEnabled()) { log.trace(String.format("About to extract information from [%s]", ba)); } jsonExtractors.process(ba); return storage; } }
@Override protected Object preProcess(Object object, BytesArray storage) { // serialize the json early on and copy it to storage Assert.notNull(object, "Empty/null JSON document given..."); jsonWriter.convert(object, storage); if (log.isTraceEnabled()) { log.trace(String.format("About to extract information from [%s]", storage)); } jsonExtractors.process(storage); return storage; }
@Override protected Object preProcess(Object object, BytesArray storage) { // serialize the json early on and copy it to storage Assert.notNull(object, "Empty/null JSON document given..."); jsonWriter.convert(object, storage); if (log.isTraceEnabled()) { log.trace(String.format("About to extract information from [%s]", storage)); } jsonExtractors.process(storage); return storage; }
@Override protected Object preProcess(Object object, BytesArray storage) { // serialize the json early on and copy it to storage Assert.notNull(object, "Empty/null JSON document given..."); jsonWriter.convert(object, storage); if (log.isTraceEnabled()) { log.trace(String.format("About to extract information from [%s]", storage)); } jsonExtractors.process(storage); return storage; }
@Override protected Object preProcess(Object object, BytesArray storage) { // serialize the json early on and copy it to storage Assert.notNull(object, "Empty/null JSON document given..."); jsonWriter.convert(object, storage); if (log.isTraceEnabled()) { log.trace(String.format("About to extract information from [%s]", storage)); } jsonExtractors.process(storage); return storage; }
@Override protected Object preProcess(Object object, BytesArray storage) { // serialize the json early on and copy it to storage Assert.notNull(object, "Empty/null JSON document given..."); BytesArray ba = null; if (ConfigurationOptions.ES_OPERATION_UPSERT.equals(settings.getOperation())) { ba = storage; } else { scratchPad.reset(); ba = scratchPad; } // write the doc to a temporary space jsonWriter.convert(object, ba); if (log.isTraceEnabled()) { log.trace(String.format("About to extract information from [%s]", ba)); } jsonExtractors.process(ba); return storage; } }
@Override protected Object preProcess(Object object, BytesArray storage) { // serialize the json early on and copy it to storage Assert.notNull(object, "Empty/null JSON document given..."); BytesArray ba = null; if (ConfigurationOptions.ES_OPERATION_UPSERT.equals(settings.getOperation())) { ba = storage; } else { scratchPad.reset(); ba = scratchPad; } // write the doc to a temporary space jsonWriter.convert(object, ba); if (log.isTraceEnabled()) { log.trace(String.format("About to extract information from [%s]", ba)); } jsonExtractors.process(ba); return storage; } }
@Override protected Object preProcess(Object object, BytesArray storage) { // serialize the json early on and copy it to storage Assert.notNull(object, "Empty/null JSON document given..."); BytesArray ba = null; if (ConfigurationOptions.ES_OPERATION_UPSERT.equals(settings.getOperation())) { ba = storage; } else { scratchPad.reset(); ba = scratchPad; } // write the doc to a temporary space jsonWriter.convert(object, ba); if (log.isTraceEnabled()) { log.trace(String.format("About to extract information from [%s]", ba)); } jsonExtractors.process(ba); return storage; } }
@Override protected Object preProcess(Object object, BytesArray storage) { // serialize the json early on and copy it to storage Assert.notNull(object, "Empty/null JSON document given..."); BytesArray ba = null; if (ConfigurationOptions.ES_OPERATION_UPSERT.equals(settings.getOperation())) { ba = storage; } else { scratchPad.reset(); ba = scratchPad; } // write the doc to a temporary space jsonWriter.convert(object, ba); if (log.isTraceEnabled()) { log.trace(String.format("About to extract information from [%s]", ba)); } jsonExtractors.process(ba); return storage; } }