Class DeviceStage<T>
- java.lang.Object
-
- cern.nxcals.api.extraction.data.builders.fluent.Stage<DeviceStageLoop<T>,T>
-
- cern.nxcals.api.extraction.data.builders.fluent.DeviceStage<T>
-
public class DeviceStage<T> extends Stage<DeviceStageLoop<T>,T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyStage<T>
device(@NonNull java.lang.String device)
Search for given device.PropertyStage<T>
deviceLike(@NonNull java.lang.String pattern)
Search for given device name pattern.DeviceStageLoop<T>
parameter(@NonNull java.lang.String parameter)
Search for given parameter.DeviceStageLoop<T>
parameterLike(@NonNull java.lang.String pattern)
Search for given parameters, which match given pattern.DeviceStageLoop<T>
parameters(@NonNull java.util.List<java.lang.String> parameters)
Search for given parameters.
-
-
-
Method Detail
-
device
public PropertyStage<T> device(@NonNull @NonNull java.lang.String device)
Search for given device. Equivalent tokeyValue("device", device)
- Parameters:
device
- device name- Returns:
- stage to define property in query
-
deviceLike
public PropertyStage<T> deviceLike(@NonNull @NonNull java.lang.String pattern)
Search for given device name pattern. Pattern should be in Oracle SQL form (% and _ as wildcards). Equivalent tokeyValueLike("device", device)
- Parameters:
pattern
- device name pattern- Returns:
- stage to define property in query
-
parameter
public DeviceStageLoop<T> parameter(@NonNull @NonNull java.lang.String parameter)
Search for given parameter. Parameter should be in form "device/property". Equivalent tokeyValues(ImmutableMap.of("device", device, "property", property))
- Parameters:
parameter
- parameter in form device/property- Returns:
- next device query stage
-
parameters
public DeviceStageLoop<T> parameters(@NonNull @NonNull java.util.List<java.lang.String> parameters)
Search for given parameters. Every parameter should be in form "device/property". Equivalent tokeyValues(ImmutableMap.of("device", device1, "property", property1...))
- Parameters:
parameters
- list of parameters in form device/property- Returns:
- next device query stage
-
parameterLike
public DeviceStageLoop<T> parameterLike(@NonNull @NonNull java.lang.String pattern)
Search for given parameters, which match given pattern. Parameter pattern should be in form "device_pattern/property_pattern". Patterns should be in Oracle SQL form (% and _ as wildcards). Equivalent to:keyValuesLike(ImmutableMap.of("device", device1, "property", property1...))
- Parameters:
pattern
- parameter pattern in form device_pattern/property_pattern- Returns:
- next device query stage
-
-