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

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

Best Java code snippets using org.nuiton.wikitty.query.WikittyQueryResult.castToMap (Showing top 2 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

/**
 * Convert all result to the wanted type and return new WikittyQueryResult
 * with this new result list. For business object transformation, if some
 * result don't have the right extension (clazz) this extension is
 * automatically added.
 *
 * @param queryResult result to convert
 * @param target to cast into.
 * Can be Wikitty, BusinessEntity, String, Date, Number (returned is BigDecimal), Boolean, byte[]
 * @return new WikittyQueryResult with element in right class or Exception
 * if conversion is impossible
 */
public <E, F> WikittyQueryResult<Map<String, E>> castToMap(Class<E> target,
    WikittyQueryResult<Map<String, F>> queryResult) {
  WikittyQueryResult<Map<String, E>> result = null;
  if (queryResult != null) {
    result = queryResult.castToMap(this, target);
  }
  return result;
}
origin: org.nuiton.wikitty/wikitty-api

/**
 * Retourne les resultats de select transforme en objet de type clazz
 *
 * @param <E>
 * @param client
 * @param clazz
 * @return
 * @since 3.10
 */
public <E> WikittyQueryResult<Map<String, E>> getSelectResult(
    WikittyClient client, Class<E> clazz) {
  WikittyQueryResult<Map<String, E>> result = getSelectResult().castToMap(client, clazz);
  return result;
}
org.nuiton.wikitty.queryWikittyQueryResultcastToMap

Javadoc

Convert all result to the wanted type and return new WikittyQueryResult with this new result list. For business object transformation, if some result don't have the right extension (clazz) this extension is automatically added.

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
  • convertMapToSimpleString
  • 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)
  • getQueryString,
  • getTimeQuery,
  • getTotalResult,
  • castTo,
  • getFacetsAsMap,
  • getOffset,
  • getQueryName,
  • getSelectResult,
  • getTimeConvertion

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • putExtra (Intent)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
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