类 Filters


  • public class Filters
    extends Object
    Represent the filters for querying datapoints from Tsdb.
    • 构造器详细资料

      • Filters

        public Filters()
    • 方法详细资料

      • getStart

        public com.fasterxml.jackson.databind.JsonNode getStart()
      • setStart

        public void setStart​(com.fasterxml.jackson.databind.JsonNode start)
      • getEnd

        public com.fasterxml.jackson.databind.JsonNode getEnd()
      • setEnd

        public void setEnd​(com.fasterxml.jackson.databind.JsonNode end)
      • getValue

        public String getValue()
      • setValue

        public void setValue​(String value)
      • setTagFilters

        public void setTagFilters​(List<TagFilter> tagFilters)
      • getTagsJsonNode

        public com.fasterxml.jackson.databind.JsonNode getTagsJsonNode()
      • setTagsJsonNode

        public void setTagsJsonNode​(com.fasterxml.jackson.databind.JsonNode tags)
                             throws com.fasterxml.jackson.core.JsonProcessingException
        抛出:
        com.fasterxml.jackson.core.JsonProcessingException
      • withValue

        public Filters withValue​(ValueFilter value)
        Set value for filter.
        参数:
        value - The value for filter.
        返回:
        Filters
      • withValue

        public Filters withValue​(String value)
        Set value for filter.
        参数:
        value -
        返回:
      • withFields

        public Filters withFields​(List<FieldFilter> fields)
        Set field filters.
        参数:
        fields - The field filters list.
        返回:
        Filters
      • withAbsoluteStart

        public Filters withAbsoluteStart​(long start)
        Set absolute start time.
        参数:
        start - The unit is millisecond.
        返回:
        Filters
      • withRelativeStart

        public Filters withRelativeStart​(String start)
        Set relative start time, like "5 days ago", "2 minutes ago" or "3 seconds ago".
        参数:
        start -
        返回:
        Filters
      • withAbsoluteEnd

        public Filters withAbsoluteEnd​(long end)
        Set absolute end time.
        参数:
        end - The unit is millisecond.
        返回:
        Filters
      • withRelativeEnd

        public Filters withRelativeEnd​(String end)
        Set relative end time, like "5 days ago", "2 minutes ago" or "3 seconds ago".
        参数:
        end -
        返回:
        Filters
      • addField

        public Filters addField​(FieldFilter field)
        Add field filter to fields which just append not replace.
        参数:
        field - The field filter
        返回:
        Filters
      • addField

        public Filters addField​(String field,
                                String value)
        Add field filter to fields which just append not replace.
        参数:
        field - The field name for filter
        value - The value filter
        返回:
        Filters
      • addTag

        public Filters addTag​(String tagKey,
                              List<String> tagValues)
        Add tag to tags which just append not replace.
        参数:
        tagKey -
        tagValues -
        返回:
        Filters
      • addTag

        public Filters addTag​(String tagKey,
                              String... tagValues)
        Add tag to tags which just append not replace.
        参数:
        tagKey -
        tagValues -
        返回:
        Filters
      • addOr

        public Filters addOr​(Filters or)
        Add an or condition.
        参数:
        or - an filters for or condition.
        返回:
        Filters