PHP Client for Apache Ignite
Public Member Functions | List of all members
Apache\Ignite\Type\ObjectArrayType Class Reference
Inheritance diagram for Apache\Ignite\Type\ObjectArrayType:
Apache\Ignite\Type\ObjectType

Public Member Functions

 __construct ($elementType=null)
 
 getElementType ()
 
- Public Member Functions inherited from Apache\Ignite\Type\ObjectType
 getTypeCode ()
 

Additional Inherited Members

- Public Attributes inherited from Apache\Ignite\Type\ObjectType
const BYTE = 1
 
const SHORT = 2
 
const INTEGER = 3
 
const LONG = 4
 
const FLOAT = 5
 
const DOUBLE = 6
 
const CHAR = 7
 
const BOOLEAN = 8
 
const STRING = 9
 
const UUID = 10
 
const DATE = 11
 
const BYTE_ARRAY = 12
 
const SHORT_ARRAY = 13
 
const INTEGER_ARRAY = 14
 
const LONG_ARRAY = 15
 
const FLOAT_ARRAY = 16
 
const DOUBLE_ARRAY = 17
 
const CHAR_ARRAY = 18
 
const BOOLEAN_ARRAY = 19
 
const STRING_ARRAY = 20
 
const UUID_ARRAY = 21
 
const DATE_ARRAY = 22
 
const ENUM = 28
 
const ENUM_ARRAY = 29
 
const DECIMAL = 30
 
const DECIMAL_ARRAY = 31
 
const TIMESTAMP = 33
 
const TIMESTAMP_ARRAY = 34
 
const TIME = 36
 
const TIME_ARRAY = 37
 
const OBJECT_ARRAY = 23
 
const COLLECTION = 24
 
const MAP = 25
 
const BINARY_OBJECT = 27
 
const BINARY_ENUM = 38
 
const NULL = 101
 
const COMPLEX_OBJECT = 103
 

Detailed Description

Class representing an array type of Ignite objects.

It is described by ObjectType::OBJECT_ARRAY.

Constructor & Destructor Documentation

◆ __construct()

Apache\Ignite\Type\ObjectArrayType::__construct (   $elementType = null)

Public constructor.

Optionally specifies Ignite type of elements in the array.

If Ignite type of elements is not specified then during operations the Ignite client tries to make automatic mapping between PHP types and Ignite object types - according to the mapping table defined in the description of the ObjectType class.

Parameters
int | ObjectType | null$elementTypeIgnite type of the array element:
  • either a type code of primitive (simple) type (PrimitiveTypeCodes)
  • or an instance of class representing non-primitive (composite) type
  • or null (or not specified) that means the type is not specified
Exceptions
ClientExceptionif error.

Member Function Documentation

◆ getElementType()

Apache\Ignite\Type\ObjectArrayType::getElementType ( )

Returns Ignite type of the array element.

Returns
int|ObjectType|null Ignite type of the array element:
  • either a type code of primitive (simple) type (PrimitiveTypeCodes)
  • or an instance of class representing non-primitive (composite) type
  • or null that means the type is not specified

The documentation for this class was generated from the following file: