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 forGetAllNamedViews
which 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.String
getSuffixCacheName()
-
-
-
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:
doOperation
in interfaceOperationHandler<GetAllNamedViews>
- Specified by:
doOperation
in interfaceOutputOperationHandler<GetAllNamedViews,Iterable<NamedViewDetail>>
- Parameters:
operation
- theGetAllNamedViews
Operation
context
- theContext
store
- theStore
the operation should be run on- Returns:
- namedViews the
Iterable
ofNamedView
s in the NamedViewCache - Throws:
OperationException
- if the GetAllNamedViews Operation fails
-
-