Class DerivedDataSegmentDefinition


  • public class DerivedDataSegmentDefinition
    extends Object
    Standard definition of the async derived data segment. Provides metainformation for configuration of DD pipeline and the process of calculation.
    • Constructor Detail

      • DerivedDataSegmentDefinition

        public DerivedDataSegmentDefinition​(String segmentId,
                                            DerivedDataSegmentBucket bucket,
                                            int priority,
                                            DerivedDataSegmentConcurrencyStrategy concurrency,
                                            MultithreadingComputationPolicy computationPolicy,
                                            String segmentName,
                                            String segmentStatusTemplate,
                                            boolean longRunningSegment)
        Creates an instance of the DD pipeline segment definition.
        Parameters:
        segmentId - The identifier of the segment.
        bucket - The DD pipeline bucket.
        priority - The priority of the computation.
        concurrency - The concurrency policy of the computation.
        computationPolicy - The meltithreading computation policy.
        segmentName - The user-readable segment name.
        segmentStatusTemplate - The computation status template for the rendering.
        longRunningSegment - Designates that the segment is long-running one so it needs special indication.
    • Method Detail

      • getPriority

        public int getPriority()
        Returns:
        the priority
      • getSegmentId

        public String getSegmentId()
        Returns:
        the segmentId
      • getSegmentName

        public String getSegmentName()
        Returns:
        the segmentName
      • getSegmentStatusTemplate

        public String getSegmentStatusTemplate()
        Returns:
        the segmentStatusTemplate
      • isLazy

        public boolean isLazy()
        Returns:
        the lazy
      • isLongRunningSegment

        public boolean isLongRunningSegment()
        Returns:
        the longRunningSegment
      • setLazy

        public void setLazy​(boolean lazy)
        Parameters:
        lazy - the lazy to set
      • setPriority

        public void setPriority​(int priority)
        Parameters:
        priority - the priority to set
      • setSegmentId

        public void setSegmentId​(String segmentId)
        Parameters:
        segmentId - the segmentId to set