Use this function to specify encodings for the PSI prefilter.


Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)

Syntax

Visual Basic (Declaration)
Public Sub setPsiEncodings( _ 
   ByVal encodings As String()(),  _ 
   ByVal backwards_fields As Integer()(),  _ 
   ByVal suffixed_fields As Integer(),  _ 
   ByVal min_match_sizes As Integer()() _ 
)
C#
public void setPsiEncodings(
   string[][] encodings,
   int[][] backwards_fields,
   int[] suffixed_fields,
   int[][] min_match_sizes
)
C++
public:
 void setPsiEncodings(
   array<array<String>^>^ encodings,
   array<array<int>^>^ backwards_fields,
   array<int>^ suffixed_fields,
   array<array<int>^>^ min_match_sizes
) sealed 
J#
public void setPsiEncodings(
   string[][] encodings,
   int[][] backwards_fields,
   int[] suffixed_fields,
   int[][] min_match_sizes
)
JScript
public  function setPsiEncodings(
   encodings : String[][],
   backwards_fields : int[][],
   suffixed_fields : int[],
   min_match_sizes : int[][]
)

Parameters

encodings
Each string array is a list of field names which will be used for a given PSI encoding. The first field name will be the primary PSI key, the second field will be secondary, and so on. In general, you should have as many encodings as the number of fields in the table and use all important fields as the primary PSI key in at least one encoding.
backwards_fields
Fields can also be sorted backwards (from the last characters in the field to the first). Important fields can and should be used as primary PSI keys in both their forward and reverse directions. The backwards_fields array should be the same length as the encodings array and the subarray at each position in the two primary arrays should also be the same length. In this way, there is an integer in the backwards_fields arrays for each of the fields in the encodings arrays. The integer is set to 1 if the field is to be sorted in the backwards direction and one for the forward direction.
suffixed_fields
Indicates the number of fields in each encoding to which suffixing is applied. Currently PSI only supports suffixing the first field, so the entries of this array must be 0 or 1.
min_match_sizes
Indicates the minimum match size for each field of each encoding. Match sizes are in characters for text fields, and in bytes for non-text fields. A candidate record is rejected if none of the minima are met. Like backwards_fields this array must have the same dimensions as encodings.

Remarks

It is recommended that you contact your Netrics representative for advice on which PSI encodings to use for your specific application.

See Also