Examples of GroupInfo


Examples of lcmc.crm.ui.resource.GroupInfo

        ldi.setGroupInfo(fi.getGroupInfo());
        getBrowser().addToHeartbeatIdList(ldi);
        fi.setLinbitDrbdInfo(ldi);
        /* it adds coloation only to the graph. */
        final CloneInfo ci = ldi.getCloneInfo();
        final GroupInfo giFi = fi.getGroupInfo();
        if (giFi == null) {
            crmg.addColocation(null, fi, ci);
            crmg.addOrder(null, ci, fi);
        } else {
            crmg.addColocation(null, giFi, ci);
View Full Code Here

Examples of org.apache.tez.dag.api.VertexGroup.GroupInfo

    dagBuilder.setName(this.name);
   
    if (!vertexGroups.isEmpty()) {
      for (VertexGroup av : vertexGroups) {
        GroupInfo groupInfo = av.getGroupInfo();
        PlanVertexGroupInfo.Builder groupBuilder = PlanVertexGroupInfo.newBuilder();
        groupBuilder.setGroupName(groupInfo.getGroupName());
        for (Vertex v : groupInfo.getMembers()) {
          groupBuilder.addGroupMembers(v.getName());
        }
        groupBuilder.addAllOutputs(groupInfo.outputs);
        for (Map.Entry<String, InputDescriptor> entry :
             groupInfo.edgeMergedInputs.entrySet()) {
View Full Code Here

Examples of org.apache.tez.dag.api.VertexGroup.GroupInfo

    dagBuilder.setName(this.name);
   
    if (!vertexGroups.isEmpty()) {
      for (VertexGroup av : vertexGroups) {
        GroupInfo groupInfo = av.getGroupInfo();
        PlanVertexGroupInfo.Builder groupBuilder = PlanVertexGroupInfo.newBuilder();
        groupBuilder.setGroupName(groupInfo.getGroupName());
        for (Vertex v : groupInfo.getMembers()) {
          groupBuilder.addGroupMembers(v.getVertexName());
        }
        groupBuilder.addAllOutputs(groupInfo.outputs);
        for (Map.Entry<String, InputDescriptor> entry :
             groupInfo.edgeMergedInputs.entrySet()) {
View Full Code Here

Examples of org.apache.tez.dag.api.VertexGroup.GroupInfo

    dagBuilder.setName(this.name);
   
    if (!vertexGroups.isEmpty()) {
      for (VertexGroup av : vertexGroups) {
        GroupInfo groupInfo = av.getGroupInfo();
        PlanVertexGroupInfo.Builder groupBuilder = PlanVertexGroupInfo.newBuilder();
        groupBuilder.setGroupName(groupInfo.getGroupName());
        for (Vertex v : groupInfo.getMembers()) {
          groupBuilder.addGroupMembers(v.getVertexName());
        }
        groupBuilder.addAllOutputs(groupInfo.outputs);
        for (Map.Entry<String, InputDescriptor> entry :
             groupInfo.edgeMergedInputs.entrySet()) {
View Full Code Here

Examples of org.exolab.castor.builder.info.GroupInfo

            processContentModel(group, state);
            component.setView(group);

            //-- Check Group Type
            Order order = group.getOrder();
            GroupInfo groupInfo = new XMLInfoNature(classInfo).getGroupInfo();
            if (order == Order.choice) {
                groupInfo.setAsChoice();
            } else if (order == Order.sequence) {
                groupInfo.setAsSequence();
            } else {
                groupInfo.setAsAll();
            }

            return group.getMaxOccurs() == 1;
        } catch (ClassCastException ce) {
            //--Should not happen
View Full Code Here

Examples of org.teiid.query.metadata.GroupInfo

   
  static GroupInfo getGroupInfo(GroupSymbol group,
      QueryMetadataInterface metadata)
      throws TeiidComponentException, QueryMetadataException {
    String key = GroupInfo.CACHE_PREFIX + group.getCanonicalName();
    GroupInfo groupInfo = (GroupInfo)metadata.getFromMetadataCache(group.getMetadataID(), key);
     
        if (groupInfo == null) {
          group = group.clone();
            // get all elements from the metadata
            List elementIDs = metadata.getElementIDsInGroupID(group.getMetadataID());

        LinkedHashMap<Object, ElementSymbol> symbols = new LinkedHashMap<Object, ElementSymbol>(elementIDs.size());
           
            for (Object elementID : elementIDs) {
              String elementName = metadata.getName(elementID);
                // Form an element symbol from the ID
                ElementSymbol element = new ElementSymbol(elementName, DataTypeManager.getCanonicalString(StringUtil.toUpperCase(elementName)), group);
                element.setMetadataID(elementID);
                element.setType( DataTypeManager.getDataTypeClass(metadata.getElementType(element.getMetadataID())) );

                symbols.put(elementID, element);
            }
            groupInfo = new GroupInfo(symbols);
            metadata.addToMetadataCache(group.getMetadataID(), key, groupInfo);
        }
    return groupInfo;
  }
View Full Code Here

Examples of org.teiid.query.metadata.GroupInfo

            if (accessPatterns == null){
                accessPatterns = new ArrayList();
            }
            while (j.hasNext()) {
              List elements = metadata.getElementIDsInAccessPattern(j.next());
              GroupInfo groupInfo = getGroupInfo(group, metadata);
              List result = new ArrayList(elements.size());
              for (Iterator iterator = elements.iterator(); iterator.hasNext();) {
              Object id = iterator.next();
              ElementSymbol symbol = groupInfo.getSymbol(id);
              assert symbol != null;
              result.add(symbol);
            }
              if (flatten) {
                accessPatterns.addAll(result);
View Full Code Here

Examples of org.teiid.query.metadata.GroupInfo

    private void resolveAgainstGroups(String elementShortName,
                                      Collection<GroupSymbol> matchedGroups, LinkedList<ElementMatch> matches) throws QueryMetadataException,
                                                         TeiidComponentException {
      for (GroupSymbol group : matchedGroups) {
            GroupInfo groupInfo = ResolverUtil.getGroupInfo(group, metadata);
           
            ElementSymbol result = groupInfo.getSymbol(elementShortName);
            if (result != null) {
              matches.add(new ElementMatch(result, group));
            }
        }
    }
View Full Code Here

Examples of org.voltdb.compiler.VoltProjectBuilder.GroupInfo

        VoltProjectBuilder builder = new VoltProjectBuilder();
        builder.addSchema(schemaPath);
        builder.addPartitionInfo("HELLOWORLD", "DIALECT");

        GroupInfo gi = new GroupInfo("foo", true, false, true, true, false, false);
        builder.addGroups(new GroupInfo[] { gi } );

        // create 20 users, only the first one has an interesting user/pass
        UserInfo[] ui = new UserInfo[15];
        ui[0] = new UserInfo("ry@nlikesthe", "y@nkees", new String[] { "foo" } );
View Full Code Here

Examples of org.voltdb.compiler.VoltProjectBuilder.GroupInfo

        project.addDefaultSchema();
        project.addDefaultPartitioning();
        project.addDefaultProcedures();

        project.setSecurityEnabled(true);
        GroupInfo groups[] = new GroupInfo[] {
                new GroupInfo("foo", false, false, false, false, false, false),
                new GroupInfo("blah", false, false, false, false, false, false)
        };
        project.addGroups(groups);
        UserInfo users[] = new UserInfo[] {
                new UserInfo("john", "hugg", new String[] {"foo"}),
                new UserInfo("ryan", "betts", new String[] {"foo", "bar"}),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.