Codota Logo
WikittyQuery.getOffset
Code IndexAdd Codota to your IDE (free)

How to use
getOffset
method
in
org.nuiton.wikitty.query.WikittyQuery

Best Java code snippets using org.nuiton.wikitty.query.WikittyQuery.getOffset (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.nuiton.wikitty/wikitty-api

int offset = queryWithoutSelect.getOffset();
int limit = queryWithoutSelect.getLimit();
List<String> ids = new LinkedList<String>();
origin: org.nuiton.wikitty/wikitty-api

/**
 * Parse et ajoute un bout de requete. Cette requete est prise comme une
 * condition terminal si l'on veut continuer a construire la requete, il
 * faut avoir ajouter avant une
 * {@link #and()}, {@link #or()}, {@link #not()}, {@link #containsOne()}
 * @param query la requete a ajouter (peut-etre vide ou nul, dans ce cas, la
 * condition utiliser est "true")
 * @param includeExtra copy offset, limit, depth found in query if true
 * @return {@code this} with the {@code c} restriction added.
 */
public M parse(String query, boolean includeExtra) {
  if (StringUtils.isNotBlank(query)) {
    WikittyQuery filter = WikittyQueryParser.parse(query);
    addCondition(filter.getCondition(), true);
    if (includeExtra) {
      WikittyQuery q = getQuery();
      q.setOffset(filter.getOffset());
      q.setLimit(filter.getLimit());
      q.setWikittyFieldSearchDepth(filter.getWikittyFieldSearchDepth());
    }
  } else {
    addCondition(new True());
  }
  return this.asM();
}
origin: org.nuiton.wikitty/wikitty-solr

int offset = queryWithoutSelect.getOffset();
int limit = queryWithoutSelect.getLimit();
origin: org.nuiton.wikitty/wikitty-api

@Override
public boolean equals(Object o) {
  boolean result;
  if (o == null) {
    result = false;
  } else if (ObjectUtils.equals(this.getClass(), o.getClass())) {
    WikittyQuery other = (WikittyQuery)o;
    result = ObjectUtils.equals(this.getName(), other.getName()) &&
        ObjectUtils.equals(this.getOffset(), other.getOffset()) &&
        ObjectUtils.equals(this.getLimit(), other.getLimit()) &&
        ObjectUtils.equals(this.isFacetExtension(), other.isFacetExtension()) &&
        ObjectUtils.equals(this.getFacetField(), other.getFacetField()) &&
        ObjectUtils.equals(this.getSortAscending(), other.getSortAscending()) &&
        ObjectUtils.equals(this.getSortDescending(), other.getSortDescending()) &&
        ObjectUtils.equals(this.getFacetLimit(), other.getFacetLimit()) &&
        ObjectUtils.equals(this.getFacetSort(), other.getFacetSort()) &&
        ObjectUtils.equals(this.getFacetMinCount(), other.getFacetMinCount()) &&
        ObjectUtils.equals(this.getFacetQuery(), other.getFacetQuery()) &&
        ObjectUtils.equals(this.getCondition(), other.getCondition()) &&
        ObjectUtils.equals(this.getWikittyFieldSearchDepth(), other.getWikittyFieldSearchDepth());
  } else {
    result = false;
  }
  return result;
}
origin: org.nuiton.wikitty/wikitty-api

@Override
public boolean visitEnter(WikittyQuery o) {
  WikittyQuery q = getQuery();
  q.setFacetExtension(q.isFacetExtension());
  q.setFacetField(new ArrayList<Element>(o.getFacetField()));
  q.setFacetLimit(o.getFacetLimit());
  q.setFacetMinCount(o.getFacetMinCount());
  q.setOffset(o.getOffset());
  q.setLimit(o.getLimit());
  q.setFacetSort(o.getFacetSort());
  q.setName(o.getName());
  q.setSortAscending(new ArrayList<Element>(o.getSortAscending()));
  q.setSortDescending(new ArrayList<Element>(o.getSortDescending()));
  q.setWikittyFieldSearchDepth(o.getWikittyFieldSearchDepth());
  for (FacetQuery c : o.getFacetQuery()) {
    WikittyQueryVisitorCopy v = new WikittyQueryVisitorCopy();
    c.getCondition().accept(v);
    Condition condition = v.getCondition();
    q.addFacetQuery(c.getName(), condition);
  }
  return true;
}
org.nuiton.wikitty.queryWikittyQuerygetOffset

Javadoc

Indique le premier element retourne par la requete. Si la requete peut retourner 100 reponses, et qu'on fixe l'offset a 25 alors il n'y aura au maximume que 75 reponses retournees.

Popular methods of WikittyQuery

  • addFacetField
  • getCondition
  • setLimit
    Set result limit. 0 return no result (usefull for facets and result count). negative value or #MAX r
  • setOffset
    Indique le premier element retourne par la requete. Si la requete peut retourner 100 reponses, et qu
  • <init>
  • copy
  • getFacetField
  • getFacetLimit
  • getFacetMinCount
  • getFacetQuery
  • getFacetSort
  • getLimit
    Get result limit. 0 return no result (usefull for facets and result count). -1 return all results.
  • getFacetSort,
  • getLimit,
  • getName,
  • getSelect,
  • getSortAscending,
  • getSortDescending,
  • getWhereQuery,
  • getWikittyFieldSearchDepth,
  • isFacetExtension

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • String (java.lang)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • JCheckBox (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