Class BucketDefinition

    • Field Detail

      • EXCEPTION_MESSAGE_KEY_UNSUPPORTED_ORDER_TYPE

        public static final java.lang.String EXCEPTION_MESSAGE_KEY_UNSUPPORTED_ORDER_TYPE
        See Also:
        Constant Field Values
      • VALUE_TYPE_VALUE

        protected static final byte VALUE_TYPE_VALUE
        Value type used for non-null values.
        See Also:
        Constant Field Values
      • VALUE_TYPE_NULL

        protected static final byte VALUE_TYPE_NULL
        Value type used for null bucket values.
        See Also:
        Constant Field Values
      • VALUE_TYPE_TOTAL

        protected static final byte VALUE_TYPE_TOTAL
        Value type used for total buckets.
        See Also:
        Constant Field Values
      • bucketValueComparator

        protected final java.util.Comparator<java.lang.Object> bucketValueComparator
    • Method Detail

      • createOrderComparator

        public static java.util.Comparator<java.lang.Object> createOrderComparator​(java.util.Comparator<java.lang.Object> comparator,
                                                                                   BucketOrder order)
      • isSorted

        public boolean isSorted()
      • computeTotal

        public boolean computeTotal()
        Whether this bucket needs total calculation.
        Returns:
        this bucket needs total calculation
      • setComputeTotal

        public void setComputeTotal()
        Instructs that the bucket will need total bucket calculation.
        See Also:
        computeTotal()
      • getTotalPosition

        public CrosstabTotalPositionEnum getTotalPosition()
        Returns the total bucket position.
        Returns:
        the total bucket position
      • isMergeHeaderCells

        public boolean isMergeHeaderCells()
      • setMergeHeaderCells

        public void setMergeHeaderCells​(boolean mergeHeaderCells)