Package uk.gov.gchq.gaffer.store.schema
Class SchemaOptimiser
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.schema.SchemaOptimiser
-
- Direct Known Subclasses:
SchemaOptimiserMapStore
public class SchemaOptimiser extends Object
TheSchemaOptimiser
is used to reduce the size of a givenSchema
.
-
-
Constructor Summary
Constructors Constructor Description SchemaOptimiser()
SchemaOptimiser(SerialisationFactory serialisationFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema
optimise(Schema schema, boolean isStoreOrdered)
Optimise the providedSchema
by removing unused types and adding default serialisers.
-
-
-
Constructor Detail
-
SchemaOptimiser
public SchemaOptimiser()
-
SchemaOptimiser
public SchemaOptimiser(SerialisationFactory serialisationFactory)
-
-
Method Detail
-
optimise
public Schema optimise(Schema schema, boolean isStoreOrdered)
Optimise the providedSchema
by removing unused types and adding default serialisers.- Parameters:
schema
- the schema to optimiseisStoreOrdered
- determines whether to enforce ordering in the default serialisers or not- Returns:
- the optimised schema object
-
-