public class ColumnMapper extends Object
Constructor and Description |
---|
ColumnMapper(String serializedColumnMappings,
String defaultStorageType,
List<String> columnNames,
List<TypeInfo> columnTypes)
Create a mapping from Hive columns (rowID and column) to Accumulo columns (column family and
qualifier).
|
Modifier and Type | Method and Description |
---|---|
ColumnMapping |
get(int i) |
ColumnMapping |
getColumnMappingForHiveColumn(List<String> hiveColumns,
String hiveColumnName) |
List<ColumnMapping> |
getColumnMappings() |
HiveAccumuloRowIdColumnMapping |
getRowIdMapping() |
int |
getRowIdOffset() |
String |
getTypesString() |
boolean |
hasRowIdMapping() |
int |
size() |
String |
toString() |
public ColumnMapper(String serializedColumnMappings, String defaultStorageType, List<String> columnNames, List<TypeInfo> columnTypes) throws TooManyAccumuloColumnsException
ColumnMapping
s is important as it aligns with the
ordering of the columns for the Hive table schema.serializedColumnMappings
- Comma-separated list of designators that map to Accumulo columns whose offsets
correspond to the Hive table schemaTooManyAccumuloColumnsException
public int size()
public ColumnMapping get(int i)
public List<ColumnMapping> getColumnMappings()
public boolean hasRowIdMapping()
public HiveAccumuloRowIdColumnMapping getRowIdMapping()
public int getRowIdOffset()
public String getTypesString()
public ColumnMapping getColumnMappingForHiveColumn(List<String> hiveColumns, String hiveColumnName)
Copyright © 2017 The Apache Software Foundation. All rights reserved.