public class ColumnListsCache extends Object
Constructor and Description |
---|
ColumnListsCache() |
ColumnListsCache(org.apache.hadoop.hive.metastore.api.Table table) |
Modifier and Type | Method and Description |
---|---|
int |
addOrGet(List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns)
Checks if column list has been added before and returns position of column list.
|
List<org.apache.hadoop.hive.metastore.api.FieldSchema> |
getColumns(int index)
Returns list of columns at the specified position in fields list,
or null if index is negative or greater than fields list size.
|
List<List<org.apache.hadoop.hive.metastore.api.FieldSchema>> |
getFields() |
List<org.apache.hadoop.hive.metastore.api.FieldSchema> |
getTableSchemaColumns()
Safely retrieves Hive table columns from cache.
|
public ColumnListsCache(org.apache.hadoop.hive.metastore.api.Table table)
public ColumnListsCache()
public int addOrGet(List<org.apache.hadoop.hive.metastore.api.FieldSchema> columns)
columns
- list of columnspublic List<org.apache.hadoop.hive.metastore.api.FieldSchema> getColumns(int index)
index
- index of column list to returnpublic List<org.apache.hadoop.hive.metastore.api.FieldSchema> getTableSchemaColumns()
Copyright © 1970 The Apache Software Foundation. All rights reserved.