Package com.im.df.api.dml
Class VertexStates
- java.lang.Object
-
- com.im.df.api.dml.VertexStates
-
public final class VertexStates extends java.lang.ObjectCommon utilities related toDFResultSet.VertexStates.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DFResultSet.VertexStatefindVertexState(DFResultSet.VertexState vs, DFField field)FindsVertexStatecorresponding 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)
FindsVertexStatecorresponding to the given field. I.e.field.getEntity()andfoundVertexState.getVertex().getEntity()represents the same entity.- Parameters:
vs-VertexStatefrom the same data tree as theVertexStateassociated with the entity owning the given field.field- the field of interest- Returns:
- found
VertexStateornull
-
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- theVertexStateof interestuseSubSelection- whether first index of selection or sub-selection shall be used- Returns:
- the ID or
noneif there are no rows in VertexState
-
-