Class OperationUtil
- java.lang.Object
-
- uk.gov.gchq.gaffer.operation.util.OperationUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperationextractNextOp(Iterator<Operation> itr)static Iterable<?>fromElementIds(Iterable<? extends ElementId> input)static Iterable<?>fromEntityIds(Iterable<? extends EntityId> input)Takes an iterable ofEntityIds and unwraps them into simple vertex objects.static Iterable<? extends ElementId>toElementIds(Iterable<?> input)Converts an iterable of objects intoElementIds.static Iterable<? extends ElementId>toElementIds(Object... input)Converts an array of objects intoElementIds.static Iterable<? extends EntityId>toEntityIds(Iterable<?> input)Converts an iterable of objects intoEntityIds.static Iterable<? extends EntityId>toEntityIds(Object... input)Converts an array of objects intoEntityIds.
-
-
-
Method Detail
-
toElementIds
public static Iterable<? extends ElementId> toElementIds(Object... input)
Converts an array of objects intoElementIds. If an item is not anElementIdthen it is wrapped in anEntitySeed. If an item is already anElementIdis not modified.
-
toElementIds
public static Iterable<? extends ElementId> toElementIds(Iterable<?> input)
Converts an iterable of objects intoElementIds. If an item is not anElementIdthen it is wrapped in anEntitySeed. If an item is already anElementIdis not modified. The conversion is done lazily.
-
toEntityIds
public static Iterable<? extends EntityId> toEntityIds(Object... input)
Converts an array of objects intoEntityIds. If an item is not anEntityIdthen it is wrapped in anEntitySeed. If an item is already anEntityIdis not modified.
-
toEntityIds
public static Iterable<? extends EntityId> toEntityIds(Iterable<?> input)
Converts an iterable of objects intoEntityIds. If an item is not anEntityIdthen it is wrapped in anEntitySeed. If an item is already anEntityIdis not modified. The conversion is done lazily.
-
fromEntityIds
public static Iterable<?> fromEntityIds(Iterable<? extends EntityId> input)
Takes an iterable ofEntityIds and unwraps them into simple vertex objects. The conversion is done lazily.
-
-