public class ItemToolkit extends Object
Constructor and Description |
---|
ItemToolkit() |
Modifier and Type | Method and Description |
---|---|
static <T> IMemberAccessor<T,IItem> |
accessor(IAttribute<T> a)
Deprecated.
This method returns a member accessor that is not thread safe. Instead of
creating an accessor that could be used for multiple item types, items should be
iterated by type, preferably using an
IAggregator which enables parallel
processing. |
static Iterable<IItem> |
asIterable(IItemCollection items)
Deprecated.
|
static <T> T |
getFirstFound(IItemCollection items,
IAttribute<T> attribute)
Returns the value of the event first encountered with the attribute.
|
static <T extends IItem> |
getItemType(T item) |
@Deprecated public static <T> IMemberAccessor<T,IItem> accessor(IAttribute<T> a)
IAggregator
which enables parallel
processing.@Deprecated public static Iterable<IItem> asIterable(IItemCollection items)
public static <T> T getFirstFound(IItemCollection items, IAttribute<T> attribute)
This method should only be used when you do not care which item you get; any matching is fine. This is commonly the case when looking up relatively static information dumped per chunk, for example environment variables. Also make sure that the collection is properly filtered down to only contain events where the attribute can be applied.
T
- attribute value typeitems
- items to search for attribute value inattribute
- the attribute to retrieveAggregators.AdvancedMinAggregator
Copyright © 2019. All rights reserved.