public class ColumnMappings extends Object implements Iterable<ColumnMappings.ColumnMapping>
Modifier and Type | Class and Description |
---|---|
static class |
ColumnMappings.ColumnMapping
Represents a mapping from a single Hive column to an HBase column qualifier, column family or row key.
|
Constructor and Description |
---|
ColumnMappings(List<ColumnMappings.ColumnMapping> columnMapping,
int keyIndex) |
ColumnMappings(List<ColumnMappings.ColumnMapping> columnMapping,
int keyIndex,
int timestampIndex) |
Modifier and Type | Method and Description |
---|---|
ColumnMappings.ColumnMapping[] |
getColumnsMapping() |
int |
getKeyIndex() |
ColumnMappings.ColumnMapping |
getKeyMapping() |
int |
getTimestampIndex() |
ColumnMappings.ColumnMapping |
getTimestampMapping() |
Iterator<ColumnMappings.ColumnMapping> |
iterator() |
int |
size() |
public ColumnMappings(List<ColumnMappings.ColumnMapping> columnMapping, int keyIndex)
public ColumnMappings(List<ColumnMappings.ColumnMapping> columnMapping, int keyIndex, int timestampIndex)
public Iterator<ColumnMappings.ColumnMapping> iterator()
iterator
in interface Iterable<ColumnMappings.ColumnMapping>
public int size()
public ColumnMappings.ColumnMapping getKeyMapping()
public ColumnMappings.ColumnMapping getTimestampMapping()
public int getKeyIndex()
public int getTimestampIndex()
public ColumnMappings.ColumnMapping[] getColumnsMapping()
Copyright © 2017 The Apache Software Foundation. All rights reserved.