Examples of toList()


Examples of backtype.storm.tuple.Fields.toList()

    _pending = new TimeCacheMap<List<Object>, Map<GlobalStreamId, Tuple>>(timeout, new ExpireCallback());
    _numSources = context.getThisSources().size();
    Set<String> idFields = null;
    for (GlobalStreamId source : context.getThisSources().keySet()) {
      Fields fields = context.getComponentOutputFields(source.get_componentId(), source.get_streamId());
      Set<String> setFields = new HashSet<String>(fields.toList());
      if (idFields == null)
        idFields = setFields;
      else
        idFields.retainAll(setFields);
View Full Code Here

Examples of com.avaje.ebean.text.json.JsonContext.toList()


    String s = json.toJson(list);
    System.out.println(s);

    List<Customer> mList = json.toList(Customer.class, s);
    System.out.println("VIA STRING: " + mList);

    StringReader reader = new StringReader(s);
    List<Customer> mList2 = json.toList(Customer.class, reader);
    System.out.println("VIA READER: " + mList2);
View Full Code Here

Examples of com.foundationdb.server.types.texpressions.TInputSetBuilder.toList()

        if (sumType != SumType.DECIMAL)
            return super.inputSets();

        TInputSetBuilder builder = new TInputSetBuilder();
        builder.pickingCovers(inputClass(), 0);
        return builder.toList();
    }
   
    @Override
    public TOverloadResult resultType() {
        if (sumType != SumType.DECIMAL)
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.NodeIterator.toList()

    } else {
      //If we didnt find the sourceName in the model, maybe it is a different source with the
      //same schema.
      //Maybe we need to substitute the sourceName in the model with this one
      NodeIterator sourceObjectIter = model.listObjectsOfProperty(sourceNameProp);
      List<RDFNode> sourceObjects = sourceObjectIter.toList();
     
      if(sourceObjects.size() > 1) {
        throw new KarmaException("More than one resource exists with source name: " + id.getName());
      } else if(sourceObjects.size() == 1) {
        RDFNode prevSourceObject = sourceObjects.get(0);
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.ResIterator.toList()

      Model model = WorksheetR2RMLJenaModelParser.loadSourceModelIntoJenaModel(modelURL);
      Property rdfTypeProp = model.getProperty(Uris.RDF_TYPE_URI);
      Property baseURIProp = model.getProperty(Uris.KM_HAS_BASEURI);
      RDFNode node = model.getResource(Uris.KM_R2RML_MAPPING_URI);
      ResIterator res = model.listResourcesWithProperty(rdfTypeProp, node);
      List<Resource> resList = res.toList();
      for(Resource r: resList)
      {
        if (r.hasProperty(baseURIProp)) {
          baseURI = r.getProperty(baseURIProp).asTriple().getObject().toString();
          baseURI = baseURI.replace("\"", "");
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.StmtIterator.toList()

      Set<Property> dtProps
  ) {
   
    Resource s = ResourceFactory.createResource(entityUri);
    StmtIterator stmts = ontModel.listStatements(s, null, (RDFNode) null);
    for ( Statement stmt : stmts.toList() ) {
   
      RDFNode rdfNode = stmt.getObject();
      if ( rdfNode.isAnon() ) {
        continue;
      }
View Full Code Here

Examples of com.hp.hpl.jena.util.iterator.ExtendedIterator.toList()

    try {
      // run a simple query using Jena interface
      ExtendedIterator results = model.listIndividuals( cls );
     
      // print if the query succeeded
      int size = results.toList().size();
      System.out.print( "completed in " + timers.mainTimer.getElapsed() + "ms" );
      System.out.println(" (" + size + " results)" );
    } catch( TimeoutException e ) {
      System.out.println( "interrupted after " + timers.mainTimer.getElapsed() + "ms" );
    }
View Full Code Here

Examples of com.isfasiel.util.data.Data.toList()

  @RequestMapping(value="/sample.do")
  public String go(Model model) throws Exception {
    System.out.println(fileProp.getProperty("baseDir"));
    System.out.println(fileProp.getProperty("mineType"));
    Data result = sampleService.insert(getParam());
    model.addAttribute("result", result.toList());
    return "test";
  }
 
  @RequestMapping(value="/sample/create/{id}/{name}")
  public String create(@PathVariable("id") int id, @PathVariable("name") String name) throws Exception {
View Full Code Here

Examples of com.liferay.portal.kernel.search.Hits.toList()

      // For the sake of speed, search for users in the index rather than
      // querying the database directly.
      Hits hits = UserLocalServiceUtil.search(companyId, firstName, middleName, lastName, screenName,
          emailAddress, status, params, andSearch, first, liferayOneRelativeFinishRow, sort);

      List<Document> documentHits = hits.toList();

      logger.debug(
        ("filters firstName=[{0}] middleName=[{1}] lastName=[{2}] screenName=[{3}] emailAddress=[{4}] active=[{5}] andSearch=[{6}] startRow=[{7}] liferayOneRelativeFinishRow=[{8}] sortColumn=[{9}] reverseOrder=[{10}] hitCount=[{11}]"),
        firstName, middleName, lastName, screenName, emailAddress, status, andSearch, first,
        liferayOneRelativeFinishRow, sortField, sort.isReverse(), documentHits.size());
View Full Code Here

Examples of com.sun.tools.javac.util.ListBuffer.toList()

          usageError("main.requires_argument", s);
        ListBuffer listbuffer3 = new ListBuffer();
        for (int i1 = 0; i1 < j - 1; i1++)
          listbuffer3.append(as[++i]);

        setOption(s, listbuffer3.toList());
      } else {
        listbuffer.append(s);
      }
    }
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.