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 Operation
extractNextOp(Iterator<Operation> itr)
static Iterable<?>
fromElementIds(Iterable<? extends ElementId> input)
static Iterable<?>
fromEntityIds(Iterable<? extends EntityId> input)
Takes an iterable ofEntityId
s and unwraps them into simple vertex objects.static Iterable<? extends ElementId>
toElementIds(Iterable<?> input)
Converts an iterable of objects intoElementId
s.static Iterable<? extends ElementId>
toElementIds(Object... input)
Converts an array of objects intoElementId
s.static Iterable<? extends EntityId>
toEntityIds(Iterable<?> input)
Converts an iterable of objects intoEntityId
s.static Iterable<? extends EntityId>
toEntityIds(Object... input)
Converts an array of objects intoEntityId
s.
-
-
-
Method Detail
-
toElementIds
public static Iterable<? extends ElementId> toElementIds(Object... input)
Converts an array of objects intoElementId
s. If an item is not anElementId
then it is wrapped in anEntitySeed
. If an item is already anElementId
is not modified.
-
toElementIds
public static Iterable<? extends ElementId> toElementIds(Iterable<?> input)
Converts an iterable of objects intoElementId
s. If an item is not anElementId
then it is wrapped in anEntitySeed
. If an item is already anElementId
is not modified. The conversion is done lazily.
-
toEntityIds
public static Iterable<? extends EntityId> toEntityIds(Object... input)
Converts an array of objects intoEntityId
s. If an item is not anEntityId
then it is wrapped in anEntitySeed
. If an item is already anEntityId
is not modified.
-
toEntityIds
public static Iterable<? extends EntityId> toEntityIds(Iterable<?> input)
Converts an iterable of objects intoEntityId
s. If an item is not anEntityId
then it is wrapped in anEntitySeed
. If an item is already anEntityId
is not modified. The conversion is done lazily.
-
fromEntityIds
public static Iterable<?> fromEntityIds(Iterable<? extends EntityId> input)
Takes an iterable ofEntityId
s and unwraps them into simple vertex objects. The conversion is done lazily.
-
-