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

How to use
getResultFieldNameToRequestFieldName
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.getResultFieldNameToRequestFieldName (Showing top 3 results out of 315)

origin: org.drools/kie-pmml

@Test
public void testSimpleWithFieldNamesMap() {
  MiningSegmentTransfer mst = new MiningSegmentTransfer(simpleResult,"SEGMENT_2");
  mst.addResultToRequestMapping("var1", "someVarA");
  doBaselineAssertions(simpleResult,mst);
  assertEquals(1,mst.getResultFieldNameToRequestFieldName().size());
}

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);
  }
}
origin: org.drools/kie-pmml

private void doBaselineAssertions(PMML4Result reference, MiningSegmentTransfer mst) {
  assertNotNull(mst);
  assertEquals(reference.getCorrelationId(),mst.getCorrelationId());
  assertEquals(reference.getSegmentationId(),mst.getSegmentationId());
  assertEquals(reference.getSegmentId(),mst.getFromSegmentId());
  assertEquals("SEGMENT_2",mst.getToSegmentId());
  assertNotNull(mst.getResultFieldNameToRequestFieldName());
}
org.kie.pmml.pmml_4_2.model.miningMiningSegmentTransfergetResultFieldNameToRequestFieldName

Popular methods of MiningSegmentTransfer

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

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • Permission (java.security)
    Legacy security code; do not use.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • BoxLayout (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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