@Test public void verifyCodeSize() { int expectedLength = SortSkew.SORTSKEW_LENGTH; assertEquals(expectedLength, SortSkew.getCode(shortpath).length()); assertEquals(expectedLength, SortSkew.getCode(longpath).length()); }
public static String getCode(String keypart) { int hashCode = murmur3_32().hashString(keypart, UTF_8).asInt(); return Strings.padStart(Integer.toHexString(hashCode), SORTSKEW_LENGTH, '0'); }
SortSkew { public static String getCode(String keypart) { int hashCode = murmur3_32().hashString(keypart, UTF_8).asInt(); return Strings.padStart(Integer.toHexString(hashCode), SORTSKEW_LENGTH, '0'); } }
SortSkew { public static String getCode(String keypart) { int hashCode = murmur3_32().hashString(keypart, UTF_8).asInt(); return Strings.padStart(Integer.toHexString(hashCode), SORTSKEW_LENGTH, '0'); }  }
SortSkew { public static String getCode(String keypart) { int hashCode = murmur3_32().hashString(keypart, UTF_8).asInt(); return Strings.padStart(Integer.toHexString(hashCode), SORTSKEW_LENGTH, '0'); }  static String getCode(String keypart); }
SortSkew { public static String getCode(String keypart) { int hashCode = murmur3_32().hashString(keypart, UTF_8).asInt(); return Strings.padStart(Integer.toHexString(hashCode), SORTSKEW_LENGTH, '0'); }  static String getCode(String keypart); static final int SORTSKEW_LENGTH; }