Usage of creating a dictionary using ICF_PersistentDataSet
search cancel

Usage of creating a dictionary using ICF_PersistentDataSet

book

Article ID: 427581

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

Usage of creating a dictionary using ICF_PersistentDataSet 

Environment

All Supported Smarts releases

Resolution

Following commands can be used to create and insert key values to the ICF_PersistentDataSet .

# ./dmctl -s SAM create ICF_PersistentDataSet  :: Test

# ./dmctl -s SAM invoke ICF_PersistentDataSet  :: Test insert TestKey TestValue TestF1 TestF2 TestF3 TestF4

# ./dmctl -s SAM invoke ICF_PersistentDataSet  :: Test get
{
 {
   TestKey
   TestValue
   TestF1
   TestF2
   TestF3
   TestF4
 }
}

Additional Information

 ICF_PersistentDataSet  provides same functionality as ICF_OrderedDataSet, as these classes are child class of ICF_DataSet and extends same operations as listed below.

# ./dmctl -s SAM getO ICF_PersistentDataSet 
Operations for class ICF_PersistentDataSet :
<object> clone <string>clone_name
<string> find <string>Key
<string> patternFind <string>Key
<boolean> match <string>Key
<void> insert <string>Key <string>Value <string>Field_1 <string>Field_2 <string>Field_3 <string>Field_4
<void> put <structure set>dataSet
<boolean> contains <string>Key
<void> remove <string>Key
<void> clear
<structure set> get
<structure> getEntry <string>Key
<int> size
<boolean> compare <structure set>dataSet
<boolean> isSubsetOf <structure set>dataSet
<boolean> isSupersetOf <structure set>dataSet
<void> dump