Class IntegrationTestLazyCfLoading.DataGenerator

java.lang.Object
org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
org.apache.hadoop.hbase.IntegrationTestLazyCfLoading.DataGenerator
Enclosing class:
IntegrationTestLazyCfLoading

private static class IntegrationTestLazyCfLoading.DataGenerator extends org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
Custom LoadTestDataGenerator. Uses key generation and verification from LoadTestKVGenerator. Creates 3 column families; one with an integer column to filter on, the 2nd one with an integer column that matches the first integer column (for test-specific verification), and byte[] value that is used for general verification; and the third one with just the value.
  • Field Details

  • Constructor Details

  • Method Details

    • getExpectedNumberOfKeys

      public long getExpectedNumberOfKeys()
    • getTotalNumberOfKeys

      public long getTotalNumberOfKeys()
    • getDeterministicUniqueKey

      public byte[] getDeterministicUniqueKey(long keyBase)
      Specified by:
      getDeterministicUniqueKey in class org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
    • getColumnFamilies

      public byte[][] getColumnFamilies()
      Specified by:
      getColumnFamilies in class org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
    • generateColumnsForCf

      public byte[][] generateColumnsForCf(byte[] rowKey, byte[] cf)
      Specified by:
      generateColumnsForCf in class org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
    • generateValue

      public byte[] generateValue(byte[] rowKey, byte[] cf, byte[] column)
      Specified by:
      generateValue in class org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
    • verify

      public boolean verify(byte[] rowKey, byte[] cf, byte[] column, byte[] value)
      Specified by:
      verify in class org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
    • verify

      public boolean verify(byte[] rowKey, byte[] cf, Set<byte[]> columnSet)
      Specified by:
      verify in class org.apache.hadoop.hbase.util.test.LoadTestDataGenerator
    • getScanFilter

      public org.apache.hadoop.hbase.filter.Filter getScanFilter()