congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • getContentResolver (Context)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • BoxLayout (javax.swing)
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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