Class LogFileKey

  • All Implemented Interfaces:
    Comparable<LogFileKey>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<LogFileKey>

    public class LogFileKey
    extends Object
    implements org.apache.hadoop.io.WritableComparable<LogFileKey>
    • Constructor Detail

      • LogFileKey

        public LogFileKey()
    • Method Detail

      • readFields

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

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toKey

        public Key toKey()
                  throws IOException
        Converts LogFileKey to Key. Creates a Key containing all of the LogFileKey fields. The fields are stored so the Key sorts maintaining the legacy sort order. The row of the Key is composed of 3 fields: EventNum + tabletID + seq. The EventNum is the byte returned by eventType(). The column family is always the event. The column qualifier is dependent of the type of event and could be empty.
             Key Schema:
             Row = EventNum + tabletID + seq
             Family = event
             Qualifier = tserverSession OR filename OR KeyExtent
         
        Throws:
        IOException
      • fromKey

        public static LogFileKey fromKey​(Key key)
        Create LogFileKey from row. Follows schema defined by toKey()