public class HoodieColumnProjectionUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
static String |
READ_COLUMN_IDS_CONF_STR |
static String |
READ_COLUMN_NAMES_CONF_STR
the nested column path is the string from the root to the leaf
e.g.
|
| Constructor and Description |
|---|
HoodieColumnProjectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<Pair<String,String>> |
getIOColumnNameAndTypes(org.apache.hadoop.conf.Configuration conf) |
static List<String> |
getIOColumns(org.apache.hadoop.conf.Configuration conf) |
static List<String> |
getIOColumnTypes(org.apache.hadoop.conf.Configuration conf) |
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 String[] |
getReadColumnNames(org.apache.hadoop.conf.Configuration conf) |
static boolean |
supportTimestamp(org.apache.hadoop.conf.Configuration conf)
If schema contains timestamp columns, this method is used for compatibility when there is no timestamp fields.
|
static boolean |
typeContainsTimestamp(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo type) |
public static final org.slf4j.Logger LOG
public static final String READ_COLUMN_IDS_CONF_STR
public static final String READ_COLUMN_NAMES_CONF_STR
public static List<Integer> getReadColumnIDs(org.apache.hadoop.conf.Configuration conf)
public static String[] getReadColumnNames(org.apache.hadoop.conf.Configuration conf)
public static List<String> getIOColumnTypes(org.apache.hadoop.conf.Configuration conf)
public static List<Pair<String,String>> getIOColumnNameAndTypes(org.apache.hadoop.conf.Configuration conf)
public static boolean supportTimestamp(org.apache.hadoop.conf.Configuration conf)
We expect to use parquet-avro reader HoodieAvroParquetReader to read
timestamp column when read columns contain timestamp type.
public static boolean typeContainsTimestamp(org.apache.hadoop.hive.serde2.typeinfo.TypeInfo type)
Copyright © 2024 The Apache Software Foundation. All rights reserved.