Package java.util

Examples of java.util.HashMap


     */
    private Map getAccessMap(QueryMetadataInterface metadata,
                             CapabilitiesFinder capFinder,
                             JoinRegion joinRegion) throws QueryMetadataException,
                                                   TeiidComponentException {
        Map accessMap = new HashMap();
       
        for (PlanNode node : joinRegion.getJoinSourceNodes().values()) {
            /* check to see if we are directly over an access node.  in the event that the join source root
             * looks like select->access, we still won't consider this node for pushing
             */
 
View Full Code Here


            case '<':
            {
                int theNextByte = is.read();
                if( theNextByte == '<' )
                {
                    Map result = new HashMap();
                    //we are reading a dictionary
                    Object key = parseNextToken( is );
                    while( key instanceof LiteralName && key != MARK_END_OF_DICTIONARY )
                    {
                        Object value = parseNextToken( is );
                        result.put( ((LiteralName)key).name, value );
                        key = parseNextToken( is );
                    }
                    retval = result;
                }
                else
View Full Code Here

   
   
    static class SourceFixer extends MappingVisitor{
        public void visit(MappingSourceNode sourceNode) {
            ResultSetInfo info = getResultInfo(sourceNode.getResultName());
            Map symbolMap = new HashMap();
            for (Iterator i = info.getCommand().getProjectedSymbols().iterator(); i.hasNext();) {
                ElementSymbol element = (ElementSymbol)i.next();
                symbolMap.put(element, element);
            }
            sourceNode.setSymbolMap(symbolMap);
            sourceNode.setResultSetInfo(info);
        }
View Full Code Here

* @param parameters a list of parameters
*/
public ParamAskWin(Frame parent, List parameters) {
    super(parent, I18N.get("ParamAskWin.title"), true); // Modal
    this.parameters = parameters;
    createdInquisitors = new HashMap();
    selectedParameter = null;
    buildWindow();
    questionList.setSelectedIndex(0); // Select first question
    questionList.setVisibleRowCount(Math.max(parameters.size(),
               MAX_LIST_VISIBLE));
View Full Code Here

            Arrays.asList(new Object[] { "a" })//$NON-NLS-1$
            Arrays.asList(new Object[] { "b" }) }; //$NON-NLS-1$

        FakeDataManager dataMgr = new FakeDataManager();
        dataMgr.setThrowBlocked(true);
        Map valueMap = new HashMap();
        valueMap.put("1", "a"); //$NON-NLS-1$ //$NON-NLS-2$
        valueMap.put("2", "b"); //$NON-NLS-1$ //$NON-NLS-2$
        dataMgr.defineCodeTable("pm1.g1", "e1", "e2", valueMap); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
        
        helpTestProject(projectElements, data, elements, expected, dataMgr);       
    }   
View Full Code Here

            Arrays.asList(new Object[] { new Integer(4), new Integer(5) })   
                };

        dataMgr = new FakeDataManager();
        dataMgr.setThrowBlocked(true);
        Map valueMap = new HashMap();
        valueMap.put(new Integer(1), new Integer(2));
        valueMap.put(new Integer(2), new Integer(3));
        valueMap.put(new Integer(3), new Integer(4));
        valueMap.put(new Integer(4), new Integer(5));
        valueMap.put(new Integer(5), new Integer(6));
        valueMap.put(new Integer(10), new Integer(7));
        valueMap.put(new Integer(11), new Integer(8));
        dataMgr.defineCodeTable("pm1.g1", "e1", "e2", valueMap);         //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
               
        helpTestJoin();       
    }   
View Full Code Here

        copy.setProcedureName(getProcedureName());
        copy.setProcedureCallableName(getProcedureCallableName());
        copy.setProcedureID(getProcedureID());
        copy.setGroup(getGroup().clone());
        if (getTemporaryMetadata() != null){
            copy.setTemporaryMetadata(new HashMap(getTemporaryMetadata()));
        }
        copy.callableName = callableName;
        copy.calledWithReturn = calledWithReturn;
        List<SPParameter> params = getParameters();
        for(int i=0; i<params.size(); i++) {
View Full Code Here

    protected void copyMetadataState(Command copy) {
        if(this.getExternalGroupContexts() != null) {
            copy.externalGroups = (GroupContext)this.externalGroups.clone();
        }
        if(this.tempGroupIDs != null) {
            copy.setTemporaryMetadata(new HashMap(this.tempGroupIDs));
        }
       
        copy.setIsResolved(this.isResolved());
        copy.plan = this.plan;
        if (this.correlatedReferences != null) {
View Full Code Here

  {
    int groups = 0;
    if (this.searchCriteria != null)
    {
      Iterator it = this.searchCriteria.iterator();
      HashMap tempHashMap = new HashMap();
      while (it.hasNext())
      {
        SearchCriteriaVO searchCriteriaVO = (SearchCriteriaVO) it.next();
        tempHashMap.put(new Integer(Integer.parseInt(searchCriteriaVO.getGroupID())), "");
      } //end of while loop (iterator.hasNext())
      groups = tempHashMap.size();
    } //end of if statement (this.searchCriteria != null)
    return groups;
  } //end of getNumberOfGroups method
View Full Code Here

   * @return A HashMap of available condition
   * options for the search criteria.
   */
  public static final HashMap getConditionOptions()
  {
    HashMap conditions = new HashMap();
    conditions.put(BEGINS_WITH_INTEGER , BEGINS_WITH_STRING);
    conditions.put(CONTAINS_INTEGER , CONTAINS_STRING);
    conditions.put(ENDS_WITH_INTEGER , ENDS_WITH_STRING);
    conditions.put(EQUALS_INTEGER , EQUALS_STRING);
    conditions.put(GREATER_THAN_INTEGER, GREATER_THAN_STRING);
    conditions.put(HAS_INTEGER , HAS_STRING);
    conditions.put(LESS_THAN_INTEGER , LESS_THAN_STRING);
    return conditions;
  } //end of getConditionOptions method
View Full Code Here

TOP

Related Classes of java.util.HashMap

Copyright © 2015 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.