public Iterable<Element> limitElementsTo3() { // --------------------------------------------------------- final GetAllElements<Element> operation = new GetAllElements.Builder<>() .limitResults(3) .build(); // --------------------------------------------------------- return runExample(operation); }
public CloseableIterable<? extends EntityId> getAdjacentIdsAlongOutboundEdgesFromVertex2() { // --------------------------------------------------------- final GetAdjacentIds operation = new GetAdjacentIds.Builder() .input(new EntitySeed(2)) .inOutType(IncludeIncomingOutgoingType.OUTGOING) .build(); // --------------------------------------------------------- return runExample(operation, null); }
public CloseableIterable<EntitySeed> getAdjacentEntitySeedsAlongOutboundEdgesFromVertex2() { // --------------------------------------------------------- final GetAdjacentEntitySeeds operation = new GetAdjacentEntitySeeds.Builder() .addSeed(new EntitySeed(2)) .inOutType(IncludeIncomingOutgoingType.OUTGOING) .build(); // --------------------------------------------------------- return runExample(operation); }
public CloseableIterable<? extends Element> getAllEntitiesAndEdgesThatAreRelatedToEdge1to2() { // --------------------------------------------------------- final GetElements operation = new GetElements.Builder() .input(new EdgeSeed(1, 2, DirectedType.EITHER)) .build(); // --------------------------------------------------------- return runExample(operation, null); }
public CloseableIterable<Element> getAllEntitiesAndEdgesThatAreRelatedToEdge1to2() { // --------------------------------------------------------- final GetElements<EdgeSeed, Element> operation = new GetElements.Builder<EdgeSeed, Element>() .addSeed(new EdgeSeed(1, 2, true)) .build(); // --------------------------------------------------------- return runExample(operation); }
public CloseableIterable<Edge> getAllOutboundEdgesThatAreConnectedToVertex2() { // --------------------------------------------------------- final GetEdges<EntitySeed> operation = new GetEdges.Builder<EntitySeed>() .addSeed(new EntitySeed(2)) .inOutType(IncludeIncomingOutgoingType.OUTGOING) .build(); // --------------------------------------------------------- return runExample(operation); }
public CloseableIterable<Edge> getAllEdgesThatAreConnectedToVertex2() { // --------------------------------------------------------- final GetEdges<EntitySeed> operation = new GetEdges.Builder<EntitySeed>() .addSeed(new EntitySeed(2)) .build(); // --------------------------------------------------------- return runExample(operation); }
public Iterable<Edge> withDeduplicateEdgesFlag() { // --------------------------------------------------------- final GetEdges<ElementSeed> build = new GetEdges.Builder<>() .addSeed(new EntitySeed(1)) .addSeed(new EntitySeed(2)) .deduplicate(true) .build(); // --------------------------------------------------------- return runExample(build); }
public Iterable<Entity> getAllEntitiesThatAreConnectedToEdge1to2() { // --------------------------------------------------------- final GetEntities<EdgeSeed> operation = new GetEntities.Builder<EdgeSeed>() .addSeed(new EdgeSeed(1, 2, true)) .build(); // --------------------------------------------------------- return runExample(operation); }
public CloseableIterable<EntitySeed> getAdjacentEntitySeedsFromVertex2() { // --------------------------------------------------------- final GetAdjacentEntitySeeds operation = new GetAdjacentEntitySeeds.Builder() .addSeed(new EntitySeed(2)) .build(); // --------------------------------------------------------- return runExample(operation); }
public CloseableIterable<Element> getAllElements() { // --------------------------------------------------------- final GetAllElements<Element> operation = new GetAllElements<>(); // --------------------------------------------------------- return runExample(operation); }
public CloseableIterable<Edge> getAllEdges() { // --------------------------------------------------------- final GetAllEdges operation = new GetAllEdges(); // --------------------------------------------------------- return runExample(operation); }
public CloseableIterable<Entity> getAllEntities() { // --------------------------------------------------------- final GetAllEntities operation = new GetAllEntities(); // --------------------------------------------------------- return runExample(operation); }
public CloseableIterable<? extends Element> getEntitiesAndEdgesThatAreRelatedToVertex2() { // --------------------------------------------------------- final GetElements operation = new GetElements.Builder() .input(new EntitySeed(2)) .build(); // --------------------------------------------------------- return runExample(operation, null); }
public CloseableIterable<Element> getEntitiesAndEdgesThatAreRelatedToVertex2() { // --------------------------------------------------------- final GetElements<EntitySeed, Element> operation = new GetElements.Builder<EntitySeed, Element>() .addSeed(new EntitySeed(2)) .build(); // --------------------------------------------------------- return runExample(operation); }
public CloseableIterable<Edge> getEdgesByEdgeSeeds1to2and2to3() { // --------------------------------------------------------- final GetEdges<EdgeSeed> operation = new GetEdges.Builder<EdgeSeed>() .addSeed(new EdgeSeed(1, 2, true)) .addSeed(new EdgeSeed(2, 3, true)) .build(); // --------------------------------------------------------- return runExample(operation); }
public CloseableIterable<Entity> getEntitiesByEntitySeed1And2() { // --------------------------------------------------------- final GetEntities<EntitySeed> operation = new GetEntities.Builder<EntitySeed>() .addSeed(new EntitySeed(1)) .addSeed(new EntitySeed(2)) .build(); // --------------------------------------------------------- return runExample(operation); }
public CloseableIterable<? extends Element> getAllElements() { // --------------------------------------------------------- final GetAllElements operation = new GetAllElements(); // --------------------------------------------------------- return runExample(operation, null); }
public CloseableIterable<? extends Element> withoutToSetOperation() { // --------------------------------------------------------- final GetElements operation = new GetElements.Builder() .input(new EntitySeed(1), new EntitySeed(2)) .build(); // --------------------------------------------------------- return runExample(operation, null); }
public Iterable<Edge> withoutDeduplicatingEdges() { // --------------------------------------------------------- final GetEdges<ElementSeed> operation = new GetEdges.Builder<>() .addSeed(new EntitySeed(1)) .addSeed(new EntitySeed(2)) .build(); // --------------------------------------------------------- return runExample(operation); }