Tabnine Logo
StructuredQueryBuilder$FragmentScope
Code IndexAdd Tabnine to your IDE (free)

How to use
StructuredQueryBuilder$FragmentScope
in
com.marklogic.client.query

Best Java code snippets using com.marklogic.client.query.StructuredQueryBuilder$FragmentScope (Showing top 8 results out of 315)

origin: marklogic/java-client-api

scope.toString().toLowerCase());
origin: marklogic/java-client-api

if (scope != null) {
 writeText(serializer, "fragment-scope",
  scope.toString().toLowerCase());
origin: com.marklogic/client-api-java

  @Override
  void innerSerialize(XMLStreamWriter serializer) throws Exception {
    String elemName = null;
    if (index instanceof GeoElementImpl)
      elemName = "geo-elem-query";
    else if (index instanceof GeoElementPairImpl)
      elemName = "geo-elem-pair-query";
    else if (index instanceof GeoAttributePairImpl)
      elemName = "geo-attr-pair-query";
    else if (index instanceof GeoPathImpl)
      elemName = "geo-path-query";
    else
      throw new IllegalStateException(
          "unknown index class: "+index.getClass().getName());
    serializer.writeStartElement(elemName);
    ((IndexImpl) index).innerSerialize(serializer);
    if (scope != null) {
      writeText(serializer, "fragment-scope",
          scope.toString().toLowerCase());
    }
     writeTextList(serializer, "geo-option", options);
    for (Region region : regions) {
      ((RegionImpl) region).innerSerialize(serializer);
    }
    serializer.writeEndElement();
  }
}
origin: marklogic/java-client-api

 @Override
 public void innerSerialize(XMLStreamWriter serializer) throws XMLStreamException {
  serializer.writeStartElement("range-query");
  if (type != null) {
   serializer.writeAttribute("type", type);
   if (collation!= null) {
    serializer.writeAttribute("collation", collation);
   }
  }
  ((IndexImpl) index).innerSerialize(serializer);
  if (scope != null) {
   writeText(serializer, "fragment-scope",
    scope.toString().toLowerCase());
  }
  writeTextList(serializer, "value", values);
  if (operator != null) {
   writeText(serializer, "range-operator",
    operator.toString().toUpperCase());
  }
  writeTextList(serializer, "range-option", options);
  serializer.writeEndElement();
 }
}
origin: com.marklogic/client-api-java

  @Override
  void innerSerialize(XMLStreamWriter serializer) throws Exception {
    serializer.writeStartElement("range-query");
    if (type != null) {
      serializer.writeAttribute("type", type);
      if (collation!= null) {
        serializer.writeAttribute("collation", collation);
      }
    }
    ((IndexImpl) index).innerSerialize(serializer);
    if (scope != null) {
      writeText(serializer, "fragment-scope",
          scope.toString().toLowerCase());
    }
    writeTextList(serializer, "value", values);
    if (operator != null) {
      writeText(serializer, "range-operator",
          operator.toString().toUpperCase());
    }
    writeTextList(serializer, "range-option", options);
    serializer.writeEndElement();
  }
}
origin: marklogic/java-client-api

 @Override
 public void innerSerialize(XMLStreamWriter serializer) throws XMLStreamException {
  String elemName = "geo-region-path-query";
  serializer.writeStartElement(elemName);
  if(index.coordinateSystem != null) {
   serializer.writeAttribute("coord", index.coordinateSystem.toString());
  }
  ((IndexImpl) index).innerSerialize(serializer);
  writeText(serializer, "geospatial-operator", operator.toString());
  if (scope != null) {
   writeText(serializer, "fragment-scope", scope.toString().toLowerCase());
  }
  writeTextList(serializer, "geo-option", options);
  for (Region region : regions) {
   ((RegionImpl) region).innerSerialize(serializer);
  }
  serializer.writeEndElement();
 }
}
origin: marklogic/java-client-api

 @Override
 public void innerSerialize(XMLStreamWriter serializer) throws XMLStreamException {
  ((IndexImpl) index).innerSerialize(serializer);
  if (scope != null) {
   if (scope == FragmentScope.DOCUMENTS) {
    writeText(serializer, "fragment-scope", "documents");
   }
   else {
    writeText(serializer, "fragment-scope",
     scope.toString().toLowerCase());
   }
  }
  writeTextList(serializer, "text", values);
  writeTextList(serializer, "term-option", options);
  writeText(serializer, "weight", weight);
 }
}
origin: com.marklogic/client-api-java

  void innerSerialize(XMLStreamWriter serializer) throws Exception {
    ((IndexImpl) index).innerSerialize(serializer);
    if (scope != null) {
      if (scope == FragmentScope.DOCUMENT) {
        writeText(serializer, "fragment-scope", "documents");
      }
      else {
        writeText(serializer, "fragment-scope",
          scope.toString().toLowerCase());
      }
    }
    writeTextList(serializer, "text", values);
    writeTextList(serializer, "term-option", options);
    writeText(serializer, "weight", weight);
  }
}
com.marklogic.client.queryStructuredQueryBuilder$FragmentScope

Javadoc

Whether a query should search the document or its associated properties.

Most used methods

  • toString

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • getContentResolver (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • From CI to AI: The AI layer in your organization
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