Modifier and Type | Class and Description |
---|---|
static class |
ImportTsv.TsvParser.BadTsvLineException |
(package private) class |
ImportTsv.TsvParser.ParsedLine |
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTES_COLUMN_SPEC |
private int |
attrKeyColumnIndex |
static String |
CELL_TTL_COLUMN_SPEC |
static String |
CELL_VISIBILITY_COLUMN_SPEC |
private int |
cellTTLColumnIndex |
private int |
cellVisibilityColumnIndex |
static int |
DEFAULT_ATTRIBUTES_COLUMN_INDEX |
static int |
DEFAULT_CELL_TTL_COLUMN_INDEX |
static int |
DEFAULT_CELL_VISIBILITY_COLUMN_INDEX |
static int |
DEFAULT_TIMESTAMP_COLUMN_INDEX |
private byte[][] |
families
Column families and qualifiers mapped to the TSV columns
|
private int |
maxColumnCount |
private byte[][] |
qualifiers |
static String |
ROWKEY_COLUMN_SPEC |
private int |
rowKeyColumnIndex |
private byte |
separatorByte |
static String |
TIMESTAMPKEY_COLUMN_SPEC |
private int |
timestampKeyColumnIndex |
Constructor and Description |
---|
ImportTsv.TsvParser(String columnsSpecification,
String separatorStr) |
Modifier and Type | Method and Description |
---|---|
int |
getAttributesKeyColumnIndex() |
int |
getCellTTLColumnIndex() |
int |
getCellVisibilityColumnIndex() |
byte[] |
getFamily(int idx) |
byte[] |
getQualifier(int idx) |
int |
getRowKeyColumnIndex() |
int |
getTimestampKeyColumnIndex() |
boolean |
hasAttributes() |
boolean |
hasCellTTL() |
boolean |
hasCellVisibility() |
boolean |
hasTimestamp() |
ImportTsv.TsvParser.ParsedLine |
parse(byte[] lineBytes,
int length) |
Pair<Integer,Integer> |
parseRowKey(byte[] lineBytes,
int length)
Return starting position and length of row key from the specified line bytes.
|
private final byte[][] families
private final byte[][] qualifiers
private final byte separatorByte
private int rowKeyColumnIndex
private int maxColumnCount
public static final int DEFAULT_TIMESTAMP_COLUMN_INDEX
private int timestampKeyColumnIndex
public static final String ROWKEY_COLUMN_SPEC
public static final String TIMESTAMPKEY_COLUMN_SPEC
public static final String ATTRIBUTES_COLUMN_SPEC
public static final String CELL_VISIBILITY_COLUMN_SPEC
public static final String CELL_TTL_COLUMN_SPEC
private int attrKeyColumnIndex
public static final int DEFAULT_ATTRIBUTES_COLUMN_INDEX
public static final int DEFAULT_CELL_VISIBILITY_COLUMN_INDEX
public static final int DEFAULT_CELL_TTL_COLUMN_INDEX
private int cellVisibilityColumnIndex
private int cellTTLColumnIndex
public boolean hasTimestamp()
public int getTimestampKeyColumnIndex()
public boolean hasAttributes()
public boolean hasCellVisibility()
public boolean hasCellTTL()
public int getAttributesKeyColumnIndex()
public int getCellVisibilityColumnIndex()
public int getCellTTLColumnIndex()
public int getRowKeyColumnIndex()
public byte[] getFamily(int idx)
public byte[] getQualifier(int idx)
public ImportTsv.TsvParser.ParsedLine parse(byte[] lineBytes, int length) throws ImportTsv.TsvParser.BadTsvLineException
public Pair<Integer,Integer> parseRowKey(byte[] lineBytes, int length) throws ImportTsv.TsvParser.BadTsvLineException
lineBytes
- length
- ImportTsv.TsvParser.BadTsvLineException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.