Package com.activeviam.copper
Class PropertiesCodec
- java.lang.Object
-
- com.activeviam.copper.PropertiesCodec
-
@Deprecated(since="6.0.7", forRemoval=true) public class PropertiesCodec extends Object
Deprecated, for removal: This API element is subject to removal in a future version.Read and write post processor information inProperties.- Author:
- ActiveViam
-
-
Constructor Summary
Constructors Constructor Description PropertiesCodec(Properties target)Deprecated, for removal: This API element is subject to removal in a future version.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PropertiesCodecaddContinuousQueryHandlerKeys(String handlersToAppend)Deprecated, for removal: This API element is subject to removal in a future version.Appends the handlerKeys from the givenhandlersToAppendto the underlyingProperties.PropertiesgetTarget()Deprecated, for removal: This API element is subject to removal in a future version.Gets the underlyingProperties.ICopperFunctionreadAndInitCopperFunction(String key, IActivePivot pivot)Deprecated, for removal: This API element is subject to removal in a future version.Reads anICopperFunctionfrom the underlyingProperties.List<LevelIdentifier>readLevels(String key)Deprecated, for removal: This API element is subject to removal in a future version.Reads levels identifiers from the underlyingProperties.List<ILevelInfo>readLevels(String key, IActivePivot pivot)Deprecated, for removal: This API element is subject to removal in a future version.Resolves the levels used in a post-processor description.List<IMeasureMember>readUnderlyingMeasures(IMeasuresProvider measuresProvider)Deprecated, for removal: This API element is subject to removal in a future version.Reads and collectsmeasure membersfrom their name read from thePropertiesand retrieved from the givenIMeasuresProvider.PropertiesCodecwrite(Object key, Object value)Deprecated, for removal: This API element is subject to removal in a future version.PropertiesCodecwrite(String key, String value)Deprecated, for removal: This API element is subject to removal in a future version.PropertiesCodecwriteAggregationFunction(String outputTypeString)Deprecated, for removal: This API element is subject to removal in a future version.Writes the aggregation function to use when executing a dynamic aggregation.PropertiesCodecwriteLevels(String key, List<LevelIdentifier> levels)Deprecated, for removal: This API element is subject to removal in a future version.Writes level identifiers to the underlyingProperties.PropertiesCodecwriteUnderlyingMeasure(String underlyingMeasure)Deprecated, for removal: This API element is subject to removal in a future version.Writes underlyingMeasure to the underlyingProperties.PropertiesCodecwriteUnderlyingMeasures(List<String> underlyingMeasures)Deprecated, for removal: This API element is subject to removal in a future version.Writes underlyingMeasures to the underlyingProperties.
-
-
-
Constructor Detail
-
PropertiesCodec
public PropertiesCodec(Properties target)
Deprecated, for removal: This API element is subject to removal in a future version.Constructor.- Parameters:
target- the properties to read from and write to
-
-
Method Detail
-
getTarget
public Properties getTarget()
Deprecated, for removal: This API element is subject to removal in a future version.Gets the underlyingProperties.- Returns:
- the edited underlying properties
-
readLevels
public List<LevelIdentifier> readLevels(String key)
Deprecated, for removal: This API element is subject to removal in a future version.Reads levels identifiers from the underlyingProperties.- Parameters:
key- the key where the levels are stored in the property- Returns:
- the level identifiers
-
readLevels
public List<ILevelInfo> readLevels(String key, IActivePivot pivot)
Deprecated, for removal: This API element is subject to removal in a future version.Resolves the levels used in a post-processor description. This method assumes its input is valid (all levels are found in the cube) because it is called from Copper which validates beforehand the levels.- Parameters:
key- the key where the levels are stored in the propertypivot- the cube where to search for the levels- Returns:
- the resolved levels
-
readUnderlyingMeasures
public List<IMeasureMember> readUnderlyingMeasures(IMeasuresProvider measuresProvider)
Deprecated, for removal: This API element is subject to removal in a future version.Reads and collectsmeasure membersfrom their name read from thePropertiesand retrieved from the givenIMeasuresProvider.- Parameters:
measuresProvider- the container that allows finding actualmeasure memberswith their measure name- Returns:
- the list of measure members
-
readAndInitCopperFunction
public ICopperFunction readAndInitCopperFunction(String key, IActivePivot pivot)
Deprecated, for removal: This API element is subject to removal in a future version.Reads anICopperFunctionfrom the underlyingProperties. It also callsICopperFunction.init(IActivePivot).- Parameters:
key- the key where the function is in the propertypivot- the pivot used to initialize theICopperFunction- Returns:
- the function
-
write
public PropertiesCodec write(String key, String value)
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
key- the keyvalue- the value- Returns:
- itself for chained calls
-
write
public PropertiesCodec write(Object key, Object value)
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
key- the keyvalue- the value- Returns:
- itself for chained calls
-
writeLevels
public PropertiesCodec writeLevels(String key, List<LevelIdentifier> levels)
Deprecated, for removal: This API element is subject to removal in a future version.Writes level identifiers to the underlyingProperties.- Parameters:
key- the key where to write atlevels- the levels to write- Returns:
- itself for chained calls
-
writeUnderlyingMeasures
public PropertiesCodec writeUnderlyingMeasures(List<String> underlyingMeasures)
Deprecated, for removal: This API element is subject to removal in a future version.Writes underlyingMeasures to the underlyingProperties.- Parameters:
underlyingMeasures- the name of the underlying measures to write- Returns:
- itself for chained calls
-
writeUnderlyingMeasure
public PropertiesCodec writeUnderlyingMeasure(String underlyingMeasure)
Deprecated, for removal: This API element is subject to removal in a future version.Writes underlyingMeasure to the underlyingProperties.- Parameters:
underlyingMeasure- the name of the underlying measure to write- Returns:
- itself for chained calls
-
addContinuousQueryHandlerKeys
public PropertiesCodec addContinuousQueryHandlerKeys(String handlersToAppend)
Deprecated, for removal: This API element is subject to removal in a future version.Appends the handlerKeys from the givenhandlersToAppendto the underlyingProperties.- Parameters:
handlersToAppend- the handlers to append- Returns:
- itself for chained calls
-
writeAggregationFunction
public PropertiesCodec writeAggregationFunction(String outputTypeString)
Deprecated, for removal: This API element is subject to removal in a future version.Writes the aggregation function to use when executing a dynamic aggregation.- Parameters:
outputTypeString- the corresponding class in string format of a postprocessor's output type- Returns:
- itself for chained calls
-
-