Package oracle.pgx.api
Class VertexSet<ID>
- java.lang.Object
-
- oracle.pgx.api.internal.ApiObject
-
- oracle.pgx.api.Destroyable
-
- oracle.pgx.api.PgxManagedObject
-
- oracle.pgx.api.PgxCollection<E,ID>
-
- oracle.pgx.api.GraphEntityCollection<PgxVertex<ID>,ID>
-
- oracle.pgx.api.VertexCollection<ID>
-
- oracle.pgx.api.VertexSet<ID>
-
- Type Parameters:
ID
- the vertex ID type.
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<PgxVertex<ID>>
,oracle.pgx.common.IdentifiableCollection
,oracle.pgx.common.IdentifiableVertexCollection
public class VertexSet<ID> extends VertexCollection<ID>
An unordered set of vertices (no duplicates).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V extends java.lang.Comparable<V>>
voidextractTopKFromMap(PgxMap<PgxVertex<ID>,V> map, int k)
Blocking version ofextractTopKFromMapAsync(PgxMap, int)
.<V extends java.lang.Comparable<V>>
PgxFuture<java.lang.Void>extractTopKFromMapAsync(PgxMap<PgxVertex<ID>,V> map, int k)
Extracts the top k keys from the given map and puts them into this collection.-
Methods inherited from class oracle.pgx.api.VertexCollection
addAllById, getIdType, removeAllById
-
Methods inherited from class oracle.pgx.api.GraphEntityCollection
addAll, addAllById, addAllByIdAsync, addAllElementsAsync, containsAsync, removeAllById, removeAllByIdAsync, removeAllElementsAsync
-
Methods inherited from class oracle.pgx.api.PgxCollection
add, addAllAsync, addAllElements, clear, clearAsync, clone, clone, cloneAsync, cloneAsync, contains, destroyAsync, getCollectionType, getContentType, getGraph, getId, getName, isMutable, isMutableAsync, iterator, iteratorAsync, remove, removeAllElements, size, sizeAsync, stream, toMutable, toMutable, toMutableAsync, toMutableAsync, toString
-
Methods inherited from class oracle.pgx.api.PgxManagedObject
equals, hashCode
-
Methods inherited from class oracle.pgx.api.Destroyable
close, destroy
-
-
-
-
Method Detail
-
extractTopKFromMapAsync
public <V extends java.lang.Comparable<V>> PgxFuture<java.lang.Void> extractTopKFromMapAsync(PgxMap<PgxVertex<ID>,V> map, int k)
Extracts the top k keys from the given map and puts them into this collection.- Parameters:
map
- the map to extract the keys fromk
- how many keys to extract
-
extractTopKFromMap
public <V extends java.lang.Comparable<V>> void extractTopKFromMap(PgxMap<PgxVertex<ID>,V> map, int k)
Blocking version ofextractTopKFromMapAsync(PgxMap, int)
. CallsextractTopKFromMapAsync(PgxMap, int)
and waits for returnedPgxFuture
to complete.
-
-