IP Intelligence services for 51Degrees Pipeline

fiftyone.ipintelligence.examples.shared.EvidenceHelper Class Reference

Static Public Member Functions

static List< Map< String, String > > setUpEvidence ()
 Prepare evidence for use in examples.
static List< Map< String, String > > getEvidenceList (File yamlFile, int max) throws IOException
 Load a Yaml file as a list of documents (each being a Map containing evidence).
static Iterable< Map< String, String > > getEvidenceIterable (File yamlFile) throws IOException
 Create an Iterable<Map<String, String>> for reading documents from the passed yamlFile.

Member Function Documentation

◆ getEvidenceIterable()

Iterable< Map< String, String > > fiftyone.ipintelligence.examples.shared.EvidenceHelper.getEvidenceIterable ( File yamlFile) throws IOException
static

Create an Iterable<Map<String, String>> for reading documents from the passed yamlFile.

Parameters
yamlFilea yamlFile
Returns
an Iterable
Exceptions
IOExceptionfor file errors

◆ getEvidenceList()

List< Map< String, String > > fiftyone.ipintelligence.examples.shared.EvidenceHelper.getEvidenceList ( File yamlFile,
int max ) throws IOException
static

Load a Yaml file as a list of documents (each being a Map containing evidence).

Parameters
yamlFilea yaml file
maxmaximum entries
Returns
a List
Exceptions
IOExceptionin case of error