Tabnine Logo
RawQueryDefinition
Code IndexAdd Tabnine to your IDE (free)

How to use
RawQueryDefinition
in
com.marklogic.client.query

Best Java code snippets using com.marklogic.client.query.RawQueryDefinition (Showing top 10 results out of 315)

origin: marklogic/java-client-api

String structure = "";
if ( structuredQuery != null ) structure = structuredQuery.serialize();
if ( rawQuery != null ) structure = HandleAccessor.contentAsString(rawQuery.getHandle());
out.write(structure.getBytes("UTF-8"));
out.flush();
origin: marklogic/java-client-api

String json = HandleAccessor.contentAsString(qdef.rawQuery.getHandle());
JsonNode rawQueryNode = mapper.readTree(json);
JsonNode queryNode = rawQueryNode.get("query");
origin: marklogic/java-client-api

 StructureWriteHandle handle = ((RawQueryDefinition) queryDef).getHandle();
 baseHandle = HandleAccessor.checkHandle(handle, "search");
} else if (queryDef instanceof RawCtsQueryDefinition) {
origin: marklogic/java-client-api

public void init(RawQueryDefinition rawQuery,
         QueryOptionsWriteHandle options, String qtext, String sparql)
{
 this.rawQuery = rawQuery;
 this.options = options;
 this.qtext = qtext;
 this.sparql = sparql;
 // if a query has been supplied, it's either in JSON or in XML
 if (rawQuery != null) {
  this.format = HandleAccessor.as(rawQuery.getHandle()).getFormat();
 } else {
  if (options != null) {
   this.format = HandleAccessor.as(options).getFormat();
  } else {
   // there's only qtext -- we choose format.
   this.format = Format.JSON;
  }
 }
 if ( format != Format.XML && format != Format.JSON ) {
  throw new IllegalArgumentException("Format of rawQuery must be XML or JSON");
 }
}
origin: com.marklogic/client-api-java

StructureWriteHandle handle = ((RawQueryDefinition) queryDef).getHandle();
baseHandle = HandleAccessor.checkHandle(handle, "match");
origin: marklogic/java-client-api

StructureWriteHandle handle = ((RawQueryDefinition) queryDef).getHandle();
baseHandle = HandleAccessor.checkHandle(handle, "match");
origin: marklogic/java-client-api

logger.debug("Raw uris query");
StructureWriteHandle input = ((RawQueryDefinition) qdef).getHandle();
origin: com.marklogic/client-api-java

((RawQueryDefinition) queryDef).getHandle();
origin: com.marklogic/client-api-java

  StructureWriteHandle handle = ((RawQueryDefinition) queryDef).getHandle();
  baseHandle = HandleAccessor.checkHandle(handle, "values");
} else {
origin: marklogic/java-client-api

 StructureWriteHandle handle = ((RawQueryDefinition) queryDef).getHandle();
 baseHandle = HandleAccessor.checkHandle(handle, "values");
} else if (queryDef instanceof RawCtsQueryDefinition) {
com.marklogic.client.queryRawQueryDefinition

Javadoc

A RawQueryDefinition provides access to a query in a JSON or XML representation.

Most used methods

  • getHandle
    Returns the handle for the JSON or XML representation of the query.

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • String (java.lang)
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best plugins for Eclipse
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