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

How to use
QueryMessage
in
com.eightkdata.mongowp.messages.request

Best Java code snippets using com.eightkdata.mongowp.messages.request.QueryMessage (Showing top 3 results out of 315)

origin: com.8kdata.mongowp/mongowp-core

public QueryMessage build() {
 Preconditions.checkNotNull(query, "Query shall not be null");
 return new QueryMessage(requestBaseMessage, context, context,
   database, collection, numberToSkip, numberToReturn,
   queryOptions, query, returnFieldsSelector, comment,
   explainOption, hint, maxScan, maxTimeMs, max, min, orderBy,
   returnKey, showDiscLoc, snapshot);
}
origin: com.8kdata.mongowp.server/mongo-server-api

C connection = getConnection(messageReplier);
if (QUERY_MESSAGE_COMMAND_COLLECTION.equals(queryMessage.getCollection())) {
 executeCommand(connection, queryMessage, messageReplier);
} else {
 QueryRequest.Builder requestBuilder = new QueryRequest.Builder(
   queryMessage.getDatabase(),
   queryMessage.getCollection()
 );
 QueryOptions queryOptions = queryMessage.getQueryOptions();
 requestBuilder.setCollection(queryMessage.getCollection())
   .setQuery(queryMessage.getQuery())
   .setProjection(null)
   .setNumberToSkip(queryMessage.getNumberToSkip())
   .setLimit(queryMessage.getNumberToReturn())
   .setAwaitData(queryOptions.isAwaitData())
   .setExhaust(queryOptions.isExhaust())
   connection,
   new Request(
     queryMessage.getDatabase(),
     new ExternalClientInfo(queryMessage.getClientAddress(), queryMessage.getClientPort()),
     requestBuilder.isSlaveOk(),
origin: com.8kdata.mongowp.server/mongo-server-api

 QueryMessage queryMessage,
 MessageReplier messageReplier) throws MongoException {
BsonDocument document = queryMessage.getQuery();
LibraryEntry libraryEntry = safeRequestProcessor.getCommandsLibrary()
  .find(document);
 if (!QUERY_MESSAGE_ADMIN_DATABASE.equals(queryMessage.getDatabase())) {
  throw new UnauthorizedException(
    command.getCommandName() + "may only be run "
  queryMessage.getDatabase(),
  new ExternalClientInfo(queryMessage.getClientAddress(), queryMessage.getClientPort()),
  queryMessage.getQueryOptions().isSlaveOk(),
com.eightkdata.mongowp.messages.requestQueryMessage

Most used methods

  • <init>
  • getClientAddress
  • getClientPort
  • getCollection
  • getDatabase
  • getNumberToReturn
  • getNumberToSkip
  • getQuery
  • getQueryOptions

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ImageIO (javax.imageio)
  • JButton (javax.swing)
  • CodeWhisperer alternatives
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