1
|
|
|
<?php |
2
|
|
|
declare(strict_types=1); |
3
|
|
|
|
4
|
|
|
namespace Level23\Druid\Facades; |
5
|
|
|
|
6
|
|
|
use Illuminate\Support\Facades\Facade; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* Class Druid |
10
|
|
|
* |
11
|
|
|
* @method static \Level23\Druid\Queries\QueryBuilder query(string $dataSource = '', string $granularity = \Level23\Druid\Types\Granularity::ALL) |
12
|
|
|
* @method static void cancelQuery(string $identifier) |
13
|
|
|
* @method static array<string|int,array<mixed>|string|int> executeQuery(\Level23\Druid\Queries\QueryInterface $druidQuery) |
14
|
|
|
* @method static string executeTask(\Level23\Druid\Tasks\TaskInterface $task) |
15
|
|
|
* @method static array<string|int,array<mixed>|string|int> executeRawRequest(string $method, string $url, array<string,string|int|array<mixed>> $data = []) |
16
|
|
|
* @method static \Level23\Druid\DruidClient setLogger(\Psr\Log\LoggerInterface $logger) |
17
|
|
|
* @method static \Level23\Druid\DruidClient setGuzzleClient(\GuzzleHttp\Client $client) |
18
|
|
|
* @method static mixed config(string $key, $default = null) |
19
|
|
|
* @method static \Level23\Druid\Metadata\MetadataBuilder metadata() |
20
|
|
|
* @method static \Level23\Druid\Responses\TaskResponse taskStatus(string $taskId) |
21
|
|
|
* @method static \Level23\Druid\Responses\TaskResponse pollTaskStatus(string $taskId) |
22
|
|
|
* @method static \Level23\Druid\Tasks\CompactTaskBuilder compact(string $dataSource) |
23
|
|
|
* @method static \Level23\Druid\Tasks\KillTaskBuilder kill(string $dataSource) |
24
|
|
|
* @method static \Level23\Druid\Tasks\IndexTaskBuilder index(string $dataSource, \Level23\Druid\InputSources\InputSourceInterface $inputSource) |
25
|
|
|
* @method static \Level23\Druid\Tasks\IndexTaskBuilder reindex(string $dataSource) |
26
|
|
|
* |
27
|
|
|
* @package Level23\Druid\Facades |
28
|
|
|
* @codeCoverageIgnore |
29
|
|
|
*/ |
30
|
|
|
class Druid extends Facade |
31
|
|
|
{ |
32
|
|
|
/** |
33
|
|
|
* Get the registered name of the component. |
34
|
|
|
* |
35
|
|
|
* @return string |
36
|
|
|
*/ |
37
|
|
|
protected static function getFacadeAccessor(): string |
38
|
|
|
{ |
39
|
|
|
return 'druid'; |
40
|
|
|
} |
41
|
|
|
} |