Tabnine Logo
DefaultConditionSpecification
Code IndexAdd Tabnine to your IDE (free)

How to use
DefaultConditionSpecification
in
co.cask.cdap.internal.workflow.condition

Best Java code snippets using co.cask.cdap.internal.workflow.condition.DefaultConditionSpecification (Showing top 10 results out of 315)

origin: cdapio/cdap

@Override
public void addWorkflowConditionNode(Predicate<WorkflowContext> predicate, List<WorkflowNode> ifBranch,
                   List<WorkflowNode> elseBranch) {
 ConditionSpecification spec = new DefaultConditionSpecification(predicate.getClass().getName(),
                                 predicate.getClass().getSimpleName(), "",
                                 new HashMap<String, String>(),
                                 new HashSet<String>());
 nodes.add(new WorkflowConditionNode(spec.getName(), spec, ifBranch, elseBranch));
}
origin: cdapio/cdap

@Override
public void addWorkflowConditionNode(Predicate<WorkflowContext> predicate, List<WorkflowNode> ifBranch,
                   List<WorkflowNode> elseBranch) {
 ConditionSpecification spec = new DefaultConditionSpecification(predicate.getClass().getName(),
                                 predicate.getClass().getSimpleName(), "",
                                 new HashMap<String, String>(),
                                 new HashSet<String>());
 currentBranch.add(new WorkflowConditionNode(spec.getName(), spec, ifBranch, elseBranch));
}
origin: caskdata/cdap

@Override
public ConditionSpecification deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
 throws JsonParseException {
 JsonObject jsonObj = json.getAsJsonObject();
 String className = jsonObj.get("className").getAsString();
 String name = jsonObj.get("name").getAsString();
 String description = jsonObj.get("description").getAsString();
 Set<String> datasets = deserializeSet(jsonObj.get("datasets"), context, String.class);
 Map<String, String> properties = deserializeMap(jsonObj.get("properties"), context, String.class);
 return new DefaultConditionSpecification(className, name, description, properties, datasets);
}
origin: cdapio/cdap

@Override
public void addWorkflowConditionNode(Predicate<WorkflowContext> predicate, List<WorkflowNode> ifBranch,
                   List<WorkflowNode> elseBranch) {
 ConditionSpecification spec = new DefaultConditionSpecification(predicate.getClass().getName(),
                                 predicate.getClass().getSimpleName(), "",
                                 new HashMap<String, String>(),
                                 new HashSet<String>());
 currentBranch.add(new WorkflowConditionNode(spec.getName(), spec, ifBranch, elseBranch));
}
origin: co.cask.cdap/cdap-proto

@Override
public ConditionSpecification deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
 throws JsonParseException {
 JsonObject jsonObj = json.getAsJsonObject();
 String className = jsonObj.get("className").getAsString();
 String name = jsonObj.get("name").getAsString();
 String description = jsonObj.get("description").getAsString();
 Set<String> datasets = deserializeSet(jsonObj.get("datasets"), context, String.class);
 Map<String, String> properties = deserializeMap(jsonObj.get("properties"), context, String.class);
 return new DefaultConditionSpecification(className, name, description, properties, datasets);
}
origin: co.cask.cdap/cdap-app-fabric

@Override
public void addWorkflowConditionNode(Predicate<WorkflowContext> predicate, List<WorkflowNode> ifBranch,
                   List<WorkflowNode> elseBranch) {
 ConditionSpecification spec = new DefaultConditionSpecification(predicate.getClass().getName(),
                                 predicate.getClass().getSimpleName(), "",
                                 new HashMap<String, String>(),
                                 new HashSet<String>());
 currentBranch.add(new WorkflowConditionNode(spec.getName(), spec, ifBranch, elseBranch));
}
origin: co.cask.cdap/cdap-app-fabric

@Override
public void addWorkflowConditionNode(Predicate<WorkflowContext> predicate, List<WorkflowNode> ifBranch,
                   List<WorkflowNode> elseBranch) {
 ConditionSpecification spec = new DefaultConditionSpecification(predicate.getClass().getName(),
                                 predicate.getClass().getSimpleName(), "",
                                 new HashMap<String, String>(),
                                 new HashSet<String>());
 nodes.add(new WorkflowConditionNode(spec.getName(), spec, ifBranch, elseBranch));
}
origin: co.cask.cdap/cdap-app-fabric

@Override
public void addWorkflowConditionNode(Predicate<WorkflowContext> predicate, List<WorkflowNode> ifBranch,
                   List<WorkflowNode> elseBranch) {
 ConditionSpecification spec = new DefaultConditionSpecification(predicate.getClass().getName(),
                                 predicate.getClass().getSimpleName(), "",
                                 new HashMap<String, String>(),
                                 new HashSet<String>());
 currentBranch.add(new WorkflowConditionNode(spec.getName(), spec, ifBranch, elseBranch));
}
origin: cdapio/cdap

private DefaultConditionSpecification createSpecification() {
 Set<String> datasets = new HashSet<>();
 Reflections.visit(condition, condition.getClass(), new PropertyFieldExtractor(properties),
          new DataSetFieldExtractor(datasets));
 return new DefaultConditionSpecification(condition.getClass().getName(), name, description, properties, datasets);
}
origin: co.cask.cdap/cdap-app-fabric

private DefaultConditionSpecification createSpecification() {
 Set<String> datasets = new HashSet<>();
 Reflections.visit(condition, condition.getClass(), new PropertyFieldExtractor(properties),
          new DataSetFieldExtractor(datasets));
 return new DefaultConditionSpecification(condition.getClass().getName(), name, description, properties, datasets);
}
co.cask.cdap.internal.workflow.conditionDefaultConditionSpecification

Javadoc

The default implementation for a ConditionSpecification.

Most used methods

  • <init>

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Reference (javax.naming)
  • Join (org.hibernate.mapping)
  • Top plugins for Android Studio
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