public interface VertexList extends Iterable<TitanVertex>
TitanVertex
s.
Basic interface for a list of vertices which supports retrieving individuals vertices or iterating over all of them,
but does not support modification.
VertexList is returned by TitanVertexQuery
. Depending on how the query was executed that returned this VertexList,
getting vertex idAuthorities might be significantly faster than retrieving vertex objects.Modifier and Type | Method and Description |
---|---|
TitanVertex |
get(int pos)
Returns the vertex at a given position in the list.
|
long |
getID(int pos)
Returns the id of the vertex at the specified position
|
cern.colt.list.AbstractLongList |
getIDs()
Returns a list of idAuthorities of all vertices in this list of vertices in the same order of the original vertex list.
|
int |
size()
Returns the number of vertices in this list.
|
void |
sort()
Sorts this list according to vertex idAuthorities in increasing order.
|
int size()
TitanVertex get(int pos)
pos
- Position for which to retrieve the vertex.void sort()
UnsupportedOperationException
- If not all vertices in this list have an idcern.colt.list.AbstractLongList getIDs()
AbstractLongList
long getID(int pos)
pos
- The position of the vertex in the listCopyright © 2012-2013. All Rights Reserved.