A generic object interface that is returned to the user when the domain class can not be created from any of the distributed Hazelcast data structures like IMap, IQueue etc.

GenericRecord also allows reading from a cluster without having the classes on the client side. This way, the clients can read and write objects back to the cluster without the need to have the domain classes.

GenericRecords is only supported for Compact serializable objects.

Hierarchy

  • GenericRecord

Methods

  • Clones this generic record and returns a new one.

    Throws

    TypeError if the type of any value does not match with its field type.

    Throws

    RangeError if any provided fieldName does not exist in the record or a field value provided is out of range.

    Parameters

    • Optional fieldsToUpdate: {
          [fieldName: string]: any;
      }

      If provided, some fields of the returned generic record will be updated. Keys of this object are fieldNames and values are field values.

      • [fieldName: string]: any

    Returns GenericRecord

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns boolean[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns LocalDate[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns BigDecimal[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns Long[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns Buffer

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns boolean[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns Long[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns string[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns LocalTime[]

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns boolean

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns LocalDate

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns BigDecimal

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns Long

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns boolean

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns Long

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns number

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns string

  • Returns value of the field.

    Throws

    HazelcastSerializationError if the field name does not exist in the generic record or the type of the field does not match the one in the generic record.

    Parameters

    • fieldName: string

      the name of the field

    Returns LocalTime

  • Returns true if field exists in the definition of the class. Note that returns true even if the field is null.

    Parameters

    • fieldName: string

      the name of the field

    Returns boolean

Generated using TypeDoc