Class ScanResult
java.lang.Object
org.apache.drill.common.scanner.persistence.ScanResult
The root doc of the scan result
-
Constructor Summary
ConstructorDescriptionScanResult
(Collection<String> scannedPackages, Collection<String> scannedClasses, Collection<String> scannedAnnotations, Collection<AnnotatedClassDescriptor> annotatedClasses, Collection<ParentClassDescriptor> implementations) -
Method Summary
Modifier and TypeMethodDescriptiongetImplementations
(Class<T> c) Loads all the scanned classes for this parent as a side effectmerge
(ScanResult other) merges this and other together into a new result objecttoString()
-
Constructor Details
-
ScanResult
public ScanResult(Collection<String> scannedPackages, Collection<String> scannedClasses, Collection<String> scannedAnnotations, Collection<AnnotatedClassDescriptor> annotatedClasses, Collection<ParentClassDescriptor> implementations)
-
-
Method Details
-
getScannedPackages
- Returns:
- packages that were scanned as defined in the drill configs
-
getAnnotatedClasses
- Returns:
- functions annotated with configured annotations
-
getImplementations
- Returns:
- list of implementations per parent class
-
getScannedClasses
-
getScannedAnnotations
-
getImplementations
- Parameters:
c
- the parent class name- Returns:
- the descriptor for the implementations found
-
getImplementations
Loads all the scanned classes for this parent as a side effect- Parameters:
c
- the parent- Returns:
- all the classes found
-
getAnnotatedClasses
- Parameters:
c
- the annotation class name- Returns:
- the descriptor of the annotated class
-
toString
-
merge
merges this and other together into a new result object- Parameters:
other
-- Returns:
- the resulting merge
-