Class SystemViewAdapter<R,D>
- java.lang.Object
-
- org.apache.ignite.internal.managers.systemview.SystemViewAdapter<R,D>
-
- All Implemented Interfaces:
Iterable<R>,SystemView<R>
public class SystemViewAdapter<R,D> extends Object
System view backed bydataCollection.
-
-
Constructor Summary
Constructors Constructor Description SystemViewAdapter(String name, String desc, SystemViewRowAttributeWalker<R> walker, Collection<D> data, Function<D,R> rowFunc)SystemViewAdapter(String name, String desc, SystemViewRowAttributeWalker<R> walker, Supplier<Collection<D>> dataSupplier, Function<D,R> rowFunc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()@NotNull Iterator<R>iterator()Stringname()intsize()SystemViewRowAttributeWalker<R>walker()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
SystemViewAdapter
public SystemViewAdapter(String name, String desc, SystemViewRowAttributeWalker<R> walker, Collection<D> data, Function<D,R> rowFunc)
- Parameters:
name- Name.desc- Description.walker- Walker.data- Data.rowFunc- Row function.
-
SystemViewAdapter
public SystemViewAdapter(String name, String desc, SystemViewRowAttributeWalker<R> walker, Supplier<Collection<D>> dataSupplier, Function<D,R> rowFunc)
- Parameters:
name- Name.desc- Description.walker- Walker.dataSupplier- Data supplier.rowFunc- Row function.
-
-
Method Detail
-
size
public int size()
- Returns:
- Size of the view.
-
name
public String name()
- Specified by:
namein interfaceSystemView<R>- Returns:
- View name.
-
description
public String description()
- Specified by:
descriptionin interfaceSystemView<R>- Returns:
- View description.
-
walker
public SystemViewRowAttributeWalker<R> walker()
- Specified by:
walkerin interfaceSystemView<R>- Returns:
- Helper for exporters.
-
-