trait DruidClient extends CirceHttpSupport with CirceDecoders with LazyLogging
- Alphabetic
- By Inheritance
- DruidClient
- LazyLogging
- CirceDecoders
- CirceHttpSupport
- JsonSupport
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def actorMaterializer: ActorMaterializer
- returns
the underlying akka.stream.ActorMaterializer
- abstract def actorSystem: ActorSystem
- returns
the underlying akka.actor.ActorSystem
- abstract def doQuery[T <: DruidResponse](query: DruidQuery)(implicit druidConfig: DruidConfig): Future[T]
Perform a query to Druid and get its resulting response
Perform a query to Druid and get its resulting response
- query
the query to perform
- druidConfig
the configuration options
- returns
a Future holding the resulting response
- abstract def doQueryAsStream(query: DruidQuery)(implicit druidConfig: DruidConfig): Source[BaseResult, NotUsed]
Perform a query to Druid and get its result as an Akka Stream akka.stream.scaladsl.Source of ing.wbaa.druid.DruidResult.
Perform a query to Druid and get its result as an Akka Stream akka.stream.scaladsl.Source of ing.wbaa.druid.DruidResult.
This is useful for queries that result to responses with large payloads (Druid responds with streaming JSON)
- query
the query to perform
- druidConfig
the Druid configuration options
- returns
the resulting Akka Streams Source of ing.wbaa.druid.DruidResult
- abstract def healthCheck(implicit druidConfig: DruidConfig): Future[Map[QueryHost, Boolean]]
- druidConfig
the configuration options
- returns
a Map with the health status of each Druid query host, where each host is associated with a Boolean value indicating whether the host is healthy (true) or not (false)
- abstract def isHealthy()(implicit druidConfig: DruidConfig): Future[Boolean]
Checks the health status of all Druid query hosts
Checks the health status of all Druid query hosts
- druidConfig
the configuration options
- returns
true when all Druid query hosts are healthy, otherwise false
- abstract def shutdown(): Future[Unit]
Shutdown the client and close the active connections to Druid
Shutdown the client and close the active connections to Druid
- returns
a Future which completes successfully when all active connections have been closed
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit def circeJsonMarshaller(implicit P: Printer): ToEntityMarshaller[Json]
- Definition Classes
- CirceHttpSupport
- implicit def circeJsonUnmarshaller: FromEntityUnmarshaller[Json]
- Definition Classes
- CirceHttpSupport
- implicit def circeMarshaller[A](implicit A: Encoder[A], P: Printer): ToEntityMarshaller[A]
- Definition Classes
- CirceHttpSupport
- implicit def circeUnmarshaller[A](implicit arg0: Decoder[A]): FromEntityUnmarshaller[A]
- Definition Classes
- CirceHttpSupport
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val healthLogger: Logger
- Attributes
- protected
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def jsonUnmarshaller[J](implicit arg0: Facade[J]): FromEntityUnmarshaller[J]
- Definition Classes
- JsonSupport
- lazy val logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
- Annotations
- @transient()
- def mapRightProjection[L, R, R1](either: Either[L, R])(f: (R) => R1): Either[L, R1]
- Attributes
- protected
- Definition Classes
- CirceDecoders
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.