Class PinotReflectionUtils


  • public class PinotReflectionUtils
    extends Object
    • Method Detail

      • getClassesThroughReflection

        public static Set<Class<?>> getClassesThroughReflection​(String regexPattern,
                                                                Class<? extends Annotation> annotation)
      • getMethodsThroughReflection

        public static Set<Method> getMethodsThroughReflection​(String regexPattern,
                                                              Class<? extends Annotation> annotation)
      • runWithLock

        public static void runWithLock​(Runnable runnable)
        Executes the given runnable within the reflection lock.
      • getReflectionLock

        @Deprecated
        public static Object getReflectionLock()
        Deprecated.
        Due to the multi-threading issue in org.reflections.vfs.ZipDir, we need to put a lock before calling the reflection related methods. Deprecated: use runWithLock(Runnable) instead