public final class ColumnProjectionUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
READ_ALL_COLUMNS |
static String |
READ_COLUMN_IDS_CONF_STR |
static String |
READ_COLUMN_NAMES_CONF_STR |
Modifier and Type | Method and Description |
---|---|
static void |
appendReadColumnIDs(org.apache.hadoop.conf.Configuration conf,
List<Integer> ids)
Deprecated.
for backwards compatibility with <= 0.12, use appendReadColumns
|
static void |
appendReadColumns(org.apache.hadoop.conf.Configuration conf,
List<Integer> ids)
Appends read columns' ids (start from zero).
|
static void |
appendReadColumns(org.apache.hadoop.conf.Configuration conf,
List<Integer> ids,
List<String> names) |
static void |
appendReadColumns(StringBuilder readColumnsBuffer,
StringBuilder readColumnNamesBuffer,
List<Integer> ids,
List<String> names) |
static List<Integer> |
getReadColumnIDs(org.apache.hadoop.conf.Configuration conf)
Returns an array of column ids(start from zero) which is set in the given
parameter conf.
|
static List<String> |
getReadColumnNames(org.apache.hadoop.conf.Configuration conf) |
static boolean |
isReadAllColumns(org.apache.hadoop.conf.Configuration conf)
Returns the READ_ALL_COLUMNS columns flag.
|
static void |
setFullyReadColumns(org.apache.hadoop.conf.Configuration conf)
Deprecated.
for backwards compatibility with <= 0.12, use setReadAllColumns
|
static void |
setReadAllColumns(org.apache.hadoop.conf.Configuration conf)
Sets the READ_ALL_COLUMNS flag and removes any previously
set column ids.
|
static void |
setReadColumnIDs(org.apache.hadoop.conf.Configuration conf,
List<Integer> ids)
Deprecated.
for backwards compatibility with <= 0.12, use setReadAllColumns
and appendReadColumns
|
public static final String READ_COLUMN_IDS_CONF_STR
public static final String READ_ALL_COLUMNS
public static final String READ_COLUMN_NAMES_CONF_STR
@Deprecated public static void setFullyReadColumns(org.apache.hadoop.conf.Configuration conf)
@Deprecated public static void setReadColumnIDs(org.apache.hadoop.conf.Configuration conf, List<Integer> ids)
@Deprecated public static void appendReadColumnIDs(org.apache.hadoop.conf.Configuration conf, List<Integer> ids)
public static void setReadAllColumns(org.apache.hadoop.conf.Configuration conf)
public static boolean isReadAllColumns(org.apache.hadoop.conf.Configuration conf)
public static void appendReadColumns(org.apache.hadoop.conf.Configuration conf, List<Integer> ids)
public static void appendReadColumns(org.apache.hadoop.conf.Configuration conf, List<Integer> ids, List<String> names)
public static void appendReadColumns(StringBuilder readColumnsBuffer, StringBuilder readColumnNamesBuffer, List<Integer> ids, List<String> names)
public static List<Integer> getReadColumnIDs(org.apache.hadoop.conf.Configuration conf)
Copyright © 2017 The Apache Software Foundation. All rights reserved.