Examples of term()


Examples of backtype.storm.messaging.IContext.term()

    System.out.println("!!!!!!!!!!!!!!!!!!Test one time!!!!!!!!!!!!!!!!!");

    server.close();
    client.close();
    context.term();

    System.out.println("!!!!!!!!!!!!End test_small_message!!!!!!!!!!!!!");
  }

  public String setupLargMsg() {
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.term()

        public void emitLinePart(Context context) {
            Summarized summarized = TypeUtil.erase(outputType).getAnnotation(Summarized.class);
            DataObjectMirror cache = context.createModelCache(outputType);
            DataClass inputData = getEnvironment().getDataClasses().load(inputType);
            DataClass outputData = getEnvironment().getDataClasses().load(outputType);
            for (Summarized.Folding folding : summarized.term().foldings()) {
                context.add(createStartSummarizeFor(context, folding, inputData, outputData, cache.get()));
            }
            context.setOutput(cache.get());
        }
View Full Code Here

Examples of com.clarkparsia.pellet.owlapiv3.PelletReasoner.term()

    Pair<OWLClass,OWLClass> pair = getSubClassAxiom( unsatClass );

    if( pair != null ) {
      Set<Set<ATermAppl>> exps = TaxonomyUtils.getSuperExplanations(
          pellet.getKB().getTaxonomy(),
          pellet.term( pair.first ),
          pellet.term( pair.second ) );

      if( exps != null ) {
        Set<OWLAxiom> result = convertExplanation( exps.iterator().next() );
        if( log.isLoggable( Level.FINE ) )
View Full Code Here

Examples of com.hp.hpl.jena.sparql.sse.lang.parser.SSE_ParserCore.term()

    {
        SSE_ParserCore p = new SSE_ParserCore(reader) ;
        p.setHandler(handler) ;
        try
        {
            p.term() ;
            // Checks for EOF
//            //<EOF> test : EOF is always token 0.
//            if ( p.token_source.getNextToken().kind != 0 )
//                throw new SSEParseException("Trailing characters after "+item, item.getLine(), item.getColumn()) ;
       }
View Full Code Here

Examples of de.dermoba.srcp.devices.LOCK.term()

        Object obj = addressToControlObject.get(deviceGroup).get(address);

        SRCPLock sLock = locks.get(obj);
        LOCK lock = sLock.getLock();
        try {
            lock.term(deviceGroup, address.getAddress1());
            // sLock.setLocked(false);
            // sLock.setSessionID(-1);
        } catch (SRCPException e) {
            throw new SRCPLockingException(ERR_FAILED, e);
        }
View Full Code Here

Examples of de.spinscale.elasticsearch.action.suggest.suggest.SuggestRequest.term()

                suggestRequest.queryAnalyzer(XContentMapValues.nodeStringValue(parserMap.get("analyzer"), ""));
            } else {
                suggestRequest.indexAnalyzer(XContentMapValues.nodeStringValue(parserMap.get("indexAnalyzer"), ""));
                suggestRequest.queryAnalyzer(XContentMapValues.nodeStringValue(parserMap.get("queryAnalyzer"), ""));
            }
            suggestRequest.term(XContentMapValues.nodeStringValue(parserMap.get("term"), ""));
            suggestRequest.similarity(XContentMapValues.nodeFloatValue(parserMap.get("similarity"), 1.0f));
            suggestRequest.size(XContentMapValues.nodeIntegerValue(parserMap.get("size"), 10));

            client.execute(SuggestAction.INSTANCE, suggestRequest, new RestToXContentListener<SuggestResponse>(channel));
        } catch (IOException e) {
View Full Code Here

Examples of dovetaildb.querynode.OrderedOrQueryNode.term()

    if (clauses.size() > 0) {
      QueryNode idQuery = new OrderedOrQueryNode(clauses, null, null, null, false, false);
      Map<String, Object> entries = value.getEntries();
      do {
        long docId = idQuery.doc();
        Bytes idTerm = idQuery.term();
        byte[] idBytes = idTerm.subBytes(NUM_ID_BYTES, idTerm.getLength()-NUM_ID_BYTES).getBytes();
        Object val = entries.get(Util.encodeBytes(idBytes));
        DbServiceUtil.sencodeMulti(ArrayBytes.EMPTY_BYTES, val, edits, docId, false);
      } while(idQuery.next());
    }
View Full Code Here

Examples of dovetaildb.querynode.QueryNode.term()

    assertTrue(s.next());
    doc0 = s.doc();
    assertFalse(s.next());
   
    allTerms.seek(doc0, ArrayBytes.EMPTY_BYTES);
    assertEquals(0, allTerms.term().compareTo(t1));
    assertEquals(NextStatus.NEXT_TERM, allTerms.nextTerm());
    assertEquals(0, allTerms.term().compareTo(t2));
    assertEquals(NextStatus.NEXT_TERM, allTerms.nextTerm());
    assertEquals(0, allTerms.term().compareTo(t4));
    assertEquals(NextStatus.NEXT_TERM, allTerms.nextTerm());
View Full Code Here

Examples of it.unimi.dsi.mg4j.index.IndexIterator.term()

      result = MultiTermIndexIterator.getInstance( curr.top(), indexIterator ).weight( weights.popDouble() );
    }
    catch ( IOException e ) {
      throw new QueryBuilderVisitorException( e );
    }
    result.term( node.toString() );
    return result;
  }

  public boolean visitPre( final Select node ) throws QueryBuilderVisitorException {
    if ( indexMap == null ) throw new IllegalArgumentException( "You cannot use Select nodes without an index map" );
View Full Code Here

Examples of it.unimi.dsi.mg4j.index.IndexIterator.term()

    }
    // TODO: test that this clustered multiterm does work
    final IndexIterator result = concatenated ?
        new DocumentalConcatenatedClusterIndexIterator( (DocumentalClusterIndexReader)getReader(), iterators.toArray( IndexIterators.EMPTY_ARRAY ), usedIndices.toIntArray() ) :
          new DocumentalMergedClusterIndexIterator( (DocumentalClusterIndexReader)getReader(), iterators.toArray( IndexIterators.EMPTY_ARRAY ), usedIndices.toIntArray() );
    result.term( prefix );
    return result;
   
  }
 
  public String toString() {
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.