private static boolean hasChild(FileSystem fileSystem, Path dir) throws IOException {
        if (!fileSystem.exists(dir)) {
            return false;
        }
        RemoteIterator<LocatedFileStatus> iterator = fileSystem.listFiles(dir, true);
        return iterator.hasNext();
    }
A tool which move realtime data in rt folder into history partition.
Only support one partition column.
It only works on indexr tables which has a hive table with location pointed to the same path and with a table partition column.
indexr-server/src/main/java/io/indexr/server/rt2his/Rt2HisOnHive.java