コード例 #1
0
  @Test
  @SuppressWarnings("unchecked")
  public void toDirNameIdentityWithNonString() {
    PartitionStrategy strategy = new PartitionStrategy.Builder().identity("id").build();

    StorageKey expected = new StorageKey(strategy);
    expected.replace(0, 0L);

    Assert.assertEquals(
        "Should convert to schema type",
        expected,
        convert.toKey(new Path("id=0"), new StorageKey(strategy)));
  }
コード例 #2
0
ファイル: CrunchDatasets.java プロジェクト: rbrush/kite
 @Override
 public void put(int i, Object v) {
   key.replace(i, v);
 }