Class GraphEntityCollection<E extends PgxEntity<ID>,​ID>

  • Type Parameters:
    E - the element type
    ID - the ID type of the element type
    All Implemented Interfaces:
    java.lang.AutoCloseable, java.lang.Iterable<E>, oracle.pgx.common.IdentifiableCollection
    Direct Known Subclasses:
    EdgeCollection, VertexCollection

    public abstract class GraphEntityCollection<E extends PgxEntity<ID>,​ID>
    extends PgxCollection<E,​ID>
    A collection of vertices/edges.
    • Method Detail

      • addAllByIdAsync

        public PgxFuture<java.lang.Void> addAllByIdAsync​(java.util.Collection<ID> source)
        Adds vertices/edges to an existing collection using their associated IDs
        Parameters:
        source - collection of IDs of the elements to add
      • removeAllByIdAsync

        public PgxFuture<java.lang.Void> removeAllByIdAsync​(java.util.Collection<ID> source)
        Removes vertices/edges from an existing vertex/edge collection using their associated IDs
        Parameters:
        source - collection of IDs of the elements to remove
      • containsAsync

        public PgxFuture<java.lang.Boolean> containsAsync​(E element)
        Description copied from class: PgxCollection
        Returns true if this collection contains the specified element.
        Specified by:
        containsAsync in class PgxCollection<E extends PgxEntity<ID>,​ID>
        Parameters:
        element - element whose presence in this collection is to be tested
        Returns:
        true if this collection contains the specified element
      • addAllById

        public abstract void addAllById​(ID... ids)
                                 throws java.util.concurrent.ExecutionException,
                                        java.lang.InterruptedException
        Replaces #addAll(Object[]).
        Parameters:
        ids - elements to add
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • removeAllById

        public abstract void removeAllById​(ID... ids)
                                    throws java.util.concurrent.ExecutionException,
                                           java.lang.InterruptedException
        Replaces #removeAll(Object[]).
        Parameters:
        ids - elements to remove
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException