Package com.im.df.api.dml
Class VertexStates
- java.lang.Object
-
- com.im.df.api.dml.VertexStates
-
public final class VertexStates extends java.lang.Object
Common utilities related toDFResultSet.VertexState
s.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DFResultSet.VertexState
findVertexState(DFResultSet.VertexState vs, DFField field)
FindsVertexState
corresponding to the given field.static com.google.common.base.Optional<java.lang.Comparable<?>>
getIDForFirstSelectedRow(DFResultSet.VertexState vs, boolean useSubSelection)
Returns ID for the first select row in a givenVertexState
.
-
-
-
Method Detail
-
findVertexState
public static DFResultSet.VertexState findVertexState(DFResultSet.VertexState vs, DFField field)
FindsVertexState
corresponding to the given field. I.e.field.getEntity()
andfoundVertexState.getVertex().getEntity()
represents the same entity.- Parameters:
vs
-VertexState
from the same data tree as theVertexState
associated with the entity owning the given field.field
- the field of interest- Returns:
- found
VertexState
ornull
-
getIDForFirstSelectedRow
public static com.google.common.base.Optional<java.lang.Comparable<?>> getIDForFirstSelectedRow(DFResultSet.VertexState vs, boolean useSubSelection)
Returns ID for the first select row in a givenVertexState
.- Parameters:
vs
- theVertexState
of interestuseSubSelection
- whether first index of selection or sub-selection shall be used- Returns:
- the ID or
none
if there are no rows in VertexState
-
-