ASPL Manual v 1.00
© 2024 by SetSphere.COM


10. 2
   f*& gets the shallow elements intersection

 

logo

f*& a1 a2 [a3 .. aN]       where a1 a2 [a3 .. aN] are set variables

f*&`mtm~ a1 a2 [a3 .. aN]

f*&/mtm~ a1 a2 [a3 .. aN]

f*&

When specified by itself then the operation is performed on the object on top of the stack and the one that is one below it, then the result is pushed on the stack

tsetop  asetoid  2**  notcommu        ins:H_H_H  ous:H_H_AH

●  Operator f*& gets the shallow elements intersection

Use the operator f*& to get the intersection of elements in datasets by shallow matching their names. Shallow matching is a match between two strings based on some intermediate function that takes as input both strings and returns true or false based on the function internal processing. ASPL provides shallow matching through an internal module that the user can edit and make changes to it. The shallow module functions are selectable, the ASPL command shallowed displays the current shallow function being used by ASPL, and the command ~shallowed edits the shallowed module.

 

f*& EXAMPLE
In this example we will do a shallow set operation on Java Jar archives to locate the Java transaction classes. We will load the sample JMXJAR workspace then we will issue shallow set operations on the datasets. We will locate the files in JMX Jar files where the word transaction occurs. In particular we will match the elements that contain the word "transac" and then we will get the shallow intersection of these elements (classes) found in these datasets (representing the JMX Jar files).

 

f*& OPERATION

aspl JMXJAR
    (start ASPL loading JMXJAR)

①  aspl> v
    (display the variables.)

②  aspl> shallowed
    (display the shallow processors table.)

③  aspl> setshallowed prcrelem
    (set the shallow processor to prcrelem.)

④  aspl> setprcr transac
    (set the shallow preprocessor to transac.)

⑤  aspl> shallowed
    (display the shallow processors table. notice the change, now the processor is prcrelem, and its preprocessor is transac.)

⑥  aspl> f*& tx1 tx2
    (do a shallow set intersection on the elements (or files) between tx1 and tx2)

⑦  aspl> f*& tx1 tx2 tx3
    (do a shallow set intersection on the elements (or files) between tx1 tx2 and tx3)

 

● Tickable Predicates for f*&

This f*& is tickable with predicates that are shown in the following table:

       a yellow note
f*&`_  gets the shallow elements intersection with one to many matching regex relations 
f*&`c=  gets the shallow elements intersection with one to many matching regex relations such that they have the same checksum 
f*&`c~  gets the shallow elements intersection with one to many matching regex relations such that they have different checksums 
f*&`c~~  gets the shallow elements intersection with one to many matching regex relations such that they have all over different checksums 
f*&`h=  gets the shallow elements intersection with one to many matching regex relations such that they have the same entropy 
f*&`h~  gets the shallow elements intersection with one to many matching regex relations such that they have different entropies 
f*&`h~~  gets the shallow elements intersection with one to many matching regex relations such that they have all over different entropies 
f*&`mtm=  gets the shallow elements intersection with one to many matching regex relations such that they have the same make time 
f*&`mtm~  gets the shallow elements intersection with one to many matching regex relations such that they have different make times 
f*&`mtm~~  gets the shallow elements intersection with one to many matching regex relations such that they have all over different make times 
f*&`mtm<  gets the shallow elements intersection with one to many matching regex relations such that they have a prior make time 
f*&`mtm<=  gets the shallow elements intersection with one to many matching regex relations such that they have prior or same make time 
f*&`mtm>  gets the shallow elements intersection with one to many matching regex relations such that they have more recent make time 
f*&`mtm>=  gets the shallow elements intersection with one to many matching regex relations such that they have more recent or same make time 
f*&`ks=  gets the shallow elements intersection with one to many matching regex relations such that they have the same ksum 
f*&`ks~  gets the shallow elements intersection with one to many matching regex relations such that they have different ksums 
f*&`ks~~  gets the shallow elements intersection with one to many matching regex relations such that they have all over different ksums 
(C)2024 ASPL Inc.