Package com.yahoo.document.predicate
Class FeatureRange
- java.lang.Object
-
- com.yahoo.document.predicate.Predicate
-
- com.yahoo.document.predicate.FeatureRange
-
- All Implemented Interfaces:
java.lang.Cloneable
public class FeatureRange extends Predicate
- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description FeatureRange(java.lang.String key)
FeatureRange(java.lang.String key, java.lang.Long fromInclusive, java.lang.Long toInclusive)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPartition(RangePartition p)
protected void
appendTo(java.lang.StringBuilder out)
static FeatureRange
buildFromMixedIn(java.lang.String key, java.util.List<java.lang.String> partitions, int arity)
void
clearPartitions()
FeatureRange
clone()
boolean
equals(java.lang.Object obj)
java.util.List<RangeEdgePartition>
getEdgePartitions()
java.lang.Long
getFromInclusive()
java.lang.String
getKey()
java.util.List<RangePartition>
getPartitions()
java.lang.Long
getToInclusive()
int
hashCode()
FeatureRange
setFromInclusive(java.lang.Long from)
FeatureRange
setKey(java.lang.String key)
FeatureRange
setToInclusive(java.lang.Long to)
-
Methods inherited from class com.yahoo.document.predicate.Predicate
appendQuotedTo, asciiDecode, asciiEncode, fromBinary, fromString, toString
-
-
-
-
Method Detail
-
setKey
public FeatureRange setKey(java.lang.String key)
-
getKey
public java.lang.String getKey()
-
setFromInclusive
public FeatureRange setFromInclusive(java.lang.Long from)
-
getFromInclusive
public java.lang.Long getFromInclusive()
-
setToInclusive
public FeatureRange setToInclusive(java.lang.Long to)
-
getToInclusive
public java.lang.Long getToInclusive()
-
addPartition
public void addPartition(RangePartition p)
-
getEdgePartitions
public java.util.List<RangeEdgePartition> getEdgePartitions()
-
getPartitions
public java.util.List<RangePartition> getPartitions()
-
clearPartitions
public void clearPartitions()
-
clone
public FeatureRange clone() throws java.lang.CloneNotSupportedException
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
appendTo
protected void appendTo(java.lang.StringBuilder out)
-
buildFromMixedIn
public static FeatureRange buildFromMixedIn(java.lang.String key, java.util.List<java.lang.String> partitions, int arity)
-
-