Completed
Push — master ( 18b606...1191a0 )
by yuuki
04:00
created

PrestoHeaders::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Ytake\PrestoClient;
5
6
/**
7
 * Class PrestoHeaders
8
 */
9
final class PrestoHeaders
10
{
11
    const PRESTO_USER = "X-Presto-User";
12
    const PRESTO_SOURCE = "X-Presto-Source";
13
    const PRESTO_CATALOG = "X-Presto-Catalog";
14
    const PRESTO_SCHEMA = "X-Presto-Schema";
15
    const PRESTO_TIME_ZONE = "X-Presto-Time-Zone";
16
    const PRESTO_LANGUAGE = "X-Presto-Language";
17
    const PRESTO_SESSION = "X-Presto-Session";
18
    const PRESTO_SET_SESSION = "X-Presto-Set-Session";
19
    const PRESTO_CLEAR_SESSION = "X-Presto-Clear-Session";
20
    const PRESTO_PREPARED_STATEMENT = "X-Presto-Prepared-Statement";
21
    const PRESTO_ADDED_PREPARE = "X-Presto-Added-Prepare";
22
    const PRESTO_DEALLOCATED_PREPARE = "X-Presto-Deallocated-Prepare";
23
    const PRESTO_TRANSACTION_ID = "X-Presto-Transaction-Id";
24
    const PRESTO_STARTED_TRANSACTION_ID = "X-Presto-Started-Transaction-Id";
25
    const PRESTO_CLEAR_TRANSACTION_ID = "X-Presto-Clear-Transaction-Id";
26
    const PRESTO_CLIENT_INFO = "X-Presto-Client-Info";
27
    const PRESTO_CURRENT_STATE = "X-Presto-Current-State";
28
    const PRESTO_MAX_WAIT = "X-Presto-Max-Wait";
29
    const PRESTO_MAX_SIZE = "X-Presto-Max-Size";
30
    const PRESTO_TASK_INSTANCE_ID = "X-Presto-Task-Instance-Id";
31
    const PRESTO_PAGE_TOKEN = "X-Presto-Page-Sequence-Id";
32
    const PRESTO_PAGE_NEXT_TOKEN = "X-Presto-Page-End-Sequence-Id";
33
    const PRESTO_BUFFER_COMPLETE = "X-Presto-Buffer-Complete";
34
35
    /** library version */
36
    const VERSION = '0.1.0';
37
    const PRESTO_SOURCE_VALUE = 'PrestoClient';
38
39
    private function __construct()
40
    {
41
        //
42
    }
43
}
44