Package com.tibco.patterns.grouping
Class CsvInputOptions
- java.lang.Object
-
- com.tibco.patterns.grouping.CsvInputOptions
-
public class CsvInputOptions extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description CsvKeyHandlingpair_key_handlingDetermines handling of pair keys from the file.java.lang.Integerpair_key_indexThe column in the csv file which contains the pair keys.intrecord_key_1_indexThe column in the csv file which contains the first record key.intrecord_key_2_indexThe column in the csv file which contains the second record key.CsvKeyHandlingrecord_key_handlingDetermines handling of record keys from the file.intscore_indexThe column in the csv file which contains the pair score.intskip_linesNumber of lines to skip at the start of the csv file.booleanskip_self_matchesIndicates whether to skip self-match pairs (pairs where the two record keys are identical).
-
Constructor Summary
Constructors Constructor Description CsvInputOptions(int record_key_1_index, int record_key_2_index, int score_index)Constructs a CsvInputOptions object with the minimum required options.CsvInputOptions(int pair_key_index, int record_key_1_index, int record_key_2_index, int score_index)Constructs a CsvInputOptions object with just column index options.CsvInputOptions(CsvInputOptions from)Copy constructor
-
-
-
Field Detail
-
skip_self_matches
public boolean skip_self_matches
Indicates whether to skip self-match pairs (pairs where the two record keys are identical). Default is true.
-
skip_lines
public int skip_lines
Number of lines to skip at the start of the csv file. Default is 0. Set this if, for example, the file has a column header line.
-
record_key_1_index
public int record_key_1_index
The column in the csv file which contains the first record key. Zero-based.
-
record_key_2_index
public int record_key_2_index
The column in the csv file which contains the second record key. Zero-based.
-
score_index
public int score_index
The column in the csv file which contains the pair score. Zero-based.
-
pair_key_index
public java.lang.Integer pair_key_index
The column in the csv file which contains the pair keys. Optional. If null, pair keys will be generated. Zero-based.
-
pair_key_handling
public CsvKeyHandling pair_key_handling
Determines handling of pair keys from the file. Ignored ifpair_key_indexis null.
-
record_key_handling
public CsvKeyHandling record_key_handling
Determines handling of record keys from the file. Must beMapIntegerif external link counts will be used.
-
-
Constructor Detail
-
CsvInputOptions
public CsvInputOptions(int record_key_1_index, int record_key_2_index, int score_index)Constructs a CsvInputOptions object with the minimum required options.- Parameters:
record_key_1_index- The column in the csv file which contains the first record key. Zero-based.record_key_2_index- The column in the csv file which contains the second record key. Zero-based.score_index- The column in the csv file which contains the pair score. Zero-based.
-
CsvInputOptions
public CsvInputOptions(int pair_key_index, int record_key_1_index, int record_key_2_index, int score_index)Constructs a CsvInputOptions object with just column index options.- Parameters:
pair_key_index- The column in the csv file which contains the pair keys. Optional. If null, pair keys will be generated. Zero-based.record_key_1_index- The column in the csv file which contains the first record key. Zero-based.record_key_2_index- The column in the csv file which contains the second record key. Zero-based.score_index- The column in the csv file which contains the pair score. Zero-based.
-
CsvInputOptions
public CsvInputOptions(CsvInputOptions from)
Copy constructor- Parameters:
from- CsvInputOptions object to copy settings from.
-
-