congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Pageable.unpaged
Code IndexAdd Tabnine to your IDE (free)

How to use
unpaged
method
in
org.springframework.data.domain.Pageable

Best Java code snippets using org.springframework.data.domain.Pageable.unpaged (Showing top 20 results out of 315)

origin: spring-projects/spring-data-elasticsearch

public FacetedPageImpl(List<T> content, Pageable pageable, long total) {
  super(content, ofNullable(pageable).orElse(Pageable.unpaged()), total);
}
origin: spring-projects/spring-data-elasticsearch

public <T> Page<T> continueScroll(@Nullable String scrollId, long scrollTimeInMillis, Class<T> clazz) {
  SearchScrollRequest request = new SearchScrollRequest(scrollId);
  request.scroll(TimeValue.timeValueMillis(scrollTimeInMillis));
  SearchResponse response;
  try {
    response = client.searchScroll(request);
  } catch (IOException e) {
    throw new ElasticsearchException("Error for search request with scroll: " + request.toString(), e);
  }
  return resultsMapper.mapResults(response, clazz, Pageable.unpaged());
}
origin: spring-projects/spring-data-elasticsearch

public <T> Page<T> continueScroll(@Nullable String scrollId, long scrollTimeInMillis, Class<T> clazz,
    SearchResultMapper mapper) {
  SearchScrollRequest request = new SearchScrollRequest(scrollId);
  request.scroll(TimeValue.timeValueMillis(scrollTimeInMillis));
  SearchResponse response;
  try {
    response = client.searchScroll(request);
  } catch (IOException e) {
    throw new ElasticsearchException("Error for search request with scroll: " + request.toString(), e);
  }
  return mapper.mapResults(response, clazz, Pageable.unpaged());
}
origin: spring-projects/spring-data-solr

/**
 * @param criteria
 */
public SimpleQuery(Criteria criteria) {
  this(criteria, Pageable.unpaged());
}
origin: apache/servicemix-bundles

/**
 * Creates a new {@link SliceImpl} with the given content. This will result in the created {@link Slice} being
 * identical to the entire {@link List}.
 *
 * @param content must not be {@literal null}.
 */
public SliceImpl(List<T> content) {
  this(content, Pageable.unpaged(), false);
}
origin: de.knightsoft-net/gwtp-spring-integration-shared

public DeserializeablePage(final List<T> content) {
 this(content, Pageable.unpaged(), null == content ? 0 : content.size());
}
origin: apache/servicemix-bundles

/**
 * Creates a new {@link PageImpl} with the given content. This will result in the created {@link Page} being identical
 * to the entire {@link List}.
 *
 * @param content must not be {@literal null}.
 */
public PageImpl(List<T> content) {
  this(content, Pageable.unpaged(), null == content ? 0 : content.size());
}
origin: de.knightsoft-net/gwtp-spring-integration

public DeserializeablePage(final List<T> content) {
 this(content, Pageable.unpaged(), null == content ? 0 : content.size());
}
origin: com.github.derjust/spring-data-dynamodb

public UnpagedPageImpl(@NonNull List<T> content, long total) {
  Assert.notNull(content, "content must not be null!");
  this.pageable = Pageable.unpaged();
  this.content = content;
  this.total = total;
}
origin: spring-projects/spring-data-r2dbc

DefaultSelectSpecSupport(String table) {
  Assert.hasText(table, "Table name must not be null!");
  this.table = table;
  this.projectedFields = Collections.emptyList();
  this.sort = Sort.unsorted();
  this.page = Pageable.unpaged();
}
origin: spring-projects/spring-data-solr

@Override
public Pageable getPageRequest() {
  if (this.rows == null && this.offset == null) {
    return Pageable.unpaged();
  }
  int rows = this.rows != null ? this.rows : DEFAULT_PAGE_SIZE;
  long offset = this.offset != null ? this.offset : 0;
  return new SolrPageRequest(rows != 0 ? (int) (offset / rows) : 0, rows, this.sort);
}
origin: org.springframework.data/spring-data-r2dbc

DefaultSelectSpecSupport(String table) {
  Assert.hasText(table, "Table name must not be null!");
  this.table = table;
  this.projectedFields = Collections.emptyList();
  this.sort = Sort.unsorted();
  this.page = Pageable.unpaged();
}
origin: apache/servicemix-bundles

/**
 * Creates a new empty {@link Page}.
 *
 * @return
 * @since 2.0
 */
static <T> Page<T> empty() {
  return empty(Pageable.unpaged());
}
origin: apache/servicemix-bundles

public Pageable getPageable() {
  if (!parameters.hasPageableParameter()) {
    return Pageable.unpaged();
  }
  Pageable pageable = (Pageable) values.get(parameters.getPageableIndex());
  return pageable == null ? Pageable.unpaged() : pageable;
}
origin: apache/servicemix-bundles

public Pageable previousPageable() {
  return hasPrevious() ? pageable.previousOrFirst() : Pageable.unpaged();
}
origin: VanRoy/spring-data-jest

public <T> Page<T> mapResults(SearchScrollResult response, Class<T> clazz) {
  LinkedList<T> results = new LinkedList<>();
  for (SearchScrollResult.Hit<JsonObject, Void> hit : response.getHits(JsonObject.class)) {
    if (hit != null) {
      results.add(mapSource(hit.source, clazz));
    }
  }
  return new AggregatedPageImpl<>(results, Pageable.unpaged(), response.getTotal(), response.getScrollId());
}
origin: spring-projects/spring-data-couchbase

public Pageable getPageable() {
  return delegate.getPageable().isPaged() ? new CountPageable(delegate.getPageable()) : Pageable.unpaged();
}
origin: spring-projects/spring-data-keyvalue

@Override
public Page<T> findAll(Pageable pageable) {
  Assert.notNull(pageable, "Pageable must not be null!");
  if (pageable.isUnpaged()) {
    List<T> result = findAll();
    return new PageImpl<>(result, Pageable.unpaged(), result.size());
  }
  Iterable<T> content = operations.findInRange(pageable.getOffset(), pageable.getPageSize(), pageable.getSort(),
      entityInformation.getJavaType());
  return new PageImpl<>(IterableConverter.toList(content), pageable,
      this.operations.count(entityInformation.getJavaType()));
}
origin: org.springframework.data/spring-data-keyvalue

@Override
public Page<T> findAll(Pageable pageable) {
  Assert.notNull(pageable, "Pageable must not be null!");
  if (pageable.isUnpaged()) {
    List<T> result = findAll();
    return new PageImpl<>(result, Pageable.unpaged(), result.size());
  }
  Iterable<T> content = operations.findInRange(pageable.getOffset(), pageable.getPageSize(), pageable.getSort(),
      entityInformation.getJavaType());
  return new PageImpl<>(IterableConverter.toList(content), pageable,
      this.operations.count(entityInformation.getJavaType()));
}
origin: apache/servicemix-bundles

@Override
public Page<T> findAll(Pageable pageable) {
  Assert.notNull(pageable, "Pageable must not be null!");
  if (pageable.isUnpaged()) {
    List<T> result = findAll();
    return new PageImpl<>(result, Pageable.unpaged(), result.size());
  }
  Iterable<T> content = operations.findInRange(pageable.getOffset(), pageable.getPageSize(), pageable.getSort(),
      entityInformation.getJavaType());
  return new PageImpl<>(IterableConverter.toList(content), pageable,
      this.operations.count(entityInformation.getJavaType()));
}
org.springframework.data.domainPageableunpaged

Javadoc

Returns a Pageable instance representing no pagination setup.

Popular methods of Pageable

  • getPageSize
    Returns the number of items to be returned.
  • getSort
    Returns the sorting parameters.
  • getOffset
  • getPageNumber
    Returns the page to be returned.
  • isPaged
  • isUnpaged
  • previousOrFirst
  • toOptional
  • hasPrevious
  • next
  • first
  • getSortOr
    Returns the current Sort or the given one if the current one is unsorted.
  • first,
  • getSortOr

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Kernel (java.awt.image)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Top Sublime Text 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