Java 类org.apache.hadoop.hbase.codec.prefixtree.row.data.TestRowDataTrivialWithTags 实例源码

项目:ditb    文件:TestKeyValueTool.java   
@Test
public void testRoundTripToBytes() {
  if(rows instanceof TestRowDataTrivialWithTags || rows instanceof TestRowDataRandomKeyValuesWithTags) {
    return;
  }
  List<KeyValue> kvs = rows.getInputs();
  ByteBuffer bb = KeyValueTestUtil.toByteBufferAndRewind(kvs, false);
  List<KeyValue> roundTrippedKvs = KeyValueTestUtil.rewindThenToList(bb, false, false);
  Assert.assertArrayEquals(kvs.toArray(), roundTrippedKvs.toArray());
}
项目:ditb    文件:TestRowData.java   
public static Collection<TestRowData> getAll() {
      List<TestRowData> all = Lists.newArrayList();
      //simple
      all.add(new TestRowDataEmpty());
      all.add(new TestRowDataTrivial());
      all.add(new TestRowDataTrivialWithTags());
      all.add(new TestRowDataSimple());
      all.add(new TestRowDataDeeper());

      //more specific
      all.add(new TestRowDataSingleQualifier());
//      all.add(new TestRowDataMultiFamilies());//multiple families disabled in PrefixTreeEncoder
      all.add(new TestRowDataNub());
      all.add(new TestRowDataSearcherRowMiss());
      all.add(new TestRowDataQualifierByteOrdering());
      all.add(new TestRowDataComplexQualifiers());
      all.add(new TestRowDataDifferentTimestamps());

      //larger data volumes (hard to debug)
      all.add(new TestRowDataNumberStrings());
      all.add(new TestRowDataUrls());
      all.add(new TestRowDataUrlsExample());
      all.add(new TestRowDataExerciseFInts());
      all.add(new TestRowDataRandomKeyValues());
      all.add(new TestRowDataRandomKeyValuesWithTags());

      //test data for HBase-12078
      all.add(new TestRowDataSearchWithPrefix());
      return all;
    }
项目:pbase    文件:TestKeyValueTool.java   
@Test
public void testRoundTripToBytes() {
  if(rows instanceof TestRowDataTrivialWithTags || rows instanceof TestRowDataRandomKeyValuesWithTags) {
    return;
  }
  List<KeyValue> kvs = rows.getInputs();
  ByteBuffer bb = KeyValueTestUtil.toByteBufferAndRewind(kvs, false);
  List<KeyValue> roundTrippedKvs = KeyValueTestUtil.rewindThenToList(bb, false, false);
  Assert.assertArrayEquals(kvs.toArray(), roundTrippedKvs.toArray());
}
项目:pbase    文件:TestRowData.java   
public static Collection<TestRowData> getAll() {
      List<TestRowData> all = Lists.newArrayList();
      //simple
      all.add(new TestRowDataEmpty());
      all.add(new TestRowDataTrivial());
      all.add(new TestRowDataTrivialWithTags());
      all.add(new TestRowDataSimple());
      all.add(new TestRowDataDeeper());

      //more specific
      all.add(new TestRowDataSingleQualifier());
//      all.add(new TestRowDataMultiFamilies());//multiple families disabled in PrefixTreeEncoder
      all.add(new TestRowDataNub());
      all.add(new TestRowDataSearcherRowMiss());
      all.add(new TestRowDataQualifierByteOrdering());
      all.add(new TestRowDataComplexQualifiers());
      all.add(new TestRowDataDifferentTimestamps());

      //larger data volumes (hard to debug)
      all.add(new TestRowDataNumberStrings());
      all.add(new TestRowDataUrls());
      all.add(new TestRowDataUrlsExample());
      all.add(new TestRowDataExerciseFInts());
      all.add(new TestRowDataRandomKeyValues());
      all.add(new TestRowDataRandomKeyValuesWithTags());

      //test data for HBase-12078
      all.add(new TestRowDataSearchWithPrefix());
      return all;
    }
项目:HIndex    文件:TestKeyValueTool.java   
@Test
public void testRoundTripToBytes() {
  if(rows instanceof TestRowDataTrivialWithTags || rows instanceof TestRowDataRandomKeyValuesWithTags) {
    return;
  }
  List<KeyValue> kvs = rows.getInputs();
  ByteBuffer bb = KeyValueTestUtil.toByteBufferAndRewind(kvs, false);
  List<KeyValue> roundTrippedKvs = KeyValueTestUtil.rewindThenToList(bb, false, false);
  Assert.assertArrayEquals(kvs.toArray(), roundTrippedKvs.toArray());
}
项目:HIndex    文件:TestRowData.java   
public static Collection<TestRowData> getAll() {
      List<TestRowData> all = Lists.newArrayList();
      //simple
      all.add(new TestRowDataEmpty());
      all.add(new TestRowDataTrivial());
      all.add(new TestRowDataTrivialWithTags());
      all.add(new TestRowDataSimple());
      all.add(new TestRowDataDeeper());

      //more specific
      all.add(new TestRowDataSingleQualifier());
//      all.add(new TestRowDataMultiFamilies());//multiple families disabled in PrefixTreeEncoder
      all.add(new TestRowDataNub());
      all.add(new TestRowDataSearcherRowMiss());
      all.add(new TestRowDataQualifierByteOrdering());
      all.add(new TestRowDataComplexQualifiers());
      all.add(new TestRowDataDifferentTimestamps());

      //larger data volumes (hard to debug)
      all.add(new TestRowDataNumberStrings());
      all.add(new TestRowDataUrls());
      all.add(new TestRowDataUrlsExample());
      all.add(new TestRowDataExerciseFInts());
      all.add(new TestRowDataRandomKeyValues());
      all.add(new TestRowDataRandomKeyValuesWithTags());
      return all;
    }
项目:PyroDB    文件:TestKeyValueTool.java   
@Test
public void testRoundTripToBytes() {
  if(rows instanceof TestRowDataTrivialWithTags || rows instanceof TestRowDataRandomKeyValuesWithTags) {
    return;
  }
  List<KeyValue> kvs = rows.getInputs();
  ByteBuffer bb = KeyValueTestUtil.toByteBufferAndRewind(kvs, false);
  List<KeyValue> roundTrippedKvs = KeyValueTestUtil.rewindThenToList(bb, false, false);
  Assert.assertArrayEquals(kvs.toArray(), roundTrippedKvs.toArray());
}
项目:PyroDB    文件:TestRowData.java   
public static Collection<TestRowData> getAll() {
      List<TestRowData> all = Lists.newArrayList();
      //simple
      all.add(new TestRowDataEmpty());
      all.add(new TestRowDataTrivial());
      all.add(new TestRowDataTrivialWithTags());
      all.add(new TestRowDataSimple());
      all.add(new TestRowDataDeeper());

      //more specific
      all.add(new TestRowDataSingleQualifier());
//      all.add(new TestRowDataMultiFamilies());//multiple families disabled in PrefixTreeEncoder
      all.add(new TestRowDataNub());
      all.add(new TestRowDataSearcherRowMiss());
      all.add(new TestRowDataQualifierByteOrdering());
      all.add(new TestRowDataComplexQualifiers());
      all.add(new TestRowDataDifferentTimestamps());

      //larger data volumes (hard to debug)
      all.add(new TestRowDataNumberStrings());
      all.add(new TestRowDataUrls());
      all.add(new TestRowDataUrlsExample());
      all.add(new TestRowDataExerciseFInts());
      all.add(new TestRowDataRandomKeyValues());
      all.add(new TestRowDataRandomKeyValuesWithTags());
      return all;
    }