java.lang.Object
org.apache.drill.common.scanner.persistence.ScanResult

public final class ScanResult extends Object
The root doc of the scan result
  • Constructor Details

  • Method Details

    • getScannedPackages

      public List<String> getScannedPackages()
      Returns:
      packages that were scanned as defined in the drill configs
    • getAnnotatedClasses

      public List<AnnotatedClassDescriptor> getAnnotatedClasses()
      Returns:
      functions annotated with configured annotations
    • getImplementations

      public List<ParentClassDescriptor> getImplementations()
      Returns:
      list of implementations per parent class
    • getScannedClasses

      public Set<String> getScannedClasses()
    • getScannedAnnotations

      public Set<String> getScannedAnnotations()
    • getImplementations

      public ParentClassDescriptor getImplementations(String c)
      Parameters:
      c - the parent class name
      Returns:
      the descriptor for the implementations found
    • getImplementations

      public <T> Set<Class<? extends T>> getImplementations(Class<T> c)
      Loads all the scanned classes for this parent as a side effect
      Parameters:
      c - the parent
      Returns:
      all the classes found
    • getAnnotatedClasses

      public List<AnnotatedClassDescriptor> getAnnotatedClasses(String c)
      Parameters:
      c - the annotation class name
      Returns:
      the descriptor of the annotated class
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • merge

      public ScanResult merge(ScanResult other)
      merges this and other together into a new result object
      Parameters:
      other -
      Returns:
      the resulting merge