Package com.yahoo.searchdefinition
Class RankingConstant
java.lang.Object
com.yahoo.searchdefinition.DistributableResource
com.yahoo.searchdefinition.RankingConstant
- All Implemented Interfaces:
Comparable<DistributableResource>
A global ranking constant distributed using file distribution.
Ranking constants must be sent to some services to be useful - this is done
by calling the sentTo method during the prepare phase of building models.
- Author:
- arnej, bratseth
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.searchdefinition.DistributableResource
DistributableResource.PathType
-
Constructor Summary
ConstructorDescriptionRankingConstant
(String name) RankingConstant
(String name, com.yahoo.tensor.TensorType type, String fileName) RankingConstant
(String name, com.yahoo.tensor.TensorType type, String fileName, DistributableResource.PathType pathType) -
Method Summary
Methods inherited from class com.yahoo.searchdefinition.DistributableResource
compareTo, getFileName, getFilePath, getFileReference, getName, getPathType, getUri, register, setFileName, setUri
-
Constructor Details
-
RankingConstant
-
RankingConstant
-
RankingConstant
public RankingConstant(String name, com.yahoo.tensor.TensorType type, String fileName, DistributableResource.PathType pathType)
-
-
Method Details
-
setType
public void setType(com.yahoo.tensor.TensorType type) -
getTensorType
public com.yahoo.tensor.TensorType getTensorType() -
getType
-
validate
public void validate()- Overrides:
validate
in classDistributableResource
-
toString
- Overrides:
toString
in classDistributableResource
-