Functional Interfaces
Atoti Common Library provides a list of functional interfaces used to define lambdas. When lambdas are defined with specialized interfaces, this allows you to find its usage and provides online documentation hints.
Here are the defined interfaces:
Generic interface | Specialized interface | Usage |
---|---|---|
BiFunction<ICanStartBuildingSchema, IDatastoreSchemaDescription, BuildableActivePivotSchemaDescriptionBuilder> | CubeBuilderFunction | All the beans with @Qualifier("Cube") |
DoubleBinaryOperator | ShitScalingFunction | IInterpolationConfiguration::normalizationShiftOperator |
BinaryOperator |
PrePostFunction | IInterpolationConfiguration::getPreMarketDataInterpolationFunction |
BinaryOperator |
PrePostFunction | IInterpolationConfiguration::getPostMarketDataInterpolationFunction |
BinaryOperator |
PrePostFunction | IInterpolationConfiguration::getPreShiftDataInterpolationFunction |
BinaryOperator |
PrePostFunction | IInterpolationConfiguration::getPostShiftDataInterpolationFunction |
DoubleBinaryOperator | AbsoluteToRelativeFunction | IInterpolationConfiguration::absoluteToRelativeMarketDataOperator |
DoubleBinaryOperator | RelativeToAbsoluteFunction | IInterpolationConfiguration::relativeToAbsoluteMarketDataOperator |
DoubleBinaryOperator | ShiftScalingFunction | IInterpolationConfiguration::normalizationShiftOperator |
BiFunction<Double, ICorporateAction, Double> | CorporateActionOperator | IInterpolationConfiguration::corporateActionOperator |
UnaryOperator<ICanBuildCommonCubeDescription |
QueryCubeAggregateProviderConfig | Bean with @Qualifier("MRCombinedCubeConfiguration") |
UnaryOperator<ICanBuildCubeDescription |
AggregateProviderConfig | All the beans with the corresponding return signature |
ICustomParameters.ILocationFunction | LocationFunction | ICustomParameters::getLeafCoordinatesFunction |
BiConsumer<String, Collection<Object[]» | DatastorePublisher | A function with the behavior of ITransactionalWriter::addAll |
Supplier |
Constructor |
Every time a constructor without arguments needs to be provided |
Supplier |
NotNullCacheSupplier |
Supplier of function PostProcessorUtils::getInCacheOrComputeNeverNull |
Supplier |
NullableCacheSupplier |
Supplier of function PostProcessorUtils::getInCacheOrCompute |
BiFunction<ILocation, IQueryCache, List | LeafFunction | Return type of ICustomLeaf::apply |
Function<Double, Pair<T, String» | DataRetrieverFunction |
Parameter of IInterpolation::interpolation used to get the underlying data |
UnaryOperator |
SimpleNameConverter | Simple naming convention change, used for DirectQuery |
BiPredicate<IPillar, IPillar> | EqualsFunction | ModifiedPillarSetOfPillar equals function |
BiFunction<LocalDate, Boolean, LocalDate> | DateSearchStepper | Used in PostProcessorUtils::dateSearch to go to the next date |
Function<LocalDate, T> | DateSearchRetriever |
Used in PostProcessorUtils::dateSearch to get the value for a given date |
UnaryOperator | AdjustmentConverterOperator | Used to define a basic operation for the adjustment |
BiFunction<Map<String, Object>, List |
AdjustmentInputConverter | Convert the user request into a pre-processed input request for the adjustment |
BiFunction<AdjustmentRequestDTO, SupportedAdjustmentDTO, Map<String, Object» | AdjustmentInputParser | Transform a user request into adjustment values |
TriFunction<Object[], IStoreFormat, List |
AdjustmentInputRetriever |
Pre-processing of a line before adjustment |
TriFunction<String, String, String, Map<String, Object» | AdjustmentSourceTagger | Fills the source and tag fields for an adjustment row, based on an execution ID and the initial source and tag. |
BiFunction<T, U, List |
AdjustmentStep<T, U, V> | One adjustment step to modify a store line |
BiFunction<Map<String, Object>, List |
DoubleAdjustmentInputConverter | Convert the user request into a pre-processed input request for the adjustment, assuming the data type to be Double. |
TriFunction<Object[], IStoreFormat, List |
DoubleAdjustmentInputRetriever | Pre-processing of a line before adjustment, assuming the data type to be Double. |
BiFunction<Double, Double, List |
DoubleAdjustmentStep | One adjustment step to modify a store line, assuming the data type to be Double. |
Consumer |
DatastoreConfiguratorConsumer | Execute code in the IDatastoreConfigurator instance |
Function<ICanStartBuildingMeasures, IHasAtLeastOneMeasure> | MeasureAdder | Intended to modify the cube builder to add an extra measure through the fluent API builder, resulting in an IHasAtLeastOneMeasure object |