org.apache.hadoop.hbase.mapreduce
Class ImportTsv.TsvParser
java.lang.Object
org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser
- Enclosing class:
- ImportTsv
public static class ImportTsv.TsvParser
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_TIMESTAMP_COLUMN_INDEX
public static final int DEFAULT_TIMESTAMP_COLUMN_INDEX
- See Also:
- Constant Field Values
ROWKEY_COLUMN_SPEC
public static final String ROWKEY_COLUMN_SPEC
- See Also:
- Constant Field Values
TIMESTAMPKEY_COLUMN_SPEC
public static final String TIMESTAMPKEY_COLUMN_SPEC
- See Also:
- Constant Field Values
ImportTsv.TsvParser
public ImportTsv.TsvParser(String columnsSpecification,
String separatorStr)
- Parameters:
columnsSpecification
- the list of columns to parser out, comma separated.
The row key should be the special token TsvParser.ROWKEY_COLUMN_SPEC
hasTimestamp
public boolean hasTimestamp()
getTimestampKeyColumnIndex
public int getTimestampKeyColumnIndex()
getRowKeyColumnIndex
public int getRowKeyColumnIndex()
getFamily
public byte[] getFamily(int idx)
getQualifier
public byte[] getQualifier(int idx)
parse
public org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.ParsedLine parse(byte[] lineBytes,
int length)
throws ImportTsv.TsvParser.BadTsvLineException
- Throws:
ImportTsv.TsvParser.BadTsvLineException
parseRowKey
public Pair<Integer,Integer> parseRowKey(byte[] lineBytes,
int length)
throws ImportTsv.TsvParser.BadTsvLineException
- Throws:
ImportTsv.TsvParser.BadTsvLineException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.