Interface VariableService
-
Method Summary
Modifier and TypeMethodDescriptionCreates variable as in the parameter NOTE: this is a mutative method.Creates the given set of variables NOTE: this is a mutative method.voiddelete(long variableId) Deletes an existing variablevoidDeletes an existing set of variablesfindAll(cern.nxcals.api.metadata.queries.ConditionWithOptions<cern.nxcals.api.metadata.queries.Variables, cern.nxcals.api.metadata.queries.VariableQueryWithOptions> condition) Find all, which matches condition - experimentalfindAll(cern.nxcals.api.metadata.queries.VariableQueryWithOptions condition) Find all, but allows to pass additional options - experimentalfindOne(cern.nxcals.api.metadata.queries.ConditionWithOptions<cern.nxcals.api.metadata.queries.Variables, cern.nxcals.api.metadata.queries.VariableQueryWithOptions> condition) Find one or zero, which matches condition - experimentalfindOne(cern.nxcals.api.metadata.queries.VariableQueryWithOptions condition) Find one, but allows to pass additional options - experimentaldefault Map<TimeWindow, org.apache.avro.Schema> findSchemas(Variable variable, TimeWindow timeWindow) Returns schemas for given variabledefault Map<Variable, Map<TimeWindow, org.apache.avro.Schema>> findSchemas(Set<Variable> variables, TimeWindow timeWindow) Returns schemas for given variablesMap<TimeWindow, org.apache.avro.Schema> findSchemasById(long variableId, TimeWindow timeWindow) Returns schemas for given variableMap<Long, Map<TimeWindow, org.apache.avro.Schema>> findSchemasById(Set<Long> variableIds, TimeWindow timeWindow) Returns schemas for given variablesUpdates an existing variable to the new values as in the parameter NOTE: this is a mutative method.Updates existing variables based on the provided set NOTE: this is a mutative method.
-
Method Details
-
create
Creates variable as in the parameter NOTE: this is a mutative method. It is not thread-safe or meant to be used in parallel- Parameters:
variable- to be created- Returns:
- Created variable
-
update
Updates an existing variable to the new values as in the parameter NOTE: this is a mutative method. It is not thread-safe or meant to be used in parallel- Parameters:
variable- to be updated- Returns:
- Updated variable
-
createAll
Creates the given set of variables NOTE: this is a mutative method. It is not thread-safe or meant to be used in parallel- Parameters:
variables- to be created- Returns:
- Created variables
-
updateAll
Updates existing variables based on the provided set NOTE: this is a mutative method. It is not thread-safe or meant to be used in parallel- Parameters:
variables- to be updated- Returns:
- Updated variables
-
delete
void delete(long variableId) Deletes an existing variable- Parameters:
variableId- the id of the variable to be deleted
-
deleteAll
Deletes an existing set of variables- Parameters:
variableIds- the ids of the variables to be deleted
-
findAll
@Experimental List<Variable> findAll(cern.nxcals.api.metadata.queries.VariableQueryWithOptions condition) Find all, but allows to pass additional options - experimental -
findOne
@Experimental Optional<Variable> findOne(cern.nxcals.api.metadata.queries.VariableQueryWithOptions condition) Find one, but allows to pass additional options - experimental -
findAll
@Experimental Set<Variable> findAll(cern.nxcals.api.metadata.queries.ConditionWithOptions<cern.nxcals.api.metadata.queries.Variables, cern.nxcals.api.metadata.queries.VariableQueryWithOptions> condition) Find all, which matches condition - experimental -
findOne
@Experimental Optional<Variable> findOne(cern.nxcals.api.metadata.queries.ConditionWithOptions<cern.nxcals.api.metadata.queries.Variables, cern.nxcals.api.metadata.queries.VariableQueryWithOptions> condition) Find one or zero, which matches condition - experimental -
findSchemasById
@Experimental Map<TimeWindow,org.apache.avro.Schema> findSchemasById(long variableId, TimeWindow timeWindow) Returns schemas for given variable -
findSchemas
@Experimental default Map<TimeWindow,org.apache.avro.Schema> findSchemas(Variable variable, TimeWindow timeWindow) Returns schemas for given variable -
findSchemasById
@Experimental Map<Long,Map<TimeWindow, findSchemasByIdorg.apache.avro.Schema>> (Set<Long> variableIds, TimeWindow timeWindow) Returns schemas for given variables -
findSchemas
@Experimental default Map<Variable,Map<TimeWindow, findSchemasorg.apache.avro.Schema>> (Set<Variable> variables, TimeWindow timeWindow) Returns schemas for given variables
-