Class Connection

A connection to Pinot, normally created via connectionFactory

Hierarchy

  • Connection

Constructors

Properties

Methods

Constructors

  • Parameters

    • brokerSelector: BrokerSelector
    • transport: BrokerClientTransport
    • logger: Logger
    • updater: Updater = null

    Returns Connection

Properties

updater?: Updater

Methods

  • Closes a Pinot cluster connection (stop the periodic table-to-broker mapping refreshes)

    Returns void

  • Executes an SQL query against a given table

    Throws

    PinotClientError

    Parameters

    • table: string
    • query: string

    Returns Promise<BrokerResponse>

  • Get the list of available broker addresses

    Returns

    The list of brokers using which the connection can execute queries

    Returns string[]

Generated using TypeDoc