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

The following examples show how to use org.apache.kylin.common.persistence.ResourceStore#TABLE_EXD_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: TableMetadataManager.java    From kylin-on-parquet-v2 with Apache License 2.0 6 votes vote down vote up
private void initSrcExt() throws IOException {
    this.srcExtMap = new CaseInsensitiveStringCache<>(config, "table_ext");
    this.srcExtCrud = new CachedCrudAssist<TableExtDesc>(getStore(), ResourceStore.TABLE_EXD_RESOURCE_ROOT,
            TableExtDesc.class, srcExtMap) {
        @Override
        protected TableExtDesc initEntityAfterReload(TableExtDesc t, String resourceName) {
            // convert old tableExt json to new one
            if (t.getIdentity() == null) {
                t = convertOldTableExtToNewer(resourceName);
            }

            String prj = TableDesc.parseResourcePath(resourceName).getProject();
            t.init(prj);
            return t;
        }
    };
    srcExtCrud.reloadAll();
    Broadcaster.getInstance(config).registerListener(new SrcTableExtSyncListener(), "table_ext");
}
 
Example 2
Source File: TableMetadataManager.java    From kylin with Apache License 2.0 6 votes vote down vote up
private void initSrcExt() throws IOException {
    this.srcExtMap = new CaseInsensitiveStringCache<>(config, "table_ext");
    this.srcExtCrud = new CachedCrudAssist<TableExtDesc>(getStore(), ResourceStore.TABLE_EXD_RESOURCE_ROOT,
            TableExtDesc.class, srcExtMap) {
        @Override
        protected TableExtDesc initEntityAfterReload(TableExtDesc t, String resourceName) {
            // convert old tableExt json to new one
            if (t.getIdentity() == null) {
                t = convertOldTableExtToNewer(resourceName);
            }

            String prj = TableDesc.parseResourcePath(resourceName).getProject();
            t.init(prj);
            return t;
        }
    };
    srcExtCrud.reloadAll();
    Broadcaster.getInstance(config).registerListener(new SrcTableExtSyncListener(), "table_ext");
}
 
Example 3
Source File: TableExtDesc.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
public static String concatRawResourcePath(String nameOnPath) {
    return ResourceStore.TABLE_EXD_RESOURCE_ROOT + "/" + nameOnPath + ".json";
}
 
Example 4
Source File: TableExtDesc.java    From kylin with Apache License 2.0 4 votes vote down vote up
public static String concatRawResourcePath(String nameOnPath) {
    return ResourceStore.TABLE_EXD_RESOURCE_ROOT + "/" + nameOnPath + ".json";
}
 
Example 5
Source File: TableDesc.java    From Kylin with Apache License 2.0 4 votes vote down vote up
public static String concatExdResourcePath(String tableIdentity) {
    return ResourceStore.TABLE_EXD_RESOURCE_ROOT + "/" + tableIdentity + ".json";
}