Examples of LookupResult


Examples of hirondelle.web4j.ui.translate.Translation.LookupResult

   <P>If <tt>aBaseText</tt> is not known, and this class is 'recording', then it is added to the
   unknown items.
  */
  public String get(String aBaseText, Locale aLocale) {
    String result = null;
    LookupResult lookup = Translation.lookUp(aBaseText, aLocale, fTranslations);
    if( lookup.hasSucceeded() ){
      result = lookup.getText();
    }
    else {
      result = aBaseText;
      if(LookupResult.UNKNOWN_BASE_TEXT == lookup){
        addUnknown(aBaseText);
View Full Code Here

Examples of org.apache.accumulo.server.tabletserver.Tablet.LookupResult

              continue;
            }
            Thread.currentThread().setName(
                "Client: " + session.client + " User: " + session.user + " Start: " + session.startTime + " Tablet: " + entry.getKey().toString());
           
            LookupResult lookupResult;
            try {
             
              // do the following check to avoid a race condition
              // between setting false below and the task being
              // canceled
View Full Code Here

Examples of org.apache.accumulo.server.tabletserver.Tablet.LookupResult

              continue;
            }
            Thread.currentThread().setName(
                "Client: " + session.client + " User: " + session.user + " Start: " + session.startTime + " Tablet: " + entry.getKey().toString());

            LookupResult lookupResult;
            try {

              // do the following check to avoid a race condition
              // between setting false below and the task being
              // canceled
View Full Code Here

Examples of org.apache.accumulo.server.tabletserver.Tablet.LookupResult

              continue;
            }
            Thread.currentThread().setName(
                "Client: " + session.client + " User: " + session.user + " Start: " + session.startTime + " Tablet: " + entry.getKey().toString());
           
            LookupResult lookupResult;
            try {
             
              // do the following check to avoid a race condition
              // between setting false below and the task being
              // canceled
View Full Code Here

Examples of org.apache.accumulo.server.tabletserver.Tablet.LookupResult

              continue;
            }
            Thread.currentThread().setName(
                "Client: " + session.client + " User: " + session.user + " Start: " + session.startTime + " Tablet: " + entry.getKey().toString());
           
            LookupResult lookupResult;
            try {
             
              // do the following check to avoid a race condition
              // between setting false below and the task being
              // canceled
View Full Code Here

Examples of org.apache.accumulo.server.tabletserver.Tablet.LookupResult

            if (tablet == null) {
              failures.put(entry.getKey(), entry.getValue());
              continue;
            }
           
            LookupResult lookupResult;
            try {
             
              // do the following check to avoid a race condition between setting false below and the task being canceled
              if (isCancelled())
                interruptFlag.set(true);
View Full Code Here

Examples of org.apache.accumulo.server.tabletserver.Tablet.LookupResult

              continue;
            }
            Thread.currentThread().setName(
                "Client: " + session.client + " User: " + session.user + " Start: " + session.startTime + " Tablet: " + entry.getKey().toString());
           
            LookupResult lookupResult;
            try {
             
              // do the following check to avoid a race condition
              // between setting false below and the task being
              // canceled
View Full Code Here

Examples of org.apache.accumulo.server.tabletserver.Tablet.LookupResult

              continue;
            }
            Thread.currentThread().setName(
                "Client: " + session.client + " User: " + session.user + " Start: " + session.startTime + " Tablet: " + entry.getKey().toString());
           
            LookupResult lookupResult;
            try {
             
              // do the following check to avoid a race condition
              // between setting false below and the task being
              // canceled
View Full Code Here

Examples of org.apache.accumulo.tserver.Tablet.LookupResult

              continue;
            }
            Thread.currentThread().setName(
                "Client: " + session.client + " User: " + session.user + " Start: " + session.startTime + " Tablet: " + entry.getKey().toString());

            LookupResult lookupResult;
            try {

              // do the following check to avoid a race condition
              // between setting false below and the task being
              // canceled
View Full Code Here

Examples of org.apache.lucene.search.suggest.Lookup.LookupResult

              continue;
            }
            String ngram = (context + " " + term).trim();
            Integer count = model.get(ngram);
            if (count != null) {
              LookupResult lr = new LookupResult(ngram, (long) (Long.MAX_VALUE * (backoff * (double) count / contextCount)));
              tmp.add(lr);
              if (VERBOSE) {
                System.out.println("      add tmp key='" + lr.key + "' score=" + lr.value);
              }
            }
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.