@Test public void testSelectIdOfSpecifiedEmbeddingEntry() throws Exception { GradoopId a = GradoopId.get(); GradoopId b = GradoopId.get(); GradoopId c = GradoopId.get(); Embedding embedding = new Embedding(); embedding.add(a); embedding.add(b); embedding.add(c); ExtractExpandColumn selector = new ExtractExpandColumn(0); assertEquals(a, selector.getKey(embedding)); selector = new ExtractExpandColumn(1); assertEquals(b, selector.getKey(embedding)); selector = new ExtractExpandColumn(2); assertEquals(c, selector.getKey(embedding)); }
@Override public GradoopId getKey(Embedding value) throws Exception { return value.getId(column); }
ExtractExpandColumn implements KeySelector<Embedding, GradoopId> { @Override public GradoopId getKey(Embedding value) throws Exception { return value.getId(column); } }
ExtractExpandColumn implements KeySelector<Embedding, GradoopId> { @Override public GradoopId getKey(Embedding value) throws Exception { return value.getId(column); } ExtractExpandColumn(Integer column); }
ExtractExpandColumn implements KeySelector<Embedding, GradoopId> { @Override public GradoopId getKey(Embedding value) throws Exception { return value.getId(column); } ExtractExpandColumn(Integer column); @Override GradoopId getKey(Embedding value); }
ExtractExpandColumn implements KeySelector<Embedding, GradoopId> { @Override public GradoopId getKey(Embedding value) throws Exception { return value.getId(column); } ExtractExpandColumn(Integer column); @Override GradoopId getKey(Embedding value);  }