org.teiid.metadata.Table.setMaterializedTable()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(253)

本文整理了Java中org.teiid.metadata.Table.setMaterializedTable()方法的一些代码示例,展示了Table.setMaterializedTable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setMaterializedTable()方法的具体详情如下:
包路径:org.teiid.metadata.Table
类名称:Table
方法名:setMaterializedTable

Table.setMaterializedTable介绍

暂无

代码示例

代码示例来源:origin: teiid/teiid

  1. private static void removeTableOption(String key, Table table) {
  2. if (table.getProperty(key, false) != null) {
  3. table.setProperty(key, null);
  4. }
  5. removeCommonProperty(key, table);
  6. if (key.equals(DDLConstants.MATERIALIZED)) {
  7. table.setMaterialized(false);
  8. }
  9. if (key.equals(DDLConstants.MATERIALIZED_TABLE)) {
  10. table.setMaterializedTable(null);
  11. }
  12. if (key.equals(DDLConstants.UPDATABLE)) {
  13. table.setSupportsUpdate(false);
  14. }
  15. if (key.equals(DDLConstants.CARDINALITY)) {
  16. table.setCardinality(-1);
  17. }
  18. }

代码示例来源:origin: org.jboss.teiid/teiid-engine

  1. private static void removeTableOption(String key, Table table) {
  2. if (table.getProperty(key, false) != null) {
  3. table.setProperty(key, null);
  4. }
  5. removeCommonProperty(key, table);
  6. if (key.equals(DDLConstants.MATERIALIZED)) {
  7. table.setMaterialized(false);
  8. }
  9. if (key.equals(DDLConstants.MATERIALIZED_TABLE)) {
  10. table.setMaterializedTable(null);
  11. }
  12. if (key.equals(DDLConstants.UPDATABLE)) {
  13. table.setSupportsUpdate(false);
  14. }
  15. if (key.equals(DDLConstants.CARDINALITY)) {
  16. table.setCardinality(-1);
  17. }
  18. }

代码示例来源:origin: org.teiid/teiid-engine

  1. private static void removeTableOption(String key, Table table) {
  2. if (table.getProperty(key, false) != null) {
  3. table.setProperty(key, null);
  4. }
  5. removeCommonProperty(key, table);
  6. if (key.equals(DDLConstants.MATERIALIZED)) {
  7. table.setMaterialized(false);
  8. }
  9. if (key.equals(DDLConstants.MATERIALIZED_TABLE)) {
  10. table.setMaterializedTable(null);
  11. }
  12. if (key.equals(DDLConstants.UPDATABLE)) {
  13. table.setSupportsUpdate(false);
  14. }
  15. if (key.equals(DDLConstants.CARDINALITY)) {
  16. table.setCardinality(-1);
  17. }
  18. }

代码示例来源:origin: org.teiid/teiid-engine

  1. private static void setTableOptions(Table table) {
  2. Map<String, String> props = table.getProperties();
  3. setCommonProperties(table, props);
  4. String value = props.remove(DDLConstants.MATERIALIZED);
  5. if (value != null) {
  6. table.setMaterialized(isTrue(value));
  7. }
  8. value = props.remove(DDLConstants.MATERIALIZED_TABLE);
  9. if (value != null) {
  10. Table mattable = new Table();
  11. mattable.setName(value);
  12. table.setMaterializedTable(mattable);
  13. }
  14. value = props.remove(DDLConstants.UPDATABLE);
  15. if (value != null) {
  16. table.setSupportsUpdate(isTrue(value));
  17. }
  18. value = props.remove(DDLConstants.CARDINALITY);
  19. if (value != null) {
  20. table.setCardinality(Long.valueOf(value));
  21. }
  22. }

代码示例来源:origin: teiid/teiid

  1. private static void setTableOptions(Table table) {
  2. Map<String, String> props = table.getProperties();
  3. setCommonProperties(table, props);
  4. String value = props.remove(DDLConstants.MATERIALIZED);
  5. if (value != null) {
  6. table.setMaterialized(isTrue(value));
  7. }
  8. value = props.remove(DDLConstants.MATERIALIZED_TABLE);
  9. if (value != null) {
  10. Table mattable = new Table();
  11. mattable.setName(value);
  12. table.setMaterializedTable(mattable);
  13. }
  14. value = props.remove(DDLConstants.UPDATABLE);
  15. if (value != null) {
  16. table.setSupportsUpdate(isTrue(value));
  17. }
  18. value = props.remove(DDLConstants.CARDINALITY);
  19. if (value != null) {
  20. table.setCardinality(Long.valueOf(value));
  21. }
  22. }

代码示例来源:origin: org.jboss.teiid/teiid-engine

  1. private static void setTableOptions(Table table) {
  2. Map<String, String> props = table.getProperties();
  3. setCommonProperties(table, props);
  4. String value = props.remove(DDLConstants.MATERIALIZED);
  5. if (value != null) {
  6. table.setMaterialized(isTrue(value));
  7. }
  8. value = props.remove(DDLConstants.MATERIALIZED_TABLE);
  9. if (value != null) {
  10. Table mattable = new Table();
  11. mattable.setName(value);
  12. table.setMaterializedTable(mattable);
  13. }
  14. value = props.remove(DDLConstants.UPDATABLE);
  15. if (value != null) {
  16. table.setSupportsUpdate(isTrue(value));
  17. }
  18. value = props.remove(DDLConstants.CARDINALITY);
  19. if (value != null) {
  20. table.setCardinality(Long.valueOf(value));
  21. }
  22. }

代码示例来源:origin: org.teiid/teiid-metadata

  1. table.setMaterializedTable(matTable);

代码示例来源:origin: teiid/teiid

  1. table.setMaterializedTable(matTable);

代码示例来源:origin: org.teiid/teiid-engine

  1. t.setMaterializedTable(matTable);

代码示例来源:origin: teiid/teiid

  1. t.setMaterializedTable(matTable);

代码示例来源:origin: org.jboss.teiid/teiid-engine

  1. t.setMaterializedTable(matTable);

代码示例来源:origin: org.teiid/teiid-metadata

  1. tableRecord.setMaterializedTable((Table)getByType(MetadataConstants.RECORD_TYPE.TABLE).get(tableRecord.getMaterializedTable().getUUID()));

代码示例来源:origin: teiid/teiid

  1. tableRecord.setMaterializedTable((Table)getByType(MetadataConstants.RECORD_TYPE.TABLE).get(tableRecord.getMaterializedTable().getUUID()));

代码示例来源:origin: teiid/teiid

  1. virtGroup.setMaterializedTable(physGroup);
  2. virtGroup.setMaterializedStageTable(physGroupStage);
  3. virtGroupManaged.setMaterializedTable(physGroup);
  4. virtGroupManaged.setMaterializedStageTable(physGroupStage);
  5. virtGroupManaged.setProperty(MaterializationMetadataRepository.ALLOW_MATVIEW_MANAGEMENT, "true");
  6. new String[] { DataTypeManager.DefaultDataTypes.STRING});
  7. virtGroup1.setMaterializedTable(physGroup1);
  8. virtGroup1.setMaterializedStageTable(physGroupStage1);

相关文章