@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))); }
@Override public void put(int i, Object v) { key.replace(i, v); }