public int getId() {
    // Default implementation, can be overridden for individual enum members.
    return ordinal();
  }
Use this instead of {@link #ordinal()}. They work exactly the same, except DATA and
ENCODED_DATA get the same id using this method (overridden for {@link #ENCODED_DATA}).
@return block type id from 0 to the number of block types - 1
hbase-common/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockType.java