Package org.apache.solr.ltr
Class CSVFeatureLogger
- java.lang.Object
-
- org.apache.solr.ltr.FeatureLogger
-
- org.apache.solr.ltr.CSVFeatureLogger
-
public class CSVFeatureLogger extends FeatureLogger
A feature logger that logs in csv format.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.ltr.FeatureLogger
FeatureLogger.FeatureFormat
-
-
Field Summary
Fields Modifier and Type Field Description static char
DEFAULT_FEATURE_SEPARATOR
static char
DEFAULT_KEY_VALUE_SEPARATOR
-
Fields inherited from class org.apache.solr.ltr.FeatureLogger
featureFormat
-
-
Constructor Summary
Constructors Constructor Description CSVFeatureLogger(String fvCacheName, FeatureLogger.FeatureFormat f)
CSVFeatureLogger(String fvCacheName, FeatureLogger.FeatureFormat f, char keyValueSep, char featureSep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
makeFeatureVector(LTRScoringQuery.FeatureInfo[] featuresInfo)
-
Methods inherited from class org.apache.solr.ltr.FeatureLogger
getFeatureVector, log
-
-
-
-
Field Detail
-
DEFAULT_KEY_VALUE_SEPARATOR
public static final char DEFAULT_KEY_VALUE_SEPARATOR
- See Also:
- Constant Field Values
-
DEFAULT_FEATURE_SEPARATOR
public static final char DEFAULT_FEATURE_SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CSVFeatureLogger
public CSVFeatureLogger(String fvCacheName, FeatureLogger.FeatureFormat f)
-
CSVFeatureLogger
public CSVFeatureLogger(String fvCacheName, FeatureLogger.FeatureFormat f, char keyValueSep, char featureSep)
-
-
Method Detail
-
makeFeatureVector
public String makeFeatureVector(LTRScoringQuery.FeatureInfo[] featuresInfo)
- Specified by:
makeFeatureVector
in classFeatureLogger
-
-