Total Complexity | 2 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class FlattenFieldType extends Enum |
||
14 | { |
||
15 | /** |
||
16 | * root, referring to a field at the root level of the record. Only really useful if useFieldDiscovery is false. |
||
17 | */ |
||
18 | public const ROOT = 'root'; |
||
19 | /** |
||
20 | * referring to a field using JsonPath notation. Supported by most data formats that offer nesting, including avro, |
||
21 | * json, orc, and parquet. |
||
22 | * |
||
23 | * @see https://github.com/json-path/JsonPath |
||
24 | */ |
||
25 | public const PATH = 'path'; |
||
26 | /** |
||
27 | * referring to a field using jackson-jq notation. Only supported for the json format |
||
28 | * |
||
29 | * @see https://github.com/eiiches/jackson-jq |
||
30 | */ |
||
31 | public const JQ = 'jq'; |
||
32 | |||
33 | /** |
||
34 | * @param string $flattenFieldType |
||
35 | * |
||
36 | * @return string |
||
37 | * @throws InvalidArgumentException |
||
38 | */ |
||
39 | 14 | public static function validate(string $flattenFieldType): string |
|
50 | } |
||
51 | } |