Class PartitionKey

    • Method Detail

      • type

        public final PartitionKeyType type()

        The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).

        If the service returns an enum value that is not available in the current SDK version, type will return PartitionKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).
        See Also:
        PartitionKeyType
      • typeAsString

        public final String typeAsString()

        The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).

        If the service returns an enum value that is not available in the current SDK version, type will return PartitionKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).
        See Also:
        PartitionKeyType
      • name

        public final String name()

        The name of the attribute used for a dimension key.

        Returns:
        The name of the attribute used for a dimension key.
      • enforcementInRecord

        public final PartitionKeyEnforcementLevel enforcementInRecord()

        The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).

        If the service returns an enum value that is not available in the current SDK version, enforcementInRecord will return PartitionKeyEnforcementLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from enforcementInRecordAsString().

        Returns:
        The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).
        See Also:
        PartitionKeyEnforcementLevel
      • enforcementInRecordAsString

        public final String enforcementInRecordAsString()

        The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).

        If the service returns an enum value that is not available in the current SDK version, enforcementInRecord will return PartitionKeyEnforcementLevel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from enforcementInRecordAsString().

        Returns:
        The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).
        See Also:
        PartitionKeyEnforcementLevel
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)