Package com.attivio.sdk.search.fields
Class FreshnessRange
- java.lang.Object
-
- com.attivio.sdk.search.fields.FreshnessRange
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public final class FreshnessRange extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableA range for aFreshnessfield expression.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static TimeResolutionDEFAULT_RESOLUTIONDefault time resolution for this range.
-
Constructor Summary
Constructors Constructor Description FreshnessRange()FreshnessRange(long maxDelta)FreshnessRange(long maxAge, double a, double b, double c)FreshnessRange(long maxAge, TimeResolution timeUnit, double a, double b, double c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FreshnessRangeclone()booleanequals(java.lang.Object other)doublegetConstant()Gets the constant y-intercept, or thec in ax^2 + bx + c.doublegetLinear()Sets the linear coefficient, or thebinax^2 + bx + c.longgetMaxDelta()Gets the max delta intimeUnitsfrom the table's center that the range applies to.doublegetQuadratic()Gets the quadratic coefficient, or theainax^2 + bx + c.TimeResolutiongetResolution()Gets the TimeUnit of the start & end deltasinthashCode()voidsetConstant(double value)Gets the constant y-intercept, or thec in ax^2 + bx + c.voidsetLinear(double value)Sets the linear coefficient, or thebinax^2 + bx + c.voidsetMaxDelta(long maxDelta)Gets the max delta intimeUnitsfrom the table's center that the range applies to.voidsetQuadratic(double value)Sets the quadratic coefficient, or theainax^2 + bx + c.voidsetResolution(TimeResolution value)Sets the time resolution of the start & end deltasjava.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT_RESOLUTION
public static final TimeResolution DEFAULT_RESOLUTION
Default time resolution for this range.
-
-
Constructor Detail
-
FreshnessRange
public FreshnessRange()
-
FreshnessRange
public FreshnessRange(long maxDelta)
-
FreshnessRange
public FreshnessRange(long maxAge, double a, double b, double c)
-
FreshnessRange
public FreshnessRange(long maxAge, TimeResolution timeUnit, double a, double b, double c)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getMaxDelta
public long getMaxDelta()
Gets the max delta intimeUnitsfrom the table's center that the range applies to.
-
setMaxDelta
public void setMaxDelta(long maxDelta)
Gets the max delta intimeUnitsfrom the table's center that the range applies to.
-
getQuadratic
public double getQuadratic()
Gets the quadratic coefficient, or theainax^2 + bx + c.
-
setQuadratic
public void setQuadratic(double value)
Sets the quadratic coefficient, or theainax^2 + bx + c.
-
getLinear
public double getLinear()
Sets the linear coefficient, or thebinax^2 + bx + c.This is the slope if the quadratic coefficient is zero.
-
setLinear
public void setLinear(double value)
Sets the linear coefficient, or thebinax^2 + bx + c.
-
getConstant
public double getConstant()
Gets the constant y-intercept, or thec in ax^2 + bx + c.This is the static boost if the quadratic and linear coefficients are zero.
-
setConstant
public void setConstant(double value)
Gets the constant y-intercept, or thec in ax^2 + bx + c.
-
getResolution
public TimeResolution getResolution()
Gets the TimeUnit of the start & end deltas
-
setResolution
public void setResolution(TimeResolution value)
Sets the time resolution of the start & end deltas
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
clone
public FreshnessRange clone()
- Overrides:
clonein classjava.lang.Object
-
-