-loadlog
template: csv?clnt=<name|pass>&com=loadlog&path=<path>&cs=<character_seperator>&usrcol=<column_number>&ftrcol=<column_number>&timecol=<column_number>&numcol=<column_number>&timecol=<column_number>&prefix=<string_value>&(sescol=<column_number>|sesgen=<integer_value>)
descript: Reads a csv file with log data and inserts values into decay_data and num_data tables.
The parameter path specifies the path that the csv file exists, the cs parameter is the charaster(s) that
seperate(s) the file columns, the parameter usrcol is the column number that user names exist, is an optional parameter and if not exists Pserver
assumes that has the value 0 (1st column). The parameter ftrcol is the column number that feature names exist, is optional and if is missed then
PServer assumes that has the value 1 (2nd column). The parameter timecol is the column number that contains the timestamp of the log entry. Timestamps must be
long)integer values. This parameter is optional and if is missed Pserver assumes that has the value 2 (3rd column). The parameter numcol specifies the user preference for the feature,
this parameter is optional and if is missed then PServer will not set data to num_data table. The parameter prefix spesifies a string that will be put in the beggining of the feature
name values. Is an optional parameter and if it is missed then the NULL value is used. The parameter sescol spesifies the column that contains the session id that the log entry exists.
The parameter is optional and if it is ommited then the parameter sesgen must be used insteed. The parameter sesgen specifies that we need to generate new session ids and it needs an long
Integer that represents a time interval. A new sesssion id will be created whenever the new log entry has a timestamp with values greater than the timestamp of the previous one plus the
sesgen interval. The parameters sescol and sesgen must not be used together.
examples: commu?clnt=tname|pass&com=loadlog&path=/home/user/csv_file.txt&cs=,&pref=ftr_&sescol=4
commu?clnt=tname|pass&com=loadlog&path=/home/user/csv_file.txt&cs=,&pref=ftr_&sesgen=300
commu?clnt=tname|pass&com=loadlog&path=/home/user/csv_file.txt&cs=,usrcol=1&ftrcol=3&numcol=4&timecol=5&pref=ftr_&sesgen=400
returns : 200 OK, 401 (fail, request error), 501 (fail, server error)
200 OK : no response body exists.