diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-08-12 15:13:16 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-08-12 15:13:16 +0200 |
commit | 76a6060a8d840f4babc6ad613b6dd9d13f6d9e8d (patch) | |
tree | 44849ca662fd6f0aa73a47ef7d08bc6600dce3e7 /config-model/src/main/java | |
parent | f253767a2abb74a13afc40f88af8b3d593c3741a (diff) |
swappable -> paged
Diffstat (limited to 'config-model/src/main/java')
4 files changed, 24 insertions, 24 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/derived/AttributeFields.java b/config-model/src/main/java/com/yahoo/searchdefinition/derived/AttributeFields.java index f9520159383..2ec725b46fc 100644 --- a/config-model/src/main/java/com/yahoo/searchdefinition/derived/AttributeFields.java +++ b/config-model/src/main/java/com/yahoo/searchdefinition/derived/AttributeFields.java @@ -222,8 +222,8 @@ public class AttributeFields extends Derived implements AttributesConfig.Produce if (attribute.isHuge()) { aaB.huge(true); } - if (attribute.isSwappable()) { - aaB.swappable(true); + if (attribute.isPaged()) { + aaB.paged(true); } if (attribute.getSorting().isDescending()) { aaB.sortascending(false); diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/document/Attribute.java b/config-model/src/main/java/com/yahoo/searchdefinition/document/Attribute.java index 0dacb832ab7..d0b8719a1ea 100644 --- a/config-model/src/main/java/com/yahoo/searchdefinition/document/Attribute.java +++ b/config-model/src/main/java/com/yahoo/searchdefinition/document/Attribute.java @@ -57,7 +57,7 @@ public final class Attribute implements Cloneable, Serializable { private boolean fastAccess = false; private boolean huge = false; private boolean mutable = false; - private boolean swappable = false; + private boolean paged = false; private int arity = BooleanIndexDefinition.DEFAULT_ARITY; private long lowerBound = BooleanIndexDefinition.DEFAULT_LOWER_BOUND; private long upperBound = BooleanIndexDefinition.DEFAULT_UPPER_BOUND; @@ -188,22 +188,22 @@ public final class Attribute implements Cloneable, Serializable { /** Returns the prefetch value of this, null if the default is used. */ public Boolean getPrefetchValue() { return prefetch; } - public boolean isRemoveIfZero() { return removeIfZero; } - public boolean isCreateIfNonExistent(){ return createIfNonExistent; } - public boolean isEnabledBitVectors() { return enableBitVectors; } + public boolean isRemoveIfZero() { return removeIfZero; } + public boolean isCreateIfNonExistent() { return createIfNonExistent; } + public boolean isEnabledBitVectors() { return enableBitVectors; } public boolean isEnabledOnlyBitVector() { return enableOnlyBitVector; } - public boolean isFastSearch() { return fastSearch; } - public boolean isFastAccess() { return fastAccess; } - public boolean isHuge() { return huge; } - public boolean isSwappable() { return swappable; } - public boolean isPosition() { return isPosition; } - public boolean isMutable() { return mutable; } - - public int arity() { return arity; } + public boolean isFastSearch() { return fastSearch; } + public boolean isFastAccess() { return fastAccess; } + public boolean isHuge() { return huge; } + public boolean isPaged() { return paged; } + public boolean isPosition() { return isPosition; } + public boolean isMutable() { return mutable; } + + public int arity() { return arity; } public long lowerBound() { return lowerBound; } public long upperBound() { return upperBound; } public double densePostingListThreshold() { return densePostingListThreshold; } - public Optional<TensorType> tensorType() { return tensorType; } + public Optional<TensorType> tensorType() { return tensorType; } public Optional<StructuredDataType> referenceDocumentType() { return referenceDocumentType; } public static final DistanceMetric DEFAULT_DISTANCE_METRIC = DistanceMetric.EUCLIDEAN; @@ -228,7 +228,7 @@ public final class Attribute implements Cloneable, Serializable { public void setEnableOnlyBitVector(boolean enableOnlyBitVector) { this.enableOnlyBitVector = enableOnlyBitVector; } public void setFastSearch(boolean fastSearch) { this.fastSearch = fastSearch; } public void setHuge(boolean huge) { this.huge = huge; } - public void setSwappable(boolean swappable) { this.swappable = swappable; } + public void setPaged(boolean paged) { this.paged = paged; } public void setFastAccess(boolean fastAccess) { this.fastAccess = fastAccess; } public void setPosition(boolean position) { this.isPosition = position; } public void setMutable(boolean mutable) { this.mutable = mutable; } @@ -359,7 +359,7 @@ public final class Attribute implements Cloneable, Serializable { public int hashCode() { return Objects.hash( name, type, collectionType, sorting, dictionary, isPrefetch(), fastAccess, removeIfZero, - createIfNonExistent, isPosition, huge, mutable, swappable, enableBitVectors, enableOnlyBitVector, + createIfNonExistent, isPosition, huge, mutable, paged, enableBitVectors, enableOnlyBitVector, tensorType, referenceDocumentType, distanceMetric, hnswIndexParams); } @@ -384,7 +384,7 @@ public final class Attribute implements Cloneable, Serializable { if (this.fastSearch != other.fastSearch) return false; if (this.huge != other.huge) return false; if (this.mutable != other.mutable) return false; - if (this.swappable != other.swappable) return false; + if (this.paged != other.paged) return false; if (! this.sorting.equals(other.sorting)) return false; if (! Objects.equals(dictionary, other.dictionary)) return false; if (! Objects.equals(tensorType, other.tensorType)) return false; diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/fieldoperation/AttributeOperation.java b/config-model/src/main/java/com/yahoo/searchdefinition/fieldoperation/AttributeOperation.java index 8c6c9ecd696..1126c1cab87 100644 --- a/config-model/src/main/java/com/yahoo/searchdefinition/fieldoperation/AttributeOperation.java +++ b/config-model/src/main/java/com/yahoo/searchdefinition/fieldoperation/AttributeOperation.java @@ -18,7 +18,7 @@ public class AttributeOperation implements FieldOperation, FieldOperationContain private Boolean fastSearch; private Boolean fastAccess; private Boolean mutable; - private Boolean swappable; + private Boolean paged; private Boolean enableBitVectors; private Boolean enableOnlyBitVector; //TODO: Remember sorting!! @@ -74,8 +74,8 @@ public class AttributeOperation implements FieldOperation, FieldOperationContain public void setMutable(Boolean mutable) { this.mutable = mutable; } - public void setSwappable(Boolean swappable) { - this.swappable = swappable; + public void setPaged(Boolean paged) { + this.paged = paged; } public Boolean getEnableBitVectors() { @@ -135,8 +135,8 @@ public class AttributeOperation implements FieldOperation, FieldOperationContain if (huge != null) { attribute.setHuge(huge); } - if (swappable != null) { - attribute.setSwappable(swappable); + if (paged != null) { + attribute.setPaged(paged); } if (fastSearch != null) { attribute.setFastSearch(fastSearch); diff --git a/config-model/src/main/java/com/yahoo/vespa/model/application/validation/change/search/AttributeChangeValidator.java b/config-model/src/main/java/com/yahoo/vespa/model/application/validation/change/search/AttributeChangeValidator.java index a5f4683c09b..50eabdb2a1a 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/application/validation/change/search/AttributeChangeValidator.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/application/validation/change/search/AttributeChangeValidator.java @@ -105,7 +105,7 @@ public class AttributeChangeValidator { validateAttributeSetting(id, currAttr, nextAttr, AttributeChangeValidator::extractDictionaryType, "dictionary: btree/hash", result); validateAttributeSetting(id, currAttr, nextAttr, AttributeChangeValidator::extractDictionaryCase, "dictionary: cased/uncased", result); validateAttributeSetting(id, currAttr, nextAttr, Attribute::isHuge, "huge", result); - validateAttributeSetting(id, currAttr, nextAttr, Attribute::isSwappable, "swappable", result); + validateAttributeSetting(id, currAttr, nextAttr, Attribute::isPaged, "paged", result); validateAttributeSetting(id, currAttr, nextAttr, Attribute::densePostingListThreshold, "dense-posting-list-threshold", result); validateAttributeSetting(id, currAttr, nextAttr, Attribute::isEnabledOnlyBitVector, "rank: filter", result); validateAttributeSetting(id, currAttr, nextAttr, Attribute::distanceMetric, "distance-metric", result); |