public final class FreshnessRange extends Object implements Cloneable, Serializable
Freshness
field expression.Modifier and Type | Field and Description |
---|---|
static TimeResolution |
DEFAULT_RESOLUTION
Default time resolution for this range.
|
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
FreshnessRange |
clone() |
boolean |
equals(Object other) |
double |
getConstant()
Gets the constant y-intercept, or the
ax^2 + bx + c . |
double |
getLinear()
Sets the linear coefficient, or the
b in ax^2 + bx + c . |
long |
getMaxDelta()
Gets the max delta in
timeUnits from the table's center that the range applies to. |
double |
getQuadratic()
Gets the quadratic coefficient, or the
a in ax^2 + bx + c . |
TimeResolution |
getResolution()
Gets the TimeUnit of the start & end deltas
|
int |
hashCode() |
void |
setConstant(double value)
Gets the constant y-intercept, or the
ax^2 + bx + c . |
void |
setLinear(double value)
Sets the linear coefficient, or the
b in ax^2 + bx + c . |
void |
setMaxDelta(long maxDelta)
Gets the max delta in
timeUnits from the table's center that the range applies to. |
void |
setQuadratic(double value)
Sets the quadratic coefficient, or the
a in ax^2 + bx + c . |
void |
setResolution(TimeResolution value)
Sets the time resolution of the start & end deltas
|
String |
toString() |
public static final TimeResolution DEFAULT_RESOLUTION
public FreshnessRange()
public FreshnessRange(long maxDelta)
public FreshnessRange(long maxAge, double a, double b, double c)
public FreshnessRange(long maxAge, TimeResolution timeUnit, double a, double b, double c)
public long getMaxDelta()
timeUnits
from the table's center that the range applies to.public void setMaxDelta(long maxDelta)
timeUnits
from the table's center that the range applies to.public double getQuadratic()
a
in ax^2 + bx + c
.public void setQuadratic(double value)
a
in ax^2 + bx + c
.public double getLinear()
b
in ax^2 + bx + c
.
This is the slope if the quadratic coefficient is zero.
public void setLinear(double value)
b
in ax^2 + bx + c
.public double getConstant()
ax^2 + bx + c
.
This is the static boost if the quadratic and linear coefficients are zero.
public void setConstant(double value)
ax^2 + bx + c
.public TimeResolution getResolution()
public void setResolution(TimeResolution value)
public FreshnessRange clone()
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.