Package com.yahoo.searchdefinition
Class RankingConstant
- java.lang.Object
-
- com.yahoo.searchdefinition.DistributableResource
-
- com.yahoo.searchdefinition.RankingConstant
-
public class RankingConstant extends 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
Constructors Constructor Description RankingConstant(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.yahoo.tensor.TensorType
getTensorType()
String
getType()
void
setType(com.yahoo.tensor.TensorType type)
String
toString()
void
validate()
-
Methods inherited from class com.yahoo.searchdefinition.DistributableResource
getFileName, getFilePath, getFileReference, getName, getPathType, getUri, register, setFileName, setUri
-
-
-
-
Constructor Detail
-
RankingConstant
public RankingConstant(String name)
-
RankingConstant
public RankingConstant(String name, com.yahoo.tensor.TensorType type, String fileName)
-
RankingConstant
public RankingConstant(String name, com.yahoo.tensor.TensorType type, String fileName, DistributableResource.PathType pathType)
-
-
Method Detail
-
setType
public void setType(com.yahoo.tensor.TensorType type)
-
getTensorType
public com.yahoo.tensor.TensorType getTensorType()
-
getType
public String getType()
-
validate
public void validate()
- Overrides:
validate
in classDistributableResource
-
toString
public String toString()
- Overrides:
toString
in classDistributableResource
-
-