Tabnine Logo
MiningSegmentTransfer.getOutboundRequest
Code IndexAdd Tabnine to your IDE (free)

How to use
getOutboundRequest
method
in
org.kie.pmml.pmml_4_2.model.mining.MiningSegmentTransfer

Best Java code snippets using org.kie.pmml.pmml_4_2.model.mining.MiningSegmentTransfer.getOutboundRequest (Showing top 2 results out of 315)

origin: org.drools/kie-pmml

@Override
public String toString() {
  StringBuilder bldr = new StringBuilder("MiningSegmentTransfer [");
  bldr.append("correlationId=").append(correlationId).append(", ");
  bldr.append("segmentationId=").append(segmentationId).append(", ");
  bldr.append("fromSegmentId=").append(fromSegmentId).append(", ");
  bldr.append("toSegmentId=").append(toSegmentId).append(", ");
  bldr.append("resultFieldNameToRequestFieldName=").append(requestFromResultMap).append(", ");
  bldr.append("inboundResult=").append(inboundResult).append(", ");
  bldr.append("outboundRequest=").append(getOutboundRequest());
  
  bldr.append("]");
  return bldr.toString();
}

origin: org.drools/kie-pmml

  @Test
  public void testComplexResult() {
    MiningSegmentTransfer mst = new MiningSegmentTransfer(complexResult,"SEGMENT_2");
    mst.addResultToRequestMapping("firstObject", "object1");
    mst.addResultToRequestMapping("myComplex.varA", "stringFromMyComplex");
    mst.addResultToRequestMapping("myComplex.varB", "intValue");
    doBaselineAssertions(complexResult,mst);
    assertEquals(3,mst.getResultFieldNameToRequestFieldName().size());
    PMMLRequestData rqst = mst.getOutboundRequest();
    assertNotNull(rqst);
    assertEquals(complexResult.getCorrelationId(),rqst.getCorrelationId());
    Map<String,ParameterInfo> params = rqst.getMappedRequestParams();
    assertEquals(complexResult.getResultValue("firstObject", null), params.get("object1").getValue());
    assertEquals(complexResult.getResultValue("myComplex", "varA"), params.get("stringFromMyComplex").getValue());
    assertEquals(complexResult.getResultValue("myComplex", "varB"), params.get("intValue").getValue());
    System.out.println(rqst);
    System.out.println(complexResult);
  }
}
org.kie.pmml.pmml_4_2.model.miningMiningSegmentTransfergetOutboundRequest

Popular methods of MiningSegmentTransfer

  • <init>
  • addResultToRequestMapping
  • getCorrelationId
  • getFromSegmentId
  • getResultFieldNameToRequestFieldName
  • getSegmentationId
  • getToSegmentId
  • getValueFromResult

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • 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.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • JPanel (javax.swing)
  • Best IntelliJ plugins
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