Class UploadHeuristic
- java.lang.Object
-
- de.businesscode.bcdui.upload.data.steps.UploadHeuristic
-
- All Implemented Interfaces:
IUploadStep
public class UploadHeuristic extends java.lang.Object implements IUploadStep
This class tries to guess the data content semantics in bcd_dataupload_rowcol and updates bcd_dataupload_control 1. Does the data have a header 2. What data types do the columns have 3. Which columns are dimensions and which metrics 4. In what format are numbers given 5. How would the data match against allowed BindingSets or a given BindingSet, we choose the BindingSet where most number of columns match and were all mandatory columns could be matched
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
allowedTargetBs
static float
DIST_THRESHOLD
static float
ISNUM_THRESHOLD
static java.lang.String
PARAM_TARGETBS_SEPARATOR
static java.lang.String
STEP_ID
protected UploadControl
uc
protected java.lang.String
uploadId
protected java.lang.String
userId
-
Constructor Summary
Constructors Constructor Description UploadHeuristic(UploadControl uc, java.lang.String userId)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process()
Go-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.businesscode.bcdui.upload.data.steps.IUploadStep
setParams
-
-
-
-
Field Detail
-
STEP_ID
public static java.lang.String STEP_ID
-
DIST_THRESHOLD
public static final float DIST_THRESHOLD
- See Also:
- Constant Field Values
-
ISNUM_THRESHOLD
public static final float ISNUM_THRESHOLD
- See Also:
- Constant Field Values
-
PARAM_TARGETBS_SEPARATOR
public static final java.lang.String PARAM_TARGETBS_SEPARATOR
- See Also:
- Constant Field Values
-
uc
protected final UploadControl uc
-
uploadId
protected final java.lang.String uploadId
-
userId
protected final java.lang.String userId
-
allowedTargetBs
protected final java.util.List<java.lang.String> allowedTargetBs
-
-
Constructor Detail
-
UploadHeuristic
public UploadHeuristic(UploadControl uc, java.lang.String userId) throws java.lang.Exception
Constructor- Parameters:
uc
-userId
-- Throws:
java.lang.Exception
-
-
Method Detail
-
process
public void process() throws UploadException, java.sql.SQLException
Go- Specified by:
process
in interfaceIUploadStep
- Throws:
java.lang.Exception
UploadException
java.sql.SQLException
-
-