Class NormalizedDateSegmentNameGenerator

    • Constructor Detail

      • NormalizedDateSegmentNameGenerator

        public NormalizedDateSegmentNameGenerator​(String tableName,
                                                  @Nullable
                                                  String segmentNamePrefix,
                                                  boolean excludeSequenceId,
                                                  @Nullable
                                                  String pushType,
                                                  @Nullable
                                                  String pushFrequency,
                                                  @Nullable
                                                  DateTimeFormatSpec dateTimeFormatSpec,
                                                  @Nullable
                                                  String segmentNamePostfix)
      • NormalizedDateSegmentNameGenerator

        public NormalizedDateSegmentNameGenerator​(String tableName,
                                                  @Nullable
                                                  String segmentNamePrefix,
                                                  boolean excludeSequenceId,
                                                  @Nullable
                                                  String pushType,
                                                  @Nullable
                                                  String pushFrequency,
                                                  @Nullable
                                                  DateTimeFormatSpec dateTimeFormatSpec,
                                                  @Nullable
                                                  String segmentNamePostfix,
                                                  boolean appendUUIDToSegmentName)
    • Method Detail

      • generateSegmentName

        public String generateSegmentName​(int sequenceId,
                                          @Nullable
                                          Object minTimeValue,
                                          @Nullable
                                          Object maxTimeValue)
        Description copied from interface: SegmentNameGenerator
        Generates the segment name.
        Specified by:
        generateSegmentName in interface SegmentNameGenerator
        Parameters:
        sequenceId - Segment sequence id (negative value means INVALID)
        minTimeValue - Minimum time value
        maxTimeValue - Maximum time value
        Returns:
        Segment name generated
      • getNormalizedDate

        public String getNormalizedDate​(Object timeValue)
        Converts the time value into human readable date format.
        Parameters:
        timeValue - Time value
        Returns:
        Normalized date string