org.apache.hadoop.hive.serde2
Class ColumnProjectionUtils

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.ColumnProjectionUtils

public final class ColumnProjectionUtils
extends Object

ColumnProjectionUtils.


Field Summary
static String READ_ALL_COLUMNS
           
static String READ_COLUMN_IDS_CONF_STR
           
static String READ_COLUMN_NAMES_CONF_STR
           
 
Method Summary
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 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 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READ_COLUMN_IDS_CONF_STR

public static final String READ_COLUMN_IDS_CONF_STR
See Also:
Constant Field Values

READ_ALL_COLUMNS

public static final String READ_ALL_COLUMNS
See Also:
Constant Field Values

READ_COLUMN_NAMES_CONF_STR

public static final String READ_COLUMN_NAMES_CONF_STR
See Also:
Constant Field Values
Method Detail

setFullyReadColumns

@Deprecated
public static void setFullyReadColumns(org.apache.hadoop.conf.Configuration conf)
Deprecated. for backwards compatibility with <= 0.12, use setReadAllColumns


setReadColumnIDs

@Deprecated
public static void setReadColumnIDs(org.apache.hadoop.conf.Configuration conf,
                                               List<Integer> ids)
Deprecated. for backwards compatibility with <= 0.12, use setReadAllColumns and appendReadColumns


appendReadColumnIDs

@Deprecated
public static void appendReadColumnIDs(org.apache.hadoop.conf.Configuration conf,
                                                  List<Integer> ids)
Deprecated. for backwards compatibility with <= 0.12, use appendReadColumns


setReadAllColumns

public static void setReadAllColumns(org.apache.hadoop.conf.Configuration conf)
Sets the READ_ALL_COLUMNS flag and removes any previously set column ids.


isReadAllColumns

public static boolean isReadAllColumns(org.apache.hadoop.conf.Configuration conf)
Returns the READ_ALL_COLUMNS columns flag.


appendReadColumns

public static void appendReadColumns(org.apache.hadoop.conf.Configuration conf,
                                     List<Integer> ids)
Appends read columns' ids (start from zero). Once a column is included in the list, a underlying record reader of a columnar file format (e.g. RCFile and ORC) can know what columns are needed.


appendReadColumns

public static void appendReadColumns(org.apache.hadoop.conf.Configuration conf,
                                     List<Integer> ids,
                                     List<String> names)

getReadColumnIDs

public 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.



Copyright © 2014 The Apache Software Foundation. All rights reserved.