Java Code Examples for org.apache.hadoop.hbase.filter.MultipleColumnPrefixFilter

The following examples show how to use org.apache.hadoop.hbase.filter.MultipleColumnPrefixFilter. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
protected Filter getColumnFilter(String[] columns) {
  int length = columns.length;
  byte[][] filter = new byte[length][];
  for (int i = 0; i < length; i++) {
    filter[i] = Bytes.toBytes(columns[i]);
  }
  return new MultipleColumnPrefixFilter(filter);
}
 
Example 2
Source Project: BigDataArchitect   Source File: ActiveUserRunner.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 获取这个列名过滤的column
 * 
 * @param columns
 * @return
 */
private Filter getColumnFilter(String[] columns) {
    int length = columns.length;
    byte[][] filter = new byte[length][];
    for (int i = 0; i < length; i++) {
        filter[i] = Bytes.toBytes(columns[i]);
    }
    return new MultipleColumnPrefixFilter(filter);
}
 
Example 3
Source Project: BigDataArchitect   Source File: NewInstallUserRunner.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 获取这个列名过滤的column
 * 
 * @param columns
 * @return
 */
private Filter getColumnFilter(String[] columns) {
    int length = columns.length;
    byte[][] filter = new byte[length][];
    for (int i = 0; i < length; i++) {
        filter[i] = Bytes.toBytes(columns[i]);
    }
    return new MultipleColumnPrefixFilter(filter);
}
 
Example 4
Source Project: BigDataArchitect   Source File: TransformerBaseRunner.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 获取这个列名过滤的column
 * 
 * @param columns
 * @return
 */
protected Filter getColumnFilter(String[] columns) {
    int length = columns.length;
    byte[][] filter = new byte[length][];
    for (int i = 0; i < length; i++) {
        filter[i] = Bytes.toBytes(columns[i]);
    }
    return new MultipleColumnPrefixFilter(filter);
}