Class RawBucketResultNode

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Comparable<ResultNode>

    public class RawBucketResultNode
    extends BucketResultNode
    Author:
    baldersheim
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int classId  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean empty()
      Tell if this bucket has zero width.
      byte[] getFrom()
      Obtain the bucket start
      byte[] getTo()
      Obtain the bucket end
      int hashCode()  
      protected int onCmp​(ResultNode rhs)
      This method must be implemented by all subclasses of this to allow ordering of results.
      protected void onDeserialize​(com.yahoo.vespa.objects.Deserializer buf)  
      protected int onGetClassId()  
      protected void onSerialize​(com.yahoo.vespa.objects.Serializer buf)  
      void visitMembers​(com.yahoo.vespa.objects.ObjectVisitor visitor)  
      • Methods inherited from class com.yahoo.vespa.objects.Identifiable

        clone, create, createFromId, deserialize, deserializeOptional, deserializeWithId, equals, getClassId, getUtf8, putUtf8, registerClass, serialize, serializeOptional, serializeWithId, toString
      • Methods inherited from class com.yahoo.vespa.objects.Selectable

        select, select, selectMembers
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • classId

        public static final int classId
    • Constructor Detail

      • RawBucketResultNode

        public RawBucketResultNode()
        Constructs an empty result node.
      • RawBucketResultNode

        public RawBucketResultNode​(ResultNode from,
                                   ResultNode to)
        Create a bucket with the given limits
        Parameters:
        from - bucket start
        to - bucket end
    • Method Detail

      • empty

        public boolean empty()
        Description copied from class: BucketResultNode
        Tell if this bucket has zero width. Indicates that is has no value and can be considered a NULL range. An empty range is used by the backend to represent hits that end in no buckets.
        Specified by:
        empty in class BucketResultNode
        Returns:
        If this bucket has zero width.
      • getFrom

        public byte[] getFrom()
        Obtain the bucket start
        Returns:
        bucket start
      • getTo

        public byte[] getTo()
        Obtain the bucket end
        Returns:
        bucket end
      • onSerialize

        protected void onSerialize​(com.yahoo.vespa.objects.Serializer buf)
        Overrides:
        onSerialize in class com.yahoo.vespa.objects.Identifiable
      • onDeserialize

        protected void onDeserialize​(com.yahoo.vespa.objects.Deserializer buf)
        Overrides:
        onDeserialize in class com.yahoo.vespa.objects.Identifiable
      • onCmp

        protected int onCmp​(ResultNode rhs)
        Description copied from class: ResultNode
        This method must be implemented by all subclasses of this to allow ordering of results. This method is used by the Cloneable implementation.
        Specified by:
        onCmp in class ResultNode
        Parameters:
        rhs - The other node to compare with.
        Returns:
        Comparable result.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.yahoo.vespa.objects.Identifiable
      • visitMembers

        public void visitMembers​(com.yahoo.vespa.objects.ObjectVisitor visitor)
        Overrides:
        visitMembers in class com.yahoo.vespa.objects.Identifiable