public byte[][] getFamilies() {
    if (hasFamilies()) {
      return this.familyMap.keySet().toArray(new byte[0][0]);
    }
    return null;
  }
Returns the keys of the familyMap
hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java