Passed
Pull Request — master (#46)
by Teye
05:09
created

FlattenFieldType::validate()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 11
ccs 8
cts 8
cp 1
rs 10
c 1
b 0
f 0
cc 2
nc 2
nop 1
crap 2
1
<?php
2
declare(strict_types=1);
3
4
namespace Level23\Druid\Types;
5
6
/**
7
 * Enum FlattenFieldType
8
 *
9
 * @package Level23\Druid\Types
10
 */
11
enum FlattenFieldType: string
12
{
13
    /**
14
     * root, referring to a field at the root level of the record. Only really useful if useFieldDiscovery is false.
15
     */
16
    case ROOT = 'root';
17
    /**
18
     * referring to a field using JsonPath notation. Supported by most data formats that offer nesting, including avro,
19
     * json, orc, and parquet.
20
     *
21
     * @see https://github.com/json-path/JsonPath
22
     */
23
    case PATH = 'path';
24
    /**
25
     * referring to a field using jackson-jq notation. Only supported for the json format
26
     *
27
     * @see https://github.com/eiiches/jackson-jq
28
     */
29
    case JQ = 'jq';
30
}