Tabnine Logo
OutputAttribute.getExpression
Code IndexAdd Tabnine to your IDE (free)

How to use
getExpression
method
in
org.wso2.siddhi.query.api.execution.query.selection.OutputAttribute

Best Java code snippets using org.wso2.siddhi.query.api.execution.query.selection.OutputAttribute.getExpression (Showing top 3 results out of 315)

origin: apache/eagle

  private static List<StreamColumn> convertOutputStreamColumns(List<OutputAttribute> outputAttributeList) {
    return outputAttributeList.stream().map(outputAttribute -> {
      StreamColumn streamColumn = new StreamColumn();
      streamColumn.setName(outputAttribute.getRename());
      streamColumn.setDescription(outputAttribute.getExpression().toString());
      return streamColumn;
    }).collect(Collectors.toList());
  }
}
origin: org.wso2.carbon.analytics/org.wso2.carbon.stream.processor.core

/**
 * obtains information of all the user defined Functions.
 */
private void loadFunctionData(SiddhiApp siddhiApp, List<OutputAttribute> functionList, SiddhiAppElements
    siddhiAppElements, String appData) {
  for (FunctionDefinition functionDefinition : siddhiApp.getFunctionDefinitionMap().values()) {
    for (OutputAttribute app : functionList) {
      if (app.getExpression() instanceof AttributeFunction) {
        if (functionDefinition.getId().equals(((AttributeFunction) app.getExpression()).getName())) {
          String functionDefinitionStr = getDefinition(functionDefinition, appData);
          siddhiAppElements.setFunction(functionDefinition.getId());
          siddhiAppElements.setFunctionQuery(functionDefinitionStr);
          break;
        }
      }
    }
  }
}
origin: org.wso2.carbon.analytics/org.wso2.carbon.siddhi.editor.core

  /**
   * Generates a SelectedAttribute object from the given Siddhi OutputAttribute
   * @param outputAttribute                   Siddhi OutputAttribute object
   * @return                                  SelectedAttribute object
   * @throws DesignGenerationException        Error while getting the definition of the OutputAttribute
   */
  private SelectedAttribute generateSelectedAttribute(OutputAttribute outputAttribute)
      throws DesignGenerationException {
    SelectedAttribute selectedAttribute =
        new SelectedAttribute(
            ConfigBuildingUtilities.getDefinition(outputAttribute.getExpression(), siddhiAppString),
            outputAttribute.getRename());
    preserveAndBindCodeSegment(outputAttribute, selectedAttribute);
    return selectedAttribute;

  }
}
org.wso2.siddhi.query.api.execution.query.selectionOutputAttributegetExpression

Popular methods of OutputAttribute

  • getRename
  • <init>
  • getQueryContextEndIndex
  • getQueryContextStartIndex

Popular in Java

  • Reading from database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • String (java.lang)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Collectors (java.util.stream)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now