Java Code Examples for org.apache.kylin.common.persistence.ResourceStore#STREAMING_RESOURCE_ROOT

The following examples show how to use org.apache.kylin.common.persistence.ResourceStore#STREAMING_RESOURCE_ROOT . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StreamingManager.java    From kylin-on-parquet-v2 with Apache License 2.0 5 votes vote down vote up
private StreamingManager(KylinConfig config) throws IOException {
    this.config = config;
    this.streamingMap = new CaseInsensitiveStringCache<StreamingConfig>(config, "streaming");
    this.crud = new CachedCrudAssist<StreamingConfig>(getStore(), ResourceStore.STREAMING_RESOURCE_ROOT,
            StreamingConfig.class, streamingMap) {
        @Override
        protected StreamingConfig initEntityAfterReload(StreamingConfig t, String resourceName) {
            return t; // noop
        }
    };

    // touch lower level metadata before registering my listener
    crud.reloadAll();
    Broadcaster.getInstance(config).registerListener(new StreamingSyncListener(), "streaming");
}
 
Example 2
Source File: StreamingManager.java    From kylin with Apache License 2.0 5 votes vote down vote up
private StreamingManager(KylinConfig config) throws IOException {
    this.config = config;
    this.streamingMap = new CaseInsensitiveStringCache<StreamingConfig>(config, "streaming");
    this.crud = new CachedCrudAssist<StreamingConfig>(getStore(), ResourceStore.STREAMING_RESOURCE_ROOT,
            StreamingConfig.class, streamingMap) {
        @Override
        protected StreamingConfig initEntityAfterReload(StreamingConfig t, String resourceName) {
            return t; // noop
        }
    };

    // touch lower level metadata before registering my listener
    crud.reloadAll();
    Broadcaster.getInstance(config).registerListener(new StreamingSyncListener(), "streaming");
}
 
Example 3
Source File: StreamingConfig.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
public static String concatResourcePath(String name) {
    return ResourceStore.STREAMING_RESOURCE_ROOT + "/" + name + ".json";
}
 
Example 4
Source File: StreamingConfig.java    From kylin with Apache License 2.0 4 votes vote down vote up
public static String concatResourcePath(String name) {
    return ResourceStore.STREAMING_RESOURCE_ROOT + "/" + name + ".json";
}