'This is filter for testing "in-memory HBase".
This method is called from scan() when \'ColumnPrefixFilter\' is found
in the \'filter\' argument.
:param args: a list of filter arguments, contain prefix of column
:param rows: a dict of row prefixes for filtering'

@staticmethod
def ColumnPrefixFilter(args, rows):

    value = args[0]
    column = ('f:' + value)
    r = {}
    for (row, data) in rows.items():
        column_dict = {}
        for key in data:
            if key.startswith(column):
                column_dict[key] = data[key]
        r[row] = column_dict
    return r
