Class ViewElementDefinition
- java.lang.Object
-
- uk.gov.gchq.gaffer.data.elementdefinition.view.ViewElementDefinition
-
- All Implemented Interfaces:
Cloneable,ElementDefinition
- Direct Known Subclasses:
GlobalViewElementDefinition
public class ViewElementDefinition extends Object implements ElementDefinition
AViewElementDefinitionis anElementDefinitioncontaining transient properties, anElementTransformerand twoElementFilters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classViewElementDefinition.BaseBuilder<CHILD_CLASS extends ViewElementDefinition.BaseBuilder<?>>static classViewElementDefinition.Builder
-
Constructor Summary
Constructors Constructor Description ViewElementDefinition()
-
Method Summary
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
setGroupBy
public void setGroupBy(LinkedHashSet<String> groupBy)
-
isAllProperties
public boolean isAllProperties()
-
hasProperty
public boolean hasProperty(String property)
-
getTransientPropertyClasses
public Collection<Class<?>> getTransientPropertyClasses()
-
containsTransientProperty
public boolean containsTransientProperty(String propertyName)
-
getTransientPropertyMap
public Map<String,Class<?>> getTransientPropertyMap()
- Returns:
- the transient property map.
LinkedHashMapof transient property name to class name.
-
getTransientPropertyMapWithClassNames
public Map<String,String> getTransientPropertyMapWithClassNames()
-
getPreAggregationFilter
public ElementFilter getPreAggregationFilter()
-
getPreAggregationFilterFunctions
public List<uk.gov.gchq.koryphe.tuple.predicate.TupleAdaptedPredicate<String,?>> getPreAggregationFilterFunctions()
-
hasPreAggregationFilters
public boolean hasPreAggregationFilters()
-
getAggregator
public ElementAggregator getAggregator()
-
getPostAggregationFilter
public ElementFilter getPostAggregationFilter()
-
getPostAggregationFilterFunctions
public List<uk.gov.gchq.koryphe.tuple.predicate.TupleAdaptedPredicate<String,?>> getPostAggregationFilterFunctions()
-
hasPostAggregationFilters
public boolean hasPostAggregationFilters()
-
getPostTransformFilter
public ElementFilter getPostTransformFilter()
-
getPostTransformFilterFunctions
public List<uk.gov.gchq.koryphe.tuple.predicate.TupleAdaptedPredicate<String,?>> getPostTransformFilterFunctions()
-
hasPostTransformFilters
public boolean hasPostTransformFilters()
-
hasTransform
public boolean hasTransform()
-
getTransformer
public ElementTransformer getTransformer()
-
getTransformFunctions
public List<uk.gov.gchq.koryphe.tuple.function.TupleAdaptedFunction<String,?,?>> getTransformFunctions()
-
clone
public ViewElementDefinition clone()
-
toJson
public byte[] toJson(boolean prettyPrint, String... fieldsToExclude) throws SchemaException- Throws:
SchemaException
-
toCompactJson
public byte[] toCompactJson() throws SchemaException- Throws:
SchemaException
-
lock
public void lock()
Description copied from interface:ElementDefinitionLocks the fields so only read access is allowed.- Specified by:
lockin interfaceElementDefinition
-
-