Click or drag to resize

UploadFactlet Class

Factlet for uploading data into an OFDB. This object should be initialized, then data should be added to it, then it should be executed.
Examples
UploadFactlet f = new UploadFactlet("MyOFDB", new string[] {"Id", "Date", "custom_data"}, new string[] "String","String","Double"});
string[] dates = new string[] {"01/01/2014","02/01/2014","03/01/2014"};
double[] ibmData = new double[] { 5, 10, 15 };
double[] fdsData = new double[] {10, 20, 30 };
for(int i = 0; i < dates.length; i++) {
    f.addDataPoint("ibm");
    f.addDataPoint(dates[i]);
    f.addDataPoint(ibmData[i]);
}
for(int i = 0; i < dates.length; i++) {
    f.addDataPoint("fds");
    f.addDataPoint(dates[i]);
    f.addDataPoint(fdsData[i]);
}
f.execute();
Inheritance Hierarchy

Namespace:  Kratos_3.Network
Assembly:  Kratos_3 (in Kratos_3.dll) Version: 3.6.2.0 (3.6.2.0)
Syntax
public class UploadFactlet : Factlet

The UploadFactlet type exposes the following members.

Constructors
  NameDescription
Public methodUploadFactlet
Set up the factlet. The first column has to be Id and the second column has to be Date
Top
Methods
  NameDescription
Public methodaddDataPoint(Double)
Add a single datapoint. Datapoints are added to the datatable left to right, top to bottom. Correct data type isn't checked until the upload is initiated. Uses the ToString method in doubles to convert the data to string format
Public methodaddDataPoint(String)
Add a single datapoint. Datapoints are added to the datatable left to right, top to bottom. Correct data type isn't checked until the upload is initiated
Public methodaddStringParameter(String, String)
Add a parameter to the request. If request already has parameter by that name, changes the parameter's value Parameter names are case-insensitive
(Inherited from DataRequest.)
Public methodaddStringParameter(String, String, Boolean)
Add a parameter to the request. If request already has parameter by that name, changes the parameter's value Parameter names are case-insensitive
(Inherited from DataRequest.)
Public methodaddStringParameterIfNotCurrentlyPresent
Add a parameter to the request only if it is already not in the request. Parameter names are case-insensitive
(Inherited from DataRequest.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodErrorOnFetch (Inherited from DataRequest.)
Public methodFetch (Overrides DataRequestFetch(IDataFetch, IDataTable).)
Public methodgetDataFrame
Returns a NoParseDataFrame
(Overrides FactletgetDataFrame(IEventLogger, Boolean, Boolean, IConfigManager, FactSetOnDemand).)
Public methodgetDataTable (Inherited from DataRequest.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetNumberOfTries (Inherited from DataRequest.)
Public methodgetParameterList
Returns parameters in this data request, as a Dictionary
(Inherited from DataRequest.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodReceiveData(String) (Inherited from Factlet.)
Public methodReceiveData(String, Boolean) (Inherited from DataRequest.)
Public methodRetry (Inherited from DataRequest.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldfactletName
Factlet that is being requested
(Inherited from Factlet.)
Public fieldresult
The string returned from the network
(Inherited from Factlet.)
Top
See Also