Class AttributeOperation
- java.lang.Object
-
- com.yahoo.searchdefinition.fieldoperation.AttributeOperation
-
- All Implemented Interfaces:
FieldOperation
,FieldOperationContainer
,Comparable<FieldOperation>
public class AttributeOperation extends Object implements FieldOperation, FieldOperationContainer
- Author:
- Einar M R Rosenvinge
-
-
Constructor Summary
Constructors Constructor Description AttributeOperation(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.String
getAlias()
Boolean
getEnableBitVectors()
Boolean
getEnableOnlyBitVector()
Boolean
getFastAccess()
Boolean
getFastSearch()
Boolean
getHuge()
String
getName()
void
setAlias(String alias)
void
setAliasedName(String aliasedName)
void
setDistanceMetric(String value)
void
setDoAlias(boolean doAlias)
void
setEnableBitVectors(Boolean enableBitVectors)
void
setEnableOnlyBitVector(Boolean enableOnlyBitVector)
void
setFastAccess(Boolean fastAccess)
void
setFastSearch(Boolean fastSearch)
void
setHuge(Boolean huge)
void
setMutable(Boolean mutable)
void
setPaged(Boolean paged)
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
-
-
-
-
Constructor Detail
-
AttributeOperation
public AttributeOperation(String name)
-
-
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 String getName()
- Specified by:
getName
in interfaceFieldOperationContainer
-
getHuge
public Boolean getHuge()
-
setHuge
public void setHuge(Boolean huge)
-
getFastSearch
public Boolean getFastSearch()
-
setFastSearch
public void setFastSearch(Boolean fastSearch)
-
getFastAccess
public Boolean getFastAccess()
-
setFastAccess
public void setFastAccess(Boolean fastAccess)
-
setMutable
public void setMutable(Boolean mutable)
-
setPaged
public void setPaged(Boolean paged)
-
getEnableBitVectors
public Boolean getEnableBitVectors()
-
setEnableBitVectors
public void setEnableBitVectors(Boolean enableBitVectors)
-
getEnableOnlyBitVector
public Boolean getEnableOnlyBitVector()
-
setEnableOnlyBitVector
public void setEnableOnlyBitVector(Boolean enableOnlyBitVector)
-
setDoAlias
public void setDoAlias(boolean doAlias)
-
getAlias
public String getAlias()
-
setAlias
public void setAlias(String alias)
-
setAliasedName
public void setAliasedName(String aliasedName)
-
setTensorType
public void setTensorType(com.yahoo.tensor.TensorType tensorType)
-
setDistanceMetric
public void setDistanceMetric(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
-
-