Examples of map()


Examples of org.c3s.data.mapers.DataMapper.map()

        Map<String, Object> info = (Map<String, Object>)files.get(key);
        DBFilesBean bean = DbAccess.filesAccess.getFileByGameIdAndFileId(game_id, file_id);
        bean.setState((String) info.get("state"));
        bean.setLinkType((String) info.get("type"));
        if (update && bean.getGameFileId() != null && ("insert".equals(bean.getState()) || "none".equals(bean.getState()))) {
          DbAccess.gameFilesAccess.updateByPrimaryKey(mapper.map(bean, DBGameFilesBean.class), bean.getGameFileId());
        } else if (update && bean.getGameFileId() != null && "delete".equals(bean.getState())) {
          DbAccess.gameFilesAccess.deleteByPrimaryKey(bean.getGameFileId());
        } else if (update && bean.getGameFileId() == null && "insert".equals(bean.getState())) {
          DBGameFilesBean newBean = new DBGameFilesBean().
              setFileId(file_id).setGameId(game_id).setLinkType(bean.getLinkType()).setIsActive(1);
View Full Code Here

Examples of org.discoproject.DiscoMapFunction.map()

    try {
      discoWorker.requestTask();

      if (discoWorker.hasMapTask()) {
        final DiscoMapFunction mapFunction = DiscoWorkerMain.<DiscoMapFunction> instantiateFunction(functionName);
        final List<File> outputFiles = mapFunction.map(discoWorker.getMapInput(), discoWorker.getJobName(),
                discoWorker.getWorkingDir(), slicedArgs);
        discoWorker.reportOutputs(outputFiles);
      }

      // TODO: reduce phase is not supported because the dir:// URL scheme is unsupported in the input fetcher.
View Full Code Here

Examples of org.dozer.Mapper.map()

    // get mapper
    Mapper mapper = getMapper(new String[] { "mapping-interface.xml" });

    // do mapping
    UserGroupPrime userGroupPrime = mapper.map(userGroup, UserGroupPrime.class);

    // check mapped group
    assertNotNull(userGroupPrime);
    assertEquals(userGroup.getName(), userGroupPrime.getName());
View Full Code Here

Examples of org.eclipse.swt.widgets.Display.map()

  }
  private void popupDialog(){
    createPopup(calendar);
    popup.setCalendar(calendar);
    Display display = getDisplay ();
    Rectangle parentRect = display.map (getParent (), null, getBounds ());
    Point comboSize = getSize ();
    int x = parentRect.x;
    int y = parentRect.y + comboSize.y;
    popup.setLocation(new Point(x, y));
    if(popup.open()==Dialog.OK){
View Full Code Here

Examples of org.eclipse.ui.internal.handlers.IActionCommandMappingService.map()

      }
    }
    // this allows us to look up a "commandId" give the contributionId
    // and the actionId
    if (mappingService != null && commandId != null) {
      mappingService.map(mappingService.getGeneratedCommandId(primaryId,
          secondaryId), commandId);
    }

    return new ParameterizedCommand(command, null);
  }
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentBuilder.map()

     */
    public void indexParent(String id, Map<String, Object> objectMap) throws IOException {
        XContentBuilder builder = XContentFactory.jsonBuilder();

        // index content
        client.prepareIndex(INDEX_NAME, PARENT_TYPE_NAME, id).setSource(builder.map(objectMap)).execute().actionGet();
    }

    /**
     * Index the file as a child doc
     */
 
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentParser.map()

    private Tuple<String, Map<String, Object>> extractMapping(String type, String source) throws MapperParsingException {
        Map<String, Object> root;
        XContentParser xContentParser = null;
        try {
            xContentParser = XContentFactory.xContent(source).createParser(source);
            root = xContentParser.map();
        } catch (IOException e) {
            throw new MapperParsingException("Failed to parse mapping definition", e);
        } finally {
            if (xContentParser != null) {
                xContentParser.close();
View Full Code Here

Examples of org.exist.xquery.functions.map.MapExpr.map()

               
        step=expr(_t,key);
        _t = _retTree;
        step=expr(_t,value);
        _t = _retTree;
        expr.map(key, value);
        _t = __t343;
        _t = _t.getNextSibling();
      }
      else {
        break _loop344;
View Full Code Here

Examples of org.glassfish.admin.amx.util.ThrowableMapper.map()

    }

    protected void handleException(final Exception e)
            throws MBeanException, ReflectionException {
        final ThrowableMapper mapper = new ThrowableMapper(e);
        final Throwable mapped = mapper.map();

        if (mapped instanceof ReflectionException) {
            throw (ReflectionException) mapped;
        } else if (mapped instanceof MBeanException) {
            throw (MBeanException) mapped;
View Full Code Here

Examples of org.globus.security.gridmap.GridMap.map()

                this.manager.getAuthorizedManagers(this.id, this.type);
        if (callers != null) {
            for (int i = 0; i < callers.length; i++) {
                final Caller caller = callers[i];
                if (caller != null && !caller.isSuperUser()) {
                    map.map(caller.getIdentity(), "fakeuserid");
                }
            }
        }
        this.securityDescriptor.setGridMap(map);
    }
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.