Codota Logo
WikittyQueryResult.convertMapToSimpleString
Code IndexAdd Codota to your IDE (free)

How to use
convertMapToSimpleString
method
in
org.nuiton.wikitty.query.WikittyQueryResult

Best Java code snippets using org.nuiton.wikitty.query.WikittyQueryResult.convertMapToSimpleString (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.nuiton.wikitty/wikitty-api

/**
 * Get recursive id of tree node children of {@code treeNodeId}.
 * 
 * @param securityToken security token
 * @param treeNodeId tree node id
 * @return all id of {@code treeNodeId}'s children 
 */
protected List<String> getRecursiveTreeNodeId(String securityToken, String treeNodeId) {
  WikittyQuery query = new WikittyQueryMaker()
      .eq(WikittyTreeNode.FQ_FIELD_WIKITTYTREENODE_PARENT, treeNodeId).end();
  
  WikittyQueryResult<String> childTreeNodeIds = findAllByQuery(
      securityToken, Collections.singletonList(query)).get(0).convertMapToSimpleString();
  List<String> treeNodeIds = new ArrayList<String>();
  treeNodeIds.add(treeNodeId);
  for (String childTreeNodeId : childTreeNodeIds) {
    List<String> subTreeNodeIds = getRecursiveTreeNodeId(securityToken, childTreeNodeId);
    treeNodeIds.addAll(subTreeNodeIds);
  }
  return treeNodeIds;
}
origin: org.nuiton.wikitty/wikitty-api

protected List<String> evalConditionValueAsList(ConditionValue o) {
  List<String> result = new ArrayList<String>();
  if (o instanceof Select) {
    WikittyQuery query = new WikittyQuery(o);
    // eval select
    WikittyQueryResult<String> selectResult =
        searchEngine.findAllByQuery(tx, query).convertMapToSimpleString();
    result.addAll(selectResult.getAll());
  } else if (o instanceof ConditionValueString) {
    result.add(((ConditionValueString)o).getValue());
  } else {
    throw new WikittyException(String.format(
        "ConditionValue type unsupported %s",
        ClassUtils.getShortCanonicalName(o, "null")));
  }
  return result;
}
protected String evalConditionValue(ConditionValue o) {
origin: org.nuiton.wikitty/wikitty-solr

protected List<String> evalConditionValueAsList(ConditionValue o) {
  List<String> result = new ArrayList<String>();
  if (o instanceof Select) {
    WikittyQuery query = new WikittyQuery(o);
    // eval select
    WikittyQueryResult<String> selectResult =
        searchEngine.findAllByQuery(tx, query).convertMapToSimpleString();
    for (String s : selectResult) {
      result.add(escape2solr(s));
    }
  } else if (o instanceof ConditionValueString) {
    result.add(escape2solr(((ConditionValueString)o).getValue()));
  } else {
    throw new WikittyException(String.format(
        "ConditionValue type unsupported %s",
        ClassUtils.getShortCanonicalName(o, "null")));
  }
  return result;
}
protected String evalConditionValue(ConditionValue o) {
origin: org.nuiton.wikitty/wikitty-api

    searchEngine.findAllByQuery(tx, query).convertMapToSimpleString();
if (selectResult.size() == 0) {
  throw new WikittyException(String.format(
origin: org.nuiton.wikitty/wikitty-solr

searchEngine.findAllByQuery(tx, sub).convertMapToSimpleString();
origin: org.nuiton.wikitty/wikitty-solr

    searchEngine.findAllByQuery(tx, query).convertMapToSimpleString();
if (selectResult.size() == 0) {
    throw new WikittyException(String.format(
origin: org.nuiton.wikitty/wikitty-api

List<String> wikittyNodesId = findAllByQuery(
    securityToken, Collections.singletonList(query))
    .get(0).convertMapToSimpleString().getAll();
for (String wikittyNodeId : wikittyNodesId) {
  if (!idSet.contains(wikittyNodeId)) {
wikittyNodesId = findAllByQuery(
    securityToken, Collections.singletonList(query))
    .get(0).convertMapToSimpleString().getAll();
for (String wikittyNodeId : wikittyNodesId) {
  if (!idSet.contains(wikittyNodeId)) {
org.nuiton.wikitty.queryWikittyQueryResultconvertMapToSimpleString

Popular methods of WikittyQueryResult

  • convertMapToSimple
    if this WikittyQueryResult contains Map, and each Map contains only one value, this methode return n
  • getTopic
    Return all topic for the specified facet.
  • peek
    Return the offset element in result Can throw an exception if no element available
  • size
    Return the number of result in this object.
  • <init>
    Init paged result. we don't initialize securityToken
  • get
    Return element at index.
  • getAll
    Return unmodifiable list of all result.
  • getFacetNames
    Return name of all facet used in query.
  • getFacets
    Get map represent facets. return map of listkey is facet namevalue is topic liste une this facet
  • getQueryString
    query really executed (internal representation depend of search engine used
  • getTimeQuery
    temps (nanoseconde) mis pour faire la requete (calcul cote serveur)
  • getTotalResult
    total number of result if we call the query for all possible result
  • getTimeQuery,
  • getTotalResult,
  • castTo,
  • castToMap,
  • getFacetsAsMap,
  • getOffset,
  • getQueryName,
  • getSelectResult,
  • getTimeConvertion

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Menu (java.awt)
  • Path (java.nio.file)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • JTextField (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
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