Class StringBucket

  • All Implemented Interfaces:
    java.lang.Comparable<BucketValue>

    public class StringBucket
    extends BucketValue
    This class represents a String bucket in a PredefinedFunction.
    Author:
    Simon Thoresen Hult
    • Constructor Detail

      • StringBucket

        public StringBucket​(java.lang.String value)
        Constructs a new bucket for a single unique string
      • StringBucket

        public StringBucket​(StringValue value)
        Constructs a new bucket for a single unique string
      • StringBucket

        public StringBucket​(java.lang.String from,
                            java.lang.String to)
        Constructs a new bucket for a range of strings.
        Parameters:
        from - the start of the bucket, inclusive
        to - the end of the bucket, exclusive
      • StringBucket

        public StringBucket​(java.lang.String from,
                            java.lang.String to,
                            boolean toInclusive)
        Constructs a new bucket for a range of strings.
        Parameters:
        from - the start of the bucket, inclusive
        to - the end of the bucket
        toInclusive - whether to value should be included in the bucket
      • StringBucket

        public StringBucket​(ConstantValue<?> from,
                            ConstantValue<?> to)
        Constructs a new bucket for a range of strings.
        Parameters:
        from - the start of the bucket, inclusive
        to - the end of the bucket, exclusive