congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
StructuredQuery.toBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
toBuilder
method
in
com.google.cloud.datastore.StructuredQuery

Best Java code snippets using com.google.cloud.datastore.StructuredQuery.toBuilder (Showing top 5 results out of 315)

origin: googleapis/google-cloud-java

@Test
public void testToBuilder() {
 List<StructuredQuery<?>> queries =
   ImmutableList.<StructuredQuery<?>>of(ENTITY_QUERY, KEY_QUERY, PROJECTION_QUERY);
 for (StructuredQuery<?> query : queries) {
  assertEquals(query, query.toBuilder().build());
 }
}
origin: googleapis/google-cloud-java

 break;
query = query.toBuilder().setStartCursor(results.getCursorAfter()).build();
origin: googleapis/google-cloud-java

@Override
StructuredQuery<V> nextQuery(com.google.datastore.v1.RunQueryResponse responsePb) {
 Builder<V> builder = toBuilder();
 builder.setStartCursor(new Cursor(responsePb.getBatch().getEndCursor()));
 if (offset > 0 && responsePb.getBatch().getSkippedResults() < offset) {
  builder.setOffset(offset - responsePb.getBatch().getSkippedResults());
 } else {
  builder.setOffset(0);
  if (limit != null) {
   builder.setLimit(limit - responsePb.getBatch().getEntityResultsCount());
  }
 }
 return builder.build();
}
origin: googleapis/google-cloud-java

 break;
query = query.toBuilder().setStartCursor(results.getCursorAfter()).build();
origin: com.google.cloud/google-cloud-datastore

@Override
StructuredQuery<V> nextQuery(com.google.datastore.v1.RunQueryResponse responsePb) {
 Builder<V> builder = toBuilder();
 builder.setStartCursor(new Cursor(responsePb.getBatch().getEndCursor()));
 if (offset > 0 && responsePb.getBatch().getSkippedResults() < offset) {
  builder.setOffset(offset - responsePb.getBatch().getSkippedResults());
 } else {
  builder.setOffset(0);
  if (limit != null) {
   builder.setLimit(limit - responsePb.getBatch().getEntityResultsCount());
  }
 }
 return builder.build();
}
com.google.cloud.datastoreStructuredQuerytoBuilder

Popular methods of StructuredQuery

  • getKind
    Returns the kind for this query.
  • getLimit
    Returns the limit for this query.
  • getNamespace
  • fromPb
  • getEndCursor
    Returns the end cursor for this query.
  • getFilter
    Returns the filter for this query.
  • getOffset
    Returns the offset for this query.
  • getOrderBy
    Returns the order by clause for this query.
  • getStartCursor
    Returns the start cursor for this query.
  • getDistinctOn
    Returns the distinct on clause for this query.
  • getProjection
    Returns the projection for this query.
  • getType
  • getProjection,
  • getType,
  • newEntityQueryBuilder,
  • nextQuery,
  • toPb,
  • toStringHelper

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Socket (java.net)
    Provides a client-side TCP socket.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • PhpStorm for WordPress
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