Class Boundaries.Range

  • All Implemented Interfaces:
    java.lang.Comparable<Boundaries.Range>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<Boundaries.Range>
    Enclosing class:
    Boundaries

    public static class Boundaries.Range
    extends java.lang.Object
    implements org.apache.hadoop.io.WritableComparable<Boundaries.Range>
    • Constructor Detail

      • Range

        public Range()
      • Range

        public Range​(int start,
                     int end)
    • Method Detail

      • getStart

        public int getStart()
        Returns:
        the start of the sequence. 0 is the start index.
      • getEnd

        public int getEnd()
        Returns:
        the end of the sequence (inclusive): since the next start at end+1, you have to check this boundary with <= in loops.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • write

        public void write​(java.io.DataOutput out)
                   throws java.io.IOException
        Specified by:
        write in interface org.apache.hadoop.io.Writable
        Throws:
        java.io.IOException
      • readFields

        public void readFields​(java.io.DataInput in)
                        throws java.io.IOException
        Specified by:
        readFields in interface org.apache.hadoop.io.Writable
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object