Class AttributeOperation
- java.lang.Object
-
- com.yahoo.searchdefinition.fieldoperation.AttributeOperation
-
- All Implemented Interfaces:
FieldOperation
,FieldOperationContainer
,java.lang.Comparable<FieldOperation>
public class AttributeOperation extends java.lang.Object implements FieldOperation, FieldOperationContainer
- Author:
- Einar M R Rosenvinge
-
-
Constructor Summary
Constructors Constructor Description AttributeOperation(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOperation(FieldOperation op)
Adds an operationvoid
apply(SDField field)
Apply this operation on the given fieldvoid
applyOperations(SDField field)
Apply all operations.java.lang.String
getAlias()
java.lang.String
getAliasedName()
java.lang.Boolean
getEnableBitVectors()
java.lang.Boolean
getEnableOnlyBitVector()
java.lang.Boolean
getFastAccess()
java.lang.Boolean
getFastSearch()
java.lang.Boolean
getHuge()
java.lang.String
getName()
boolean
isDoAlias()
void
setAlias(java.lang.String alias)
void
setAliasedName(java.lang.String aliasedName)
void
setDistanceMetric(java.lang.String value)
void
setDoAlias(boolean doAlias)
void
setEnableBitVectors(java.lang.Boolean enableBitVectors)
void
setEnableOnlyBitVector(java.lang.Boolean enableOnlyBitVector)
void
setFastAccess(java.lang.Boolean fastAccess)
void
setFastSearch(java.lang.Boolean fastSearch)
void
setHuge(java.lang.Boolean huge)
void
setMutable(java.lang.Boolean mutable)
void
setTensorType(com.yahoo.tensor.TensorType tensorType)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.yahoo.searchdefinition.fieldoperation.FieldOperation
compareTo
-
-
-
-
Method Detail
-
addOperation
public void addOperation(FieldOperation op)
Description copied from interface:FieldOperationContainer
Adds an operation- Specified by:
addOperation
in interfaceFieldOperationContainer
-
applyOperations
public void applyOperations(SDField field)
Description copied from interface:FieldOperationContainer
Apply all operations. Operations must be sorted in their natural order before applying each operation.- Specified by:
applyOperations
in interfaceFieldOperationContainer
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceFieldOperationContainer
-
getHuge
public java.lang.Boolean getHuge()
-
setHuge
public void setHuge(java.lang.Boolean huge)
-
getFastSearch
public java.lang.Boolean getFastSearch()
-
setFastSearch
public void setFastSearch(java.lang.Boolean fastSearch)
-
getFastAccess
public java.lang.Boolean getFastAccess()
-
setFastAccess
public void setFastAccess(java.lang.Boolean fastAccess)
-
setMutable
public void setMutable(java.lang.Boolean mutable)
-
getEnableBitVectors
public java.lang.Boolean getEnableBitVectors()
-
setEnableBitVectors
public void setEnableBitVectors(java.lang.Boolean enableBitVectors)
-
getEnableOnlyBitVector
public java.lang.Boolean getEnableOnlyBitVector()
-
setEnableOnlyBitVector
public void setEnableOnlyBitVector(java.lang.Boolean enableOnlyBitVector)
-
isDoAlias
public boolean isDoAlias()
-
setDoAlias
public void setDoAlias(boolean doAlias)
-
getAlias
public java.lang.String getAlias()
-
setAlias
public void setAlias(java.lang.String alias)
-
getAliasedName
public java.lang.String getAliasedName()
-
setAliasedName
public void setAliasedName(java.lang.String aliasedName)
-
setTensorType
public void setTensorType(com.yahoo.tensor.TensorType tensorType)
-
setDistanceMetric
public void setDistanceMetric(java.lang.String value)
-
apply
public void apply(SDField field)
Description copied from interface:FieldOperation
Apply this operation on the given field- Specified by:
apply
in interfaceFieldOperation
-
-