Class BucketGroupId<T>

java.lang.Object
com.yahoo.search.grouping.result.GroupId
com.yahoo.search.grouping.result.BucketGroupId<T>
Direct Known Subclasses:
DoubleBucketId, LongBucketId, RawBucketId, StringBucketId

public abstract class BucketGroupId<T> extends GroupId
This abstract class is used in Group instances where the identifying expression evaluated to a BucketValue. The range is inclusive-from and exclusive-to.
Author:
Simon Thoresen Hult
  • Constructor Details

    • BucketGroupId

      public BucketGroupId(String type, T from, T to)
      Constructs a new instance of this class.
      Parameters:
      type - The type of this id's value.
      from - The inclusive-from of the range.
      to - The exclusive-to of the range.
    • BucketGroupId

      public BucketGroupId(String type, T from, String fromImage, T to, String toImage)
      Constructs a new instance of this class.
      Parameters:
      type - The type of this id's value.
      from - The inclusive-from of the range.
      fromImage - The String representation of the from argument.
      to - The exclusive-to of the range.
      toImage - The String representation of the to argument.
  • Method Details

    • getFrom

      public T getFrom()
      Returns the inclusive-from of the value range.
      Returns:
      The from-value.
    • getTo

      public T getTo()
      Returns the exclusive-to of the value range.
      Returns:
      The to-value.