Tabnine Logo
StructuredQuery.getOrderBy
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: googleapis/google-cloud-java

private void compareMergedQuery(StructuredQuery<?> expected, StructuredQuery<?> actual) {
 assertEquals(expected.getKind(), actual.getKind());
 assertEquals(expected.getStartCursor(), actual.getStartCursor());
 assertEquals(expected.getEndCursor(), actual.getEndCursor());
 assertEquals(expected.getOffset(), actual.getOffset());
 assertEquals(expected.getLimit(), actual.getLimit());
 assertEquals(expected.getFilter(), actual.getFilter());
 assertEquals(expected.getOrderBy(), actual.getOrderBy());
 assertEquals(expected.getProjection(), actual.getProjection());
 assertEquals(expected.getDistinctOn(), actual.getDistinctOn());
}
origin: googleapis/google-cloud-java

private void compareBaseBuilderFields(StructuredQuery<?> query) {
 assertEquals(NAMESPACE, query.getNamespace());
 assertEquals(KIND, query.getKind());
 assertEquals(START_CURSOR, query.getStartCursor());
 assertEquals(END_CURSOR, query.getEndCursor());
 assertEquals(OFFSET, query.getOffset());
 assertEquals(LIMIT, query.getLimit());
 assertEquals(FILTER, query.getFilter());
 assertEquals(ORDER_BY, query.getOrderBy());
}
origin: objectify/objectify

/**
 * Copy all the behavior characteristics of the orignial query into the builder.
 */
public static <T, B extends StructuredQuery.Builder<T>> B clone(final StructuredQuery<?> orig, final Supplier<B> into) {
  final B builder = into.get();
  builder.setNamespace(orig.getNamespace());
  builder.setEndCursor(orig.getEndCursor());
  builder.setFilter(orig.getFilter());
  builder.setKind(orig.getKind());
  builder.setLimit(orig.getLimit());
  builder.setOffset(orig.getOffset());
  builder.setStartCursor(orig.getStartCursor());
  addOrderBy(builder, orig.getOrderBy());
  return builder;
}
com.google.cloud.datastoreStructuredQuerygetOrderBy

Javadoc

Returns the order by clause for this query.

Popular methods of StructuredQuery

  • getKind
    Returns the kind for this query.
  • getLimit
    Returns the limit for this query.
  • getNamespace
  • toBuilder
  • fromPb
  • getEndCursor
    Returns the end cursor for this query.
  • getFilter
    Returns the filter for this query.
  • getOffset
    Returns the offset 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

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Top PhpStorm 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