Class GetAllNamedViewsHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.named.GetAllNamedViewsHandler
-
- All Implemented Interfaces:
OperationHandler<GetAllNamedViews>,OutputOperationHandler<GetAllNamedViews,Iterable<NamedViewDetail>>
public class GetAllNamedViewsHandler extends Object implements OutputOperationHandler<GetAllNamedViews,Iterable<NamedViewDetail>>
Operation Handler forGetAllNamedViewswhich returns all NamedViews from the cache.
-
-
Constructor Summary
Constructors Constructor Description GetAllNamedViewsHandler(String suffixNamedViewCacheName)GetAllNamedViewsHandler(NamedViewCache cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<NamedViewDetail>doOperation(GetAllNamedViews operation, Context context, Store store)Gets all NamedViews from the NamedViewCache.StringgetSuffixCacheName()
-
-
-
Constructor Detail
-
GetAllNamedViewsHandler
public GetAllNamedViewsHandler(String suffixNamedViewCacheName)
-
GetAllNamedViewsHandler
public GetAllNamedViewsHandler(NamedViewCache cache)
-
-
Method Detail
-
getSuffixCacheName
public String getSuffixCacheName()
-
doOperation
public Iterable<NamedViewDetail> doOperation(GetAllNamedViews operation, Context context, Store store) throws OperationException
Gets all NamedViews from the NamedViewCache.- Specified by:
doOperationin interfaceOperationHandler<GetAllNamedViews>- Specified by:
doOperationin interfaceOutputOperationHandler<GetAllNamedViews,Iterable<NamedViewDetail>>- Parameters:
operation- theGetAllNamedViewsOperationcontext- theContextstore- theStorethe operation should be run on- Returns:
- namedViews the
IterableofNamedViews in the NamedViewCache - Throws:
OperationException- if the GetAllNamedViews Operation fails
-
-