Package cc.redberry.core.tensor

Examples of cc.redberry.core.tensor.ScalarsBackedProductBuilder$Component


    final DbSession writeSession = db.openSession(true);
    try {
      readSession.select("org.sonar.core.persistence.migration.v50.Migration50Mapper.selectRootProjects", new ResultHandler() {
        @Override
        public void handleResult(ResultContext context) {
          Component project = (Component) context.getResultObject();
          Map<Long, String> uuidByComponentId = newHashMap();
          migrateEnabledComponents(readSession, writeSession, project, uuidByComponentId);
          migrateDisabledComponents(readSession, writeSession, project, uuidByComponentId);
        }
      });
View Full Code Here


  }

  private void updateComponent(Component component, Component project, Map<Long, Component> componentsBySnapshotId, Map<Long, String> uuidByComponentId) {
    String snapshotPath = component.getSnapshotPath();
    StringBuilder moduleUuidPath = new StringBuilder();
    Component lastModule = null;
    if (!Strings.isNullOrEmpty(snapshotPath)) {
      for (String s : Splitter.on(".").omitEmptyStrings().split(snapshotPath)) {
        Long snapshotId = Long.valueOf(s);
        Component currentComponent = componentsBySnapshotId.get(snapshotId);
        if (currentComponent.getScope().equals(Scopes.PROJECT)) {
          lastModule = currentComponent;
          moduleUuidPath.append(currentComponent.getUuid()).append(".");
        }
      }
    }
    if (moduleUuidPath.length() > 0) {
      // Remove last '.'
View Full Code Here

TOP

Related Classes of cc.redberry.core.tensor.ScalarsBackedProductBuilder$Component

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.