Codota Logo
StructuredQueryBuilder$FragmentScope
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
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: 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);
  }
}
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: 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 {
  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 {
    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

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

scope.toString().toLowerCase());
com.marklogic.client.queryStructuredQueryBuilder$FragmentScope

Javadoc

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

Most used methods

  • toString

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JTable (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now