Interface PriorityQueueSetFactory

    • Method Detail

      • create

        @Nonnull
        <T extends HeapPriorityQueueElement & PriorityComparable<? super T> & Keyed<?>> KeyGroupedInternalPriorityQueue<T> create​(@Nonnull
                                                                                                                                  String stateName,
                                                                                                                                  @Nonnull
                                                                                                                                  org.apache.flink.api.common.typeutils.TypeSerializer<T> byteOrderedElementSerializer)
        Type Parameters:
        T - type of the stored elements.
        Parameters:
        stateName - unique name for associated with this queue.
        byteOrderedElementSerializer - a serializer that with a format that is lexicographically ordered in alignment with elementPriorityComparator.
        Returns:
        the queue with the specified unique name.
      • create

        default <T extends HeapPriorityQueueElement & PriorityComparable<? super T> & Keyed<?>> KeyGroupedInternalPriorityQueue<T> create​(@Nonnull
                                                                                                                                          String stateName,
                                                                                                                                          @Nonnull
                                                                                                                                          org.apache.flink.api.common.typeutils.TypeSerializer<T> byteOrderedElementSerializer,
                                                                                                                                          boolean allowFutureMetadataUpdates)
        Type Parameters:
        T - type of the stored elements.
        Parameters:
        stateName - unique name for associated with this queue.
        byteOrderedElementSerializer - a serializer that with a format that is lexicographically ordered in alignment with elementPriorityComparator.
        allowFutureMetadataUpdates - whether allow metadata to update in the future or not.
        Returns:
        the queue with the specified unique name.