Codota Logo
SelectClause
Code IndexAdd Codota to your IDE (free)

How to use
SelectClause
in
org.nuxeo.ecm.core.query.sql.model

Best Java code snippets using org.nuxeo.ecm.core.query.sql.model.SelectClause (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.nuxeo.elasticsearch/nuxeo-elasticsearch-core

  @Override
  public void visitSelectClause(SelectClause selectClause) {
    SchemaManager schemaManager = Framework.getService(SchemaManager.class);
    for (int i = 0; i < selectClause.getSelectList().size(); i++) {
      Operand op = selectClause.get(i);
      if (!(op instanceof Reference)) {
        // ignore it
        continue;
      }
      String name = ((Reference) op).name;
      Field field = schemaManager.getField(name);
      fieldsAndTypes.put(name, field == null ? null : field.getType());
    }
  }
});
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

if (selectClause.isEmpty()) {
  selectClause.add(new Reference(NXQL.ECM_UUID));
boolean selectStar = selectClause.getSelectList().size() == 1
    && (selectClause.get(0).equals(new Reference(NXQL.ECM_UUID)));
boolean distinct = selectClause.isDistinct();
if (selectStar && queryAnalyzer.hasWildcardIndex) {
  distinct = true;
  selectClause.add(new Reference(NXQL.ECM_FULLTEXT_SCORE));
  reAnalyze = true;
    selectClause.add(new Reference(name));
  selectClause.accept(whereBuilder);
  whatColumns = whereBuilder.whatColumns;
  whatKeys = whereBuilder.whatKeys;
origin: org.nuxeo.ecm.core/nuxeo-core-storage-mongodb

protected void walkProjection() {
  projection = new Document();
  boolean projectionOnFulltextScore = false;
  for (Operand op : selectClause.getSelectList().values()) {
    if (!(op instanceof Reference)) {
      throw new QueryParseException("Projection not supported: " + op);
    }
    FieldInfo fieldInfo = walkReference((Reference) op);
    String propertyField = fieldInfo.prop;
    if (!propertyField.equals(NXQL.ECM_UUID) //
        && !propertyField.equals(fieldInfo.projectionField) //
        && !propertyField.contains("/")) {
      propertyKeys.put(fieldInfo.projectionField, propertyField);
    }
    projection.put(fieldInfo.projectionField, ONE);
    if (propertyField.contains("*")) {
      projectionHasWildcard = true;
    }
    if (fieldInfo.projectionField.equals(KEY_FULLTEXT_SCORE)) {
      projectionOnFulltextScore = true;
    }
  }
  if (projectionOnFulltextScore || sortOnFulltextScore) {
    if (!hasFulltext) {
      throw new QueryParseException(NXQL.ECM_FULLTEXT_SCORE + " cannot be used without " + NXQL.ECM_FULLTEXT);
    }
    projection.put(KEY_FULLTEXT_SCORE, new Document(MONGODB_META, MONGODB_TEXT_SCORE));
  }
}
org.nuxeo.ecm.core.query.sql.modelSelectClause

Most used methods

  • getSelectList
  • get
  • accept
  • add
  • isDistinct
  • isEmpty

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • JTextField (javax.swing)
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