PHP Класс Google\Cloud\BigQuery\ValueMapper

Наследование: use trait Google\Cloud\ArrayTrait
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( boolean $returnInt64AsObject )
fromBigQuery ( array $value, array $schema ) Maps a value coming from BigQuery to the expected format for use in the library.
toParameter ( mixed $value ) : array Maps a value to the expected parameter format.

Приватные методы

Метод Описание
arrayToParameter ( array $array ) : array
assocArrayToParameter ( array $struct ) : array
objectToParameter ( mixed $object ) : array
recordFromBigQuery ( array $value, array $schema ) : array
repeatedValueFromBigQuery ( array $value, array $schema ) : array

Описание методов

__construct() публичный Метод

public __construct ( boolean $returnInt64AsObject )
$returnInt64AsObject boolean If true, 64 bit integers will be returned as a {@see \Google\Cloud\Int64} object for 32 bit platform compatibility.

fromBigQuery() публичный Метод

Maps a value coming from BigQuery to the expected format for use in the library.
public fromBigQuery ( array $value, array $schema )
$value array The value to map.
$schema array The schema describing the value.

toParameter() публичный Метод

Maps a value to the expected parameter format.
public toParameter ( mixed $value ) : array
$value mixed The value to map.
Результат array