Search in sources :

Example 1 with TransformingInputEntityReader

use of org.apache.druid.segment.transform.TransformingInputEntityReader in project druid by druid-io.

the class SettableByteEntityReader method setEntity.

void setEntity(ByteEntity entity) {
    InputFormat format = (inputFormat instanceof JsonInputFormat) ? ((JsonInputFormat) inputFormat).withLineSplittable(false) : inputFormat;
    this.delegate = new TransformingInputEntityReader(// This should be fine as long as initializing a reader is cheap which it is for now.
    format.createReader(inputRowSchema, entity, indexingTmpDir), transformer);
}
Also used : TransformingInputEntityReader(org.apache.druid.segment.transform.TransformingInputEntityReader) JsonInputFormat(org.apache.druid.data.input.impl.JsonInputFormat) InputFormat(org.apache.druid.data.input.InputFormat) JsonInputFormat(org.apache.druid.data.input.impl.JsonInputFormat)

Aggregations

InputFormat (org.apache.druid.data.input.InputFormat)1 JsonInputFormat (org.apache.druid.data.input.impl.JsonInputFormat)1 TransformingInputEntityReader (org.apache.druid.segment.transform.TransformingInputEntityReader)1