@Override public Iterable<org.vertexium.EdgeInfo> getEdgeInfos(Direction direction, String[] labels, Authorizations authorizations) { if (!getFetchHints().isIncludeEdgeRefs()) { throw new VertexiumException("getEdgeInfos called without including any edge infos"); } switch (direction) { case IN: return filterEdgeInfosByLabel(accumuloEdgeInfosToEdgeInfos(getEdgeInfos(direction), Direction.IN), labels); case OUT: return filterEdgeInfosByLabel(accumuloEdgeInfosToEdgeInfos(getEdgeInfos(direction), Direction.OUT), labels); case BOTH: return new JoinIterable<>(getEdgeInfos(Direction.IN, labels, authorizations), getEdgeInfos(Direction.OUT, labels, authorizations)); default: throw new VertexiumException("Unexpected direction: " + direction); } }
@Override public Iterable<org.vertexium.EdgeInfo> getEdgeInfos(Direction direction, String[] labels, Authorizations authorizations) { if (!getFetchHints().isIncludeEdgeRefs()) { throw new VertexiumException("getEdgeInfos called without including any edge infos"); } switch (direction) { case IN: return filterEdgeInfosByLabel(accumuloEdgeInfosToEdgeInfos(getEdgeInfos(direction), Direction.IN), labels); case OUT: return filterEdgeInfosByLabel(accumuloEdgeInfosToEdgeInfos(getEdgeInfos(direction), Direction.OUT), labels); case BOTH: return new JoinIterable<>(getEdgeInfos(Direction.IN, labels, authorizations), getEdgeInfos(Direction.OUT, labels, authorizations)); default: throw new VertexiumException("Unexpected direction: " + direction); } }