Tabnine Logo
QueryMessage$QueryOptions
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.8kdata.mongowp.server/wp-layer

private QueryOptions getQueryOptions(int flags) {
 EnumSet<QueryOption> qoSet = EnumSet.noneOf(QueryOption.class);
 if (EnumInt32FlagsUtil.isActive(Flag.TAILABLE_CURSOR, flags)) {
  qoSet.add(QueryOption.TAILABLE_CURSOR);
 }
 if (EnumInt32FlagsUtil.isActive(Flag.SLAVE_OK, flags)) {
  qoSet.add(QueryOption.SLAVE_OK);
 }
 if (EnumInt32FlagsUtil.isActive(Flag.OPLOG_REPLAY, flags)) {
  qoSet.add(QueryOption.OPLOG_REPLAY);
 }
 if (EnumInt32FlagsUtil.isActive(Flag.NO_CURSOR_TIMEOUT, flags)) {
  qoSet.add(QueryOption.NO_CURSOR_TIMEOUT);
 }
 if (EnumInt32FlagsUtil.isActive(Flag.AWAIT_DATA, flags)) {
  qoSet.add(QueryOption.AWAIT_DATA);
 }
 if (EnumInt32FlagsUtil.isActive(Flag.EXHAUST, flags)) {
  qoSet.add(QueryOption.EXHAUST);
 }
 if (EnumInt32FlagsUtil.isActive(Flag.PARTIAL, flags)) {
  qoSet.add(QueryOption.PARTIAL);
 }
 return new QueryOptions(qoSet);
}
origin: com.8kdata.mongowp.server/mongo-server-api

queryMessage.getDatabase(),
new ExternalClientInfo(queryMessage.getClientAddress(), queryMessage.getClientPort()),
queryMessage.getQueryOptions().isSlaveOk(),
origin: com.8kdata.mongowp.client/driver-wrapper

  .projection(MongoBsonTranslator.translate(projection))
  .cursorType(toCursorType(queryOptions))
  .noCursorTimeout(queryOptions.isNoCursorTimeout())
  .oplogReplay(queryOptions.isOplogReplay());
return new WrappedMongoCursor(
  database,
  collection,
  DEFAULT_MAX_BATCH_SIZE,
  queryOptions.isTailable(),
  findIterable.iterator()
);
origin: com.8kdata.mongowp.server/mongo-server-api

.setNumberToSkip(queryMessage.getNumberToSkip())
.setLimit(queryMessage.getNumberToReturn())
.setAwaitData(queryOptions.isAwaitData())
.setExhaust(queryOptions.isExhaust())
.setNoCursorTimeout(queryOptions.isNoCursorTimeout())
.setOplogReplay(queryOptions.isOplogReplay())
.setPartial(queryOptions.isPartial())
.setSlaveOk(queryOptions.isSlaveOk())
.setTailable(queryOptions.isTailable());
origin: com.8kdata.mongowp.client/driver-wrapper

private CursorType toCursorType(QueryOptions queryOptions) {
 if (!queryOptions.isTailable()) {
  return CursorType.NonTailable;
 }
 if (queryOptions.isAwaitData()) {
  return CursorType.TailableAwait;
 }
 return CursorType.Tailable;
}
com.eightkdata.mongowp.messages.requestQueryMessage$QueryOptions

Most used methods

  • isAwaitData
  • isNoCursorTimeout
  • isOplogReplay
  • isTailable
  • <init>
  • isExhaust
  • isPartial
  • isSlaveOk

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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