ID
- the vertex ID type.public class VertexSet<ID extends Comparable<ID>> extends VertexCollection<ID>
Modifier and Type | Method and Description |
---|---|
<V extends Comparable<V>> |
extractTopKFromMap(PgxMap<PgxVertex<ID>,V> map, int k)
Blocking version of
#extractTopKFromMapAsync() . |
<V extends 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.
|
String |
toString() |
addAll, removeAll
addAll, addAll, addAllAsync, addAllAsync, clear, clearAsync, clone, clone, cloneAsync, cloneAsync, getCollectionType, getElementType, getGraph, getName, iterator, iteratorAsync, removeAll, removeAllAsync, size, sizeAsync
equals, hashCode
close, destroy, destroyAsync
@Generated(value="src/python/synchronize.py") public <V extends Comparable<V>> void extractTopKFromMap(PgxMap<PgxVertex<ID>,V> map, int k) throws ExecutionException, InterruptedException
#extractTopKFromMapAsync()
. Calls #extractTopKFromMapAsync()
and waits for returned PgxFuture
to complete.InterruptedException
- if the caller thread gets interrupted while waiting for completion.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <V extends Comparable<V>> PgxFuture<Void> extractTopKFromMapAsync(PgxMap<PgxVertex<ID>,V> map, int k)
map
- the map to extract the keys fromk
- how many keys to extractpublic String toString()
toString
in class VertexCollection<ID extends Comparable<ID>>
Copyright © 2015. All rights reserved.