com.yahoo.maha.api.jersey.JsonStreamingOutput.scala Maven / Gradle / Ivy
// Copyright 2017, Yahoo Holdings Inc.
// Licensed under the terms of the Apache License 2.0. Please see LICENSE file in project root for terms.
package com.yahoo.maha.api.jersey
import java.io.OutputStream
import javax.ws.rs.core.StreamingOutput
import com.yahoo.maha.core._
import com.yahoo.maha.service.RequestCoordinatorResult
import com.yahoo.maha.service.datasource.IngestionTimeUpdater
import com.yahoo.maha.service.output.{DebugRenderer, JsonOutputFormat}
class JsonStreamingOutput(override val requestCoordinatorResult: RequestCoordinatorResult
, override val ingestionTimeUpdaterMap: Map[Engine, IngestionTimeUpdater] = Map.empty
, override val debugRenderer: Option[DebugRenderer] = None
) extends JsonOutputFormat(requestCoordinatorResult, ingestionTimeUpdaterMap, debugRenderer) with StreamingOutput {
override def write(outputStream: OutputStream): Unit = {
writeStream(outputStream)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy