public int getNumUniqueKeys() {
    return getCellSet().getNumUniqueKeys();
  }
ImmutableSegment is an abstract class that extends the API supported by a {@link Segment}, and is
not needed for a {@link MutableSegment}.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ImmutableSegment.java