Tabnine Logo
Header.addToIndexes
Code IndexAdd Tabnine to your IDE (free)

How to use
addToIndexes
method
in
de.julielab.jules.types.pubmed.Header

Best Java code snippets using de.julielab.jules.types.pubmed.Header.addToIndexes (Showing top 3 results out of 315)

origin: ch.epfl.bbp.nlp/bluima_mongodb

@Override
public void getNext(JCas jCas) throws IOException, CollectionException {
  DBObject doc = cur.next();
  Header h = new Header(jCas);
  h.setDocId(doc.get("_id").toString());
  h.addToIndexes();
  Map<String, Integer> dbDeleteKeys = new HashMap<String, Integer>();
  for (String deleteKeyName : keysToDelete) {
    if (doc.containsField(deleteKeyName))
      dbDeleteKeys.put(deleteKeyName, 1);
  }
  // insert all dbLists
  BasicDBObject updateQuery = new BasicDBObject("_id", doc.get("_id")
      .toString());
  BasicDBObject updateCommands = new BasicDBObject();
  updateCommands.put("$unset", dbDeleteKeys);
  coll.update(updateQuery, updateCommands, false, false);
}
origin: ch.epfl.bbp.nlp/bluima_db

static void getNext(JCas jcas, ResultSet res_, boolean expandAbbrevs_)
    throws CollectionException {
  try {
    int pmid = res_.getInt(1);
    String title = res_.getString(2);
    String abstrct = res_.getString(3);
    if (abstrct == null)
      abstrct = "";
    Header h = new Header(jcas);
    h.setDocId(pmid + "");
    h.setTitle(title);
    h.addToIndexes();
    if (expandAbbrevs_) {
      abstrct = AbbreviationExpander.expand(abstrct);
    }
    jcas.setDocumentText(abstrct);
  } catch (SQLException e) {
    throw new CollectionException(e);
  }
}
origin: ch.epfl.bbp.nlp/bluima_mongodb

else
  h.setTitle("");
h.addToIndexes();
de.julielab.jules.types.pubmedHeaderaddToIndexes

Popular methods of Header

  • <init>
  • setDocId
  • setTitle
  • readObject
    Write your own initialization here
  • setBegin
  • setEnd

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now