private boolean isRTSGSettingOk(RTSGroup rtsGroup) {
        Path rtsgPath = rtsGroup.path();
        return rtsGroup.version() == Version.LATEST_ID
                && rtsGroup.mode().equals(setting.mode)
                && rtsgPath.getParent().equals(localDir)
                && rtsGroup.schema().equals(setting.schema)
                && rtsGroup.grouping() == setting.grouping
                && Trick.equals(rtsGroup.dims(), setting.dims)
                && Trick.equals(rtsGroup.metrics(), setting.metrics);
    }
Close this realtime table. Job is done.
This method only called before process exit.
indexr-segment/src/main/java/io/indexr/segment/rt/RealtimeTable.java