Cpaulyz opened a new pull request, #10874:
URL: https://github.com/apache/iotdb/pull/10874

   ## Description
   
   To support authorization, this PR implements two algorithms about 
intersection.
   
   * PartialPath
   ```java
     /**
      * Generate a list of partial paths which are the intersection of this 
path pattern and input
      * prefix pattern.
      *
      * @param prefixPattern must be a prefix full path ending with one "**", 
like "root.sg.**"
      * @return a list of partial paths which are the intersection of this path 
pattern and input
      *     prefix pattern.
      */
     public List<PartialPath> intersectWithPrefixPattern(PartialPath 
prefixPattern);
   ```
   
   * PathPatternTree
   ```java
     /**
      * Intersect the pattern tree with the full path prefix tree, and return 
the intersected pattern
      * tree.
      *
      * @param patternTree any pattern tree
      * @param fullPathPrefixTree the included pattern must be fullPath or 
prefix pattern(e.g.
      *     root.sg.**)
      * @return the intersected pattern tree
      */
     public static PathPatternTree 
intersectWithFullPathPrefixTree(PathPatternTree patternTree, PathPatternTree 
fullPathPrefixTree);
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to