Class StringBucket

All Implemented Interfaces:
Comparable<BucketValue>

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

    • StringBucket

      public StringBucket(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(String from, 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(String from, 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
  • Method Details