Tabnine Logo
ArangoCursor.getStats
Code IndexAdd Tabnine to your IDE (free)

How to use
getStats
method
in
com.arangodb.ArangoCursor

Best Java code snippets using com.arangodb.ArangoCursor.getStats (Showing top 8 results out of 315)

origin: com.arangodb/arangodb-spring-data

public PageImpl<?> convertPage() {
  Assert.notNull(result.getStats().getFullCount(), MISSING_FULL_COUNT);
  return new PageImpl<>(result.asListRemaining(), accessor.getPageable(), result.getStats().getFullCount());
}
origin: com.arangodb/arangodb-spring-data

public GeoPage<?> convertGeoPage() {
  Assert.notNull(result.getStats().getFullCount(), MISSING_FULL_COUNT);
  return new GeoPage<>(buildGeoResults(result), accessor.getPageable(), result.getStats().getFullCount());
}
origin: arangodb/spring-data

public PageImpl<?> convertPage() {
  Assert.notNull(result.getStats().getFullCount(), MISSING_FULL_COUNT);
  return new PageImpl<>(result.asListRemaining(), accessor.getPageable(), result.getStats().getFullCount());
}
origin: arangodb/spring-data

public GeoPage<?> convertGeoPage() {
  Assert.notNull(result.getStats().getFullCount(), MISSING_FULL_COUNT);
  return new GeoPage<>(buildGeoResults(result), accessor.getPageable(), result.getStats().getFullCount());
}
origin: com.arangodb/arangodb-spring-data

/**
 * Gets all documents in the collection for the class type of this repository, with pagination
 *
 * @param pageable
 *            the pageable object to use for pagination of the results
 * @return an iterable with all the documents in the collection
 */
@Override
public Page<T> findAll(final Pageable pageable) {
  if (pageable == null) {
    LOGGER.debug("Pageable in findAll(Pageable) is null");
  }
  final ArangoCursor<T> result = findAllInternal(pageable, null, new HashMap<>());
  final List<T> content = result.asListRemaining();
  return new PageImpl<>(content, pageable, result.getStats().getFullCount());
}
origin: arangodb/spring-data

/**
 * Gets all documents in the collection for the class type of this repository, with pagination
 *
 * @param pageable
 *            the pageable object to use for pagination of the results
 * @return an iterable with all the documents in the collection
 */
@Override
public Page<T> findAll(final Pageable pageable) {
  if (pageable == null) {
    LOGGER.debug("Pageable in findAll(Pageable) is null");
  }
  final ArangoCursor<T> result = findAllInternal(pageable, null, new HashMap<>());
  final List<T> content = result.asListRemaining();
  return new PageImpl<>(content, pageable, result.getStats().getFullCount());
}
origin: com.arangodb/arangodb-spring-data

/**
 * Finds all documents which match with the given example, with pagination
 *
 * @param example
 *            example object to construct query with
 * @param pageable
 *            pageable object to apply pagination with
 * @param <S>
 * @return iterable of all matching documents, with pagination
 */
@Override
public <S extends T> Page<S> findAll(final Example<S> example, final Pageable pageable) {
  final ArangoCursor cursor = findAllInternal(pageable, example, new HashMap());
  final List<T> content = cursor.asListRemaining();
  return new PageImpl<>((List<S>) content, pageable, cursor.getStats().getFullCount());
}
origin: arangodb/spring-data

/**
 * Finds all documents which match with the given example, with pagination
 *
 * @param example
 *            example object to construct query with
 * @param pageable
 *            pageable object to apply pagination with
 * @param <S>
 * @return iterable of all matching documents, with pagination
 */
@Override
public <S extends T> Page<S> findAll(final Example<S> example, final Pageable pageable) {
  final ArangoCursor cursor = findAllInternal(pageable, example, new HashMap());
  final List<T> content = cursor.asListRemaining();
  return new PageImpl<>((List<S>) content, pageable, cursor.getStats().getFullCount());
}
com.arangodbArangoCursorgetStats

Popular methods of ArangoCursor

  • hasNext
  • next
  • asListRemaining
  • close
  • first
  • forEachRemaining
  • getId
  • getType
  • getWarnings
  • spliterator

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Path (java.nio.file)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook extensions
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