@Override
  public byte[][] getFamilies() {
    final byte[][] families = this.delegateScan.getFamilies();
    byte[][] cloneFamilies = new byte[families.length][];
    for (int i = 0; i < families.length; i++) {
      cloneFamilies[i] = Bytes.copy(families[i]);
    }
    return cloneFamilies;
  }
Create Immutable instance of Scan from given Scan object
@param scan Copy all values from Scan
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ImmutableScan.java