FLINK SQL Client Register Python UDF Full Process

2023-03-14  

Use GetResources

public class Test {

    public static void main(String[] args) throws Exception{

        ClassLoader classLoader = Test.class.getClassLoader();
        // can only search for characters in jar bags, such as folders ORG, COM, file name A.XML
        Enumeration<URL> paths  = classLoader.getResources("META-INF");
        int count = 0;
        while (paths.hasMoreElements()){
            String path = paths.nextElement().toString();
            if (path.indexOf("jdk") == -1){
                count++;
                System.out.println(path);
            }
        }
        System.out.println(count);
    }
}

source

Related Posts

java implementation of unicode and Chinese mutual conversion

vue -two -way data binding

WeChat Pay Pit

distributed storage minio

FLINK SQL Client Register Python UDF Full Process

Random Posts

bzoj 4012: [hnoi2015] Opening the store -dynamic tree division governance

STM32F030CT86 timer 3 channel 1 to verify the PWM front and rear cut mode

1st stage: java primary-primary

linux configuration ffmpeg

React’s eCharts realizes gradient and zoomed in Welkin