Class QueryData<T>


  • @NotThreadSafe
    public class QueryData<T>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEVICE_KEY  
      static java.lang.String PROPERTY_KEY  
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryData​(java.util.function.Function<QueryData<T>,​T> finalizer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAlias​(@NonNull java.lang.String alias, @NonNull java.lang.String field)  
      void addAlias​(@NonNull java.lang.String alias, @NonNull java.util.Collection<java.lang.String> fields)  
      void addDevice​(java.lang.String device, boolean wildcard)  
      void addEntityId​(long id)  
      void addProperty​(java.lang.String property, boolean wildcard)  
      void addToEntity​(@NonNull java.lang.String key, @NonNull java.lang.Object value, boolean wildcard)  
      void addVariableId​(long id)  
      T build()  
      protected boolean canEqual​(java.lang.Object other)  
      void closeEntity()  
      boolean equals​(java.lang.Object o)  
      java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getAliasFields()  
      java.time.Instant getEndTime()  
      java.util.List<cern.nxcals.common.domain.EntityKeyValues> getEntities()  
      java.util.Set<java.lang.Long> getEntityIds()  
      java.util.function.Function<QueryData<T>,​T> getFinalizer()  
      cern.nxcals.common.domain.EntityKeyValues.Builder getOngoingEntityBuilder()  
      java.time.Instant getStartTime()  
      java.lang.String getSystem()
      System information as provided by the query author in order to fetch resources This property is valid only for the current (active) state of the matching resources! If your intention is to collect information about the resource(s) history, consult the associated SystemSpec property on Entity or Partition via corresponding EntityHistory
      TimeWindow getTimeWindow()  
      java.util.Set<java.lang.Long> getVariableIds()  
      java.util.Map<java.lang.String,​java.lang.Boolean> getVariables()  
      int hashCode()  
      boolean isVariableSearch()  
      void setEndTime​(@NonNull java.time.Instant endTime)  
      void setStartTime​(@NonNull java.time.Instant startTime)  
      void setSystem​(@NonNull java.lang.String system)  
      void setVariableKey​(@NonNull java.lang.String key, boolean enableWildcard)  
      cern.nxcals.common.domain.ExtractionCriteria toExtractionCriteria()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • QueryData

        public QueryData​(java.util.function.Function<QueryData<T>,​T> finalizer)
    • Method Detail

      • setVariableKey

        public void setVariableKey​(@NonNull
                                   @NonNull java.lang.String key,
                                   boolean enableWildcard)
      • addVariableId

        public void addVariableId​(long id)
      • setSystem

        public void setSystem​(@NonNull
                              @NonNull java.lang.String system)
      • setStartTime

        public void setStartTime​(@NonNull
                                 @NonNull java.time.Instant startTime)
      • setEndTime

        public void setEndTime​(@NonNull
                               @NonNull java.time.Instant endTime)
      • addToEntity

        public void addToEntity​(@NonNull
                                @NonNull java.lang.String key,
                                @NonNull
                                @NonNull java.lang.Object value,
                                boolean wildcard)
      • addEntityId

        public void addEntityId​(long id)
      • addDevice

        public void addDevice​(java.lang.String device,
                              boolean wildcard)
      • addProperty

        public void addProperty​(java.lang.String property,
                                boolean wildcard)
      • closeEntity

        public void closeEntity()
      • addAlias

        public void addAlias​(@NonNull
                             @NonNull java.lang.String alias,
                             @NonNull
                             @NonNull java.util.Collection<java.lang.String> fields)
      • addAlias

        public void addAlias​(@NonNull
                             @NonNull java.lang.String alias,
                             @NonNull
                             @NonNull java.lang.String field)
      • isVariableSearch

        public boolean isVariableSearch()
      • getTimeWindow

        public TimeWindow getTimeWindow()
      • toExtractionCriteria

        public cern.nxcals.common.domain.ExtractionCriteria toExtractionCriteria()
      • build

        public T build()
      • getFinalizer

        public java.util.function.Function<QueryData<T>,​T> getFinalizer()
      • getVariables

        public java.util.Map<java.lang.String,​java.lang.Boolean> getVariables()
      • getVariableIds

        public java.util.Set<java.lang.Long> getVariableIds()
      • getEntities

        public java.util.List<cern.nxcals.common.domain.EntityKeyValues> getEntities()
      • getEntityIds

        public java.util.Set<java.lang.Long> getEntityIds()
      • getAliasFields

        public java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getAliasFields()
      • getSystem

        public java.lang.String getSystem()
        System information as provided by the query author in order to fetch resources This property is valid only for the current (active) state of the matching resources! If your intention is to collect information about the resource(s) history, consult the associated SystemSpec property on Entity or Partition via corresponding EntityHistory
      • getStartTime

        public java.time.Instant getStartTime()
      • getEndTime

        public java.time.Instant getEndTime()
      • getOngoingEntityBuilder

        public cern.nxcals.common.domain.EntityKeyValues.Builder getOngoingEntityBuilder()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object