Class BaseScanOptions.BaseScanOptionsBuilder<C extends BaseScanOptions,​B extends BaseScanOptions.BaseScanOptionsBuilder<C,​B>>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract C build()  
      B count​(java.lang.Long count)
      COUNT is a just a hint for the command for how many elements to fetch from the set, hash, or list.
      B matchPattern​(java.lang.String matchPattern)
      The match filter is applied to the result of the command and will only include strings that match the pattern specified.
      B matchPatternBinary​(GlideString matchPatternBinary)
      The match filter is applied to the result of the command and will only include strings that match the pattern specified.
      protected abstract B self()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • BaseScanOptionsBuilder

        public BaseScanOptionsBuilder()
    • Method Detail

      • matchPattern

        public B matchPattern​(java.lang.String matchPattern)
        The match filter is applied to the result of the command and will only include strings that match the pattern specified. If the set, hash, or list is large enough for scan commands to return only a subset of the set, hash, or list, then there could be a case where the result is empty although there are items that match the pattern specified. This is due to the default COUNT being 10 which indicates that it will only fetch and match 10 items from the list.
        Returns:
        this.
      • matchPatternBinary

        public B matchPatternBinary​(GlideString matchPatternBinary)
        The match filter is applied to the result of the command and will only include strings that match the pattern specified. If the set, hash, or list is large enough for scan commands to return only a subset of the set, hash, or list, then there could be a case where the result is empty although there are items that match the pattern specified. This is due to the default COUNT being 10 which indicates that it will only fetch and match 10 items from the list.
        Returns:
        this.
      • count

        public B count​(java.lang.Long count)
        COUNT is a just a hint for the command for how many elements to fetch from the set, hash, or list. COUNT could be ignored until the set, hash, or list is large enough for the SCAN commands to represent the results as compact single-allocation packed encoding.
        Returns:
        this.
      • self

        protected abstract B self()
      • build

        public abstract C build()
      • toString

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