Tabnine Logo
PartialList.totalSize
Code IndexAdd Tabnine to your IDE (free)

How to use
totalSize
method
in
org.nuxeo.ecm.core.api.PartialList

Best Java code snippets using org.nuxeo.ecm.core.api.PartialList.totalSize (Showing top 6 results out of 315)

origin: org.nuxeo.ecm.platform/nuxeo-platform-comment

  protected void writeRepliesSummary(CoreSession session, Comment entity, JsonGenerator jg) throws IOException {
    PartialList<Comment> comments = commentManager.getComments(session, entity.getId(), 1L, 0L, false);
    jg.writeNumberField(COMMENT_NUMBER_OF_REPLIES, comments.totalSize());
    if (comments.size() > 0) {
      jg.writeStringField(COMMENT_LAST_REPLY_DATE, comments.get(0).getCreationDate().toString());
    }
  }
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

@Override
public PartialList<Serializable> query(String query, String queryType, QueryFilter queryFilter, long countUpTo) {
  PartialList<Serializable> result = queryProjection(query, queryType, queryFilter, countUpTo,
      (info, rs) -> info.whatColumns.get(0).getFromResultSet(rs, 1));
  if (logger.isLogEnabled()) {
    logger.logIds(result, countUpTo != 0, result.totalSize());
  }
  return result;
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

return new PartialList<>(list, pl.totalSize());
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

@Override
public PartialList<Map<String, Serializable>> queryProjection(String query, String queryType,
    QueryFilter queryFilter, boolean distinctDocuments, long countUpTo, Object... params) {
  query = computeDistinctDocuments(query, distinctDocuments);
  PartialList<Map<String, Serializable>> result = queryProjection(query, queryType, queryFilter, countUpTo,
      (info, rs) -> info.mapMaker.makeMap(rs), params);
  if (logger.isLogEnabled()) {
    logger.logMaps(result, countUpTo != 0, result.totalSize());
  }
  return result;
}
origin: org.nuxeo.ecm.core/nuxeo-core-io

jg.writeNumberField("totalSize", partial.totalSize());
origin: org.nuxeo.ecm.core/nuxeo-core

dms.setTotalSize(pl.totalSize());
for (Document doc : pl) {
  dms.add(readModel(doc));
org.nuxeo.ecm.core.apiPartialListtotalSize

Javadoc

Returns the total size of the bigger list this is a part of.

Popular methods of PartialList

  • <init>
    Constructs a partial list.
  • size
  • get
  • isEmpty
  • stream

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
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