@Test public void testMultiColumnReverse() throws Exception { GradoopId v0 = GradoopId.get(); GradoopId v1 = GradoopId.get(); Embedding embedding = createEmbedding(v0, v1); ExtractJoinColumns udf1 = new ExtractJoinColumns(Arrays.asList(0, 1)); ExtractJoinColumns udf2 = new ExtractJoinColumns(Arrays.asList(1, 0)); Assert.assertNotEquals(udf1.getKey(embedding), udf2.getKey(embedding)); }
@Override public String getKey(Embedding value) throws Exception { sb.delete(0, sb.length()); for (Integer column : columns) { sb.append(ArrayUtils.toString(value.getRawId(column))); } return sb.toString(); }
ExtractJoinColumns implements KeySelector<Embedding, String> { @Override public String getKey(Embedding value) throws Exception { sb.delete(0, sb.length()); for (Integer column : columns) { sb.append(ArrayUtils.toString(value.getRawId(column))); } return sb.toString(); } }
ExtractJoinColumns implements KeySelector<Embedding, String> { @Override public String getKey(Embedding value) throws Exception { sb.delete(0, sb.length()); for (Integer column : columns) { sb.append(ArrayUtils.toString(value.getRawId(column))); } return sb.toString(); } ExtractJoinColumns(List<Integer> columns); }
ExtractJoinColumns implements KeySelector<Embedding, String> { @Override public String getKey(Embedding value) throws Exception { sb.delete(0, sb.length()); for (Integer column : columns) { sb.append(ArrayUtils.toString(value.getRawId(column))); } return sb.toString(); } ExtractJoinColumns(List<Integer> columns); @Override String getKey(Embedding value); }
ExtractJoinColumns implements KeySelector<Embedding, String> { @Override public String getKey(Embedding value) throws Exception { sb.delete(0, sb.length()); for (Integer column : columns) { sb.append(ArrayUtils.toString(value.getRawId(column))); } return sb.toString(); } ExtractJoinColumns(List<Integer> columns); @Override String getKey(Embedding value);  }