Class PartitionedPrefix

    • Method Detail

      • partitionDateSource

        public final PartitionDateSource partitionDateSource()

        Specifies the partition date source for the partitioned prefix. PartitionDateSource can be EventTime or DeliveryTime.

        For DeliveryTime, the time in the log file names corresponds to the delivery time for the log files.

        For EventTime, The logs delivered are for a specific day only. The year, month, and day correspond to the day on which the event occurred, and the hour, minutes and seconds are set to 00 in the key.

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

        Returns:
        Specifies the partition date source for the partitioned prefix. PartitionDateSource can be EventTime or DeliveryTime.

        For DeliveryTime, the time in the log file names corresponds to the delivery time for the log files.

        For EventTime, The logs delivered are for a specific day only. The year, month, and day correspond to the day on which the event occurred, and the hour, minutes and seconds are set to 00 in the key.

        See Also:
        PartitionDateSource
      • partitionDateSourceAsString

        public final String partitionDateSourceAsString()

        Specifies the partition date source for the partitioned prefix. PartitionDateSource can be EventTime or DeliveryTime.

        For DeliveryTime, the time in the log file names corresponds to the delivery time for the log files.

        For EventTime, The logs delivered are for a specific day only. The year, month, and day correspond to the day on which the event occurred, and the hour, minutes and seconds are set to 00 in the key.

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

        Returns:
        Specifies the partition date source for the partitioned prefix. PartitionDateSource can be EventTime or DeliveryTime.

        For DeliveryTime, the time in the log file names corresponds to the delivery time for the log files.

        For EventTime, The logs delivered are for a specific day only. The year, month, and day correspond to the day on which the event occurred, and the hour, minutes and seconds are set to 00 in the key.

        See Also:
        PartitionDateSource
      • 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)