| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class OrcInputFormat implements InputFormatInterface |
||
| 7 | { |
||
| 8 | protected ?FlattenSpec $flattenSpec; |
||
| 9 | |||
| 10 | protected ?bool $binaryAsString; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param FlattenSpec|null $flattenSpec Specifies flattening configuration for nested ORC data. See flattenSpec |
||
| 14 | * for more info. |
||
| 15 | * @param bool|null $binaryAsString Specifies if the binary orc column which is not logically marked as a |
||
| 16 | * string should be treated as a UTF-8 encoded string. Default is false. |
||
| 17 | */ |
||
| 18 | 2 | public function __construct(FlattenSpec $flattenSpec = null, bool $binaryAsString = null) |
|
| 19 | { |
||
| 20 | 2 | $this->flattenSpec = $flattenSpec; |
|
| 21 | 2 | $this->binaryAsString = $binaryAsString; |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Return the OrcInputFormat so that it can be used in a druid query. |
||
| 26 | * |
||
| 27 | * @return array<string,string|array<string,bool|array<array<string,string>>>|bool> |
||
| 28 | */ |
||
| 29 | 2 | public function toArray(): array |
|
| 42 | } |
||
| 43 | } |