Package com.yahoo.searchdefinition
Class RankingConstant
- java.lang.Object
-
- com.yahoo.searchdefinition.RankingConstant
-
public class RankingConstant extends java.lang.Object
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 Modifier and Type Class Description static class
RankingConstant.PathType
-
Constructor Summary
Constructors Constructor Description RankingConstant(java.lang.String name)
RankingConstant(java.lang.String name, com.yahoo.tensor.TensorType type, java.lang.String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFileName()
java.lang.String
getFileReference()
java.lang.String
getName()
RankingConstant.PathType
getPathType()
com.yahoo.tensor.TensorType
getTensorType()
java.lang.String
getType()
java.lang.String
getUri()
void
sendTo(java.util.Collection<? extends AbstractService> services)
Initiate sending of this constant to some services over file distributionvoid
setFileName(java.lang.String fileName)
void
setType(com.yahoo.tensor.TensorType type)
void
setUri(java.lang.String uri)
java.lang.String
toString()
void
validate()
-
-
-
Method Detail
-
getPathType
public RankingConstant.PathType getPathType()
-
setFileName
public void setFileName(java.lang.String fileName)
-
setUri
public void setUri(java.lang.String uri)
-
setType
public void setType(com.yahoo.tensor.TensorType type)
-
sendTo
public void sendTo(java.util.Collection<? extends AbstractService> services)
Initiate sending of this constant to some services over file distribution
-
getName
public java.lang.String getName()
-
getFileName
public java.lang.String getFileName()
-
getUri
public java.lang.String getUri()
-
getFileReference
public java.lang.String getFileReference()
-
getTensorType
public com.yahoo.tensor.TensorType getTensorType()
-
getType
public java.lang.String getType()
-
validate
public void validate()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-