Examples of Mapping


Examples of com.thinkaurelius.titan.core.Mapping

    @Override
    public void register(String store, String key, KeyInformation information, TransactionHandle tx) throws StorageException {
        XContentBuilder mapping = null;
        Class<?> dataType = information.getDataType();
        Mapping map = Mapping.getMapping(information);
        Preconditions.checkArgument(map==Mapping.DEFAULT || AttributeUtil.isString(dataType),
                "Specified illegal mapping [%s] for data type [%s]",map,dataType);

        try {
            mapping = XContentFactory.jsonBuilder().
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.map.Mapping

    this.model = ModelFactory.createDefaultModel();
  }

  public void testEmptyTranslationTable() {
    Resource r = addTranslationTableResource();
    Mapping mapping = new MapParser(this.model, null).parse();
    TranslationTable table = mapping.translationTable(r);
    assertNotNull(table);
    assertEquals(0, table.size());
  }
View Full Code Here

Examples of hu.sztaki.ilab.longneck.process.mapping.Mapping

    protected String version;
    /** The name mapping used in the call. */
    protected Mapping mapping;
   
    public AbstractReference() {
        mapping = new Mapping();
    }
View Full Code Here

Examples of hudson.model.queue.MappingWorksheet.Mapping

            for (JobOffer j : parked.values())
                if(j.canTake(p))
                    candidates.add(j);

            MappingWorksheet ws = new MappingWorksheet(p, candidates);
            Mapping m = loadBalancer.map(p.task, ws);
            if (m == null)
                // if we couldn't find the executor that fits,
                // just leave it in the buildables list and
                // check if we can execute other projects
                continue;

            // found a matching executor. use it.
            WorkUnitContext wuc = new WorkUnitContext(p);
            m.execute(wuc);

            itr.remove();
            if (!wuc.getWorkUnits().isEmpty())
                pendings.add(p);
        }
View Full Code Here

Examples of io.lumify.csv.model.Mapping

        if (csvConceptTypeIri != null) {
            Map<String, Object> metadata = data.createPropertyMetadata();
            LumifyProperties.CONCEPT_TYPE.setProperty(data.getElement(), csvConceptTypeIri, metadata, data.getVisibility(), getAuthorizations());
        }

        Mapping mapping = CsvOntology.MAPPING_JSON.getPropertyValue(data.getProperty());
        StreamingPropertyValue raw = LumifyProperties.RAW.getPropertyValue(data.getElement());
        InputStream rawIn = raw.getInputStream();
        try {
            processCsvStream(rawIn, mapping, data);
        } finally {
View Full Code Here

Examples of net.ellwein.routey.annotations.Mapping

        @Override
        public void foundClass( final String packageName, final Class<?> classFound, final Method methodFound ) {
          LOGGER.debug( "found annotated method: " + classFound.getName() + "." + methodFound.getName() + "()" );
          RequestMethod[] methods;

          final Mapping mapping = methodFound.getAnnotation( Mapping.class );
          if ( mapping.value().length == 0 ) {
            LOGGER.error( "Missing request URI in " + classFound.getName() + "." + methodFound.getName() + "(). Ignoring this mapping." );
            return;
          }
          if ( mapping.method().length == 0 ) {
            LOGGER.debug( "Mapping " + classFound.getName() + "." + methodFound.getName() + "() to default GET method." );
            methods = new RequestMethod[] { RequestMethod.GET };
          } else {
            methods = mapping.method();
          }
          for ( final String requestUri : mapping.value() ) {
            if ( !initializedControllers.containsKey( classFound.getName() ) ) {
              Object controller;
              try {
                controller = classFound.newInstance();
              } catch ( InstantiationException | IllegalAccessException e ) {
View Full Code Here

Examples of net.paoding.rose.web.impl.mapping.Mapping

        return modules;
    }

    private MappingNode prepareMappingTree(List<Module> modules) {
        Mapping rootMapping = new ConstantMapping("");
        MappingNode mappingTree = new MappingNode(rootMapping);
        LinkedEngine rootEngine = new LinkedEngine(null, new RootEngine(instructionExecutor),
                mappingTree);
        mappingTree.getMiddleEngines().addEngine(ReqMethod.ALL, rootEngine);
View Full Code Here

Examples of net.sf.jasperreports.olap.mapping.Mapping

                String fieldMapping = getFieldMapping(field);

                MappingLexer lexer = new MappingLexer(new StringReader(fieldMapping));
                MappingParser parser = new MappingParser(lexer);
                parser.setMappingMetadata(this);
                Mapping mapping;
                try
                {
                    mapping = parser.mapping();
                }
                catch (ANTLRException e)
View Full Code Here

Examples of net.sf.minuteProject.loader.mapping.Mapping

    target = populateTarget(initTarget);
    loadTarget(initholder.getConfiguration(), target)
  }
 
  private void loadPresentationDefinition(String dir, String filename) throws Exception {
      Mapping loader = new Mapping(dir, filename);
    mappingHolder = loader.load();   
  }
View Full Code Here

Examples of opennlp.ccg.alignment.Mapping

        Element al = (Element)als.item(j);
        if(al.getAttribute("source").equals("ANNOTATOR")) {
          NodeList as = al.getElementsByTagName("alignment");
          for(int k = 0; k < as.getLength(); k++) {
            Element a = (Element)as.item(k);
            ms.add(new Mapping(id, Integer.parseInt(a.getAttribute("first")),
                Integer.parseInt(a.getAttribute("second")),
                    Status.forAbbreviation(a.getAttribute("status"))));
          }
        }
      }
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.