ID
- the vertex ID type.public class VertexSet<ID> extends VertexCollection<ID>
Modifier and Type | Method and Description |
---|---|
<V extends java.lang.Comparable<V>> |
extractTopKFromMap(PgxMap<PgxVertex<ID>,V> map,
int k)
Blocking version of
extractTopKFromMapAsync(PgxMap, int) . |
<V extends java.lang.Comparable<V>> |
extractTopKFromMapAsync(PgxMap<PgxVertex<ID>,V> map,
int k)
Extracts the top k keys from the given map and puts them into this collection.
|
addAll, addAllById, getIdType, removeAll, removeAllById
addAll, addAllAsync, addAllById, addAllByIdAsync, addAllElementsAsync, containsAsync, removeAllAsync, removeAllById, removeAllByIdAsync, removeAllElementsAsync
add, addAll, addAllAsync, addAllElements, clear, clearAsync, clone, clone, cloneAsync, cloneAsync, contains, getCollectionType, getContentType, getGraph, getId, getName, isMutable, isMutableAsync, iterator, iteratorAsync, remove, removeAll, removeAllElements, size, sizeAsync, stream, toMutable, toMutable, toMutableAsync, toMutableAsync, toString
equals, hashCode
close, destroy, destroyAsync
public <V extends java.lang.Comparable<V>> void extractTopKFromMap(PgxMap<PgxVertex<ID>,V> map, int k)
extractTopKFromMapAsync(PgxMap, int)
.
Calls extractTopKFromMapAsync(PgxMap, int)
and waits for returned PgxFuture
to complete.public <V extends java.lang.Comparable<V>> PgxFuture<java.lang.Void> extractTopKFromMapAsync(PgxMap<PgxVertex<ID>,V> map, int k)
map
- the map to extract the keys fromk
- how many keys to extractCopyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.