Class TestImportTsvParser

java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestImportTsvParser

@Tag("org.apache.hadoop.hbase.testclassification.MapReduceTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests") public class TestImportTsvParser extends Object
Tests for ImportTsv.TsvParser.
  • Constructor Details

  • Method Details

    • assertBytesEquals

      private void assertBytesEquals(byte[] a, byte[] b)
    • checkParsing

      private void checkParsing(org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.ParsedLine parsed, Iterable<String> expected)
    • testTsvParserSpecParsing

      @Test public void testTsvParserSpecParsing()
    • testTsvParser

      @Test public void testTsvParser() throws org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
      Throws:
      org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
    • testTsvParserWithTimestamp

      @Test public void testTsvParserWithTimestamp() throws org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
      Throws:
      org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
    • testTsvParserBadTsvLineExcessiveColumns

      @Test public void testTsvParserBadTsvLineExcessiveColumns() throws org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
      Test cases that throw BadTsvLineException
      Throws:
      org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
    • testTsvParserBadTsvLineZeroColumn

      @Test public void testTsvParserBadTsvLineZeroColumn() throws org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
      Throws:
      org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
    • testTsvParserBadTsvLineOnlyKey

      @Test public void testTsvParserBadTsvLineOnlyKey() throws org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
      Throws:
      org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
    • testTsvParserBadTsvLineNoRowKey

      @Test public void testTsvParserBadTsvLineNoRowKey() throws org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
      Throws:
      org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
    • testTsvParserInvalidTimestamp

      @Test public void testTsvParserInvalidTimestamp() throws org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
      Throws:
      org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
    • testTsvParserNoTimestampValue

      @Test public void testTsvParserNoTimestampValue() throws org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
      Throws:
      org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
    • testTsvParserParseRowKey

      @Test public void testTsvParserParseRowKey() throws org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
      Throws:
      org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
    • testTsvParseAttributesKey

      @Test public void testTsvParseAttributesKey() throws org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
      Throws:
      org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
    • testTsvParserWithCellVisibilityCol

      @Test public void testTsvParserWithCellVisibilityCol() throws org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException
      Throws:
      org.apache.hadoop.hbase.mapreduce.ImportTsv.TsvParser.BadTsvLineException