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