Example #1
0
 @Override
 public Iterable<Edge> getInEdges() {
   return IterableHelper.select(
       inlist.entrySet(),
       new IterableHelper.Map<Map.Entry<Long, Long>, Edge>() {
         @Override
         public Edge select(Map.Entry<Long, Long> element) {
           return new HPseudoEdge(element.getKey(), element.getValue(), id, store);
         }
       });
 }
Example #2
0
  @Override
  public Iterable<LabelValue> getLabels() {
    return IterableHelper.select(
        labelsMap.entrySet(),
        new IterableHelper.Map<Map.Entry<String, byte[]>, LabelValue>() {

          @Override
          public LabelValue select(final Entry<String, byte[]> element) {
            return new LabelValue() {

              @Override
              public byte[] getValue() {
                return element.getValue();
              }

              @Override
              public String getName() {
                return element.getKey();
              }
            };
          }
        });
  }
Example #3
0
 @Override
 public Iterable<Edge> getEdges() {
   return IterableHelper.concat(getOutEdges(), getInEdges());
 }