Class

com.crobox.clickhouse

ClickhouseClient

Related Doc: package clickhouse

Permalink

class ClickhouseClient extends ClickHouseExecutor with ClickhouseResponseParser with ClickhouseQueryBuilder

Async clickhouse client using Akka Http and Streams TODO remove the implicit ActorSystem and use own internal actor system + configuration

Since

31-03-17

Linear Supertypes
ClickhouseQueryBuilder, ClickhouseResponseParser, ClickHouseExecutor, LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ClickhouseClient
  2. ClickhouseQueryBuilder
  3. ClickhouseResponseParser
  4. ClickHouseExecutor
  5. LazyLogging
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClickhouseClient(config: Config, database: String = "default")(implicit system: ActorSystem = ActorSystem("clickhouseClient"))

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. lazy val bufferSize: Int

    Permalink
    Attributes
    protected
    Definition Classes
    ClickHouseExecutor
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val config: Config

    Permalink
    Definition Classes
    ClickhouseClient → ClickhouseQueryBuilder → ClickHouseExecutor
  8. val database: String

    Permalink
  9. def entityToString(entity: ResponseEntity, encoding: HttpEncoding)(implicit materializer: Materializer): Future[String]

    Permalink
    Attributes
    protected
    Definition Classes
    ClickhouseResponseParser
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def execute(sql: String, entity: String): Future[String]

    Permalink
  13. def execute(sql: String): Future[String]

    Permalink

    Execute a query that is modifying the state of the database.

    Execute a query that is modifying the state of the database. e.g. INSERT, SET, CREATE TABLE. For security purposes SELECT and SHOW queries are not allowed, use the .query() method for those.

    sql

    a valid Clickhouse SQL string

    returns

    Future with the result that clickhouse returns

  14. def executeRequest(host: Future[Uri], query: String, readOnly: Boolean = true, entity: Option[RequestEntity] = None): Future[String]

    Permalink
    Definition Classes
    ClickHouseExecutor
  15. implicit val executionContext: ExecutionContext

    Permalink
    Attributes
    protected
    Definition Classes
    ClickhouseClient → ClickhouseResponseParser
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def handleResponse(responseFuture: Future[HttpResponse], query: String, host: Uri)(implicit materializer: Materializer): Future[String]

    Permalink
    Attributes
    protected
    Definition Classes
    ClickhouseResponseParser
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def query(sql: String): Future[String]

    Permalink

    Execute a read-only query on Clickhouse

    Execute a read-only query on Clickhouse

    sql

    a valid Clickhouse SQL string

    returns

    Future with the result that clickhouse returns

  26. def singleRequest(request: HttpRequest): Future[HttpResponse]

    Permalink
    Definition Classes
    ClickHouseExecutor
  27. def sink(sql: String, source: Source[ByteString, Any]): Future[String]

    Permalink

    Accepts a source of Strings that it will stream to Clickhouse

    Accepts a source of Strings that it will stream to Clickhouse

    sql

    a valid Clickhouse SQL INSERT statement

    source

    the Source with strings

    returns

    Future with the result that clickhouse returns

  28. def source(sql: String): Source[String, NotUsed]

    Permalink

    Creates a stream of the SQL query that will delimit the result from Clickhouse on new-line

    Creates a stream of the SQL query that will delimit the result from Clickhouse on new-line

    sql

    a valid Clickhouse SQL string

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. implicit val system: ActorSystem

    Permalink
    Definition Classes
    ClickhouseClient → ClickHouseExecutor
  31. def table(name: String): String

    Permalink

    Resolves the table name relative to the current clickhouse client database.

    Resolves the table name relative to the current clickhouse client database.

    name

    name of the table

  32. def toRequest(uri: Uri, query: String, readOnly: Boolean = true, entity: Option[RequestEntity] = None): HttpRequest

    Permalink
    Attributes
    protected
    Definition Classes
    ClickhouseQueryBuilder
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ClickhouseQueryBuilder

Inherited from ClickhouseResponseParser

Inherited from ClickHouseExecutor

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped