public class SearchFieldValue extends Object implements Cloneable, Externalizable
SearchDocument
.Constructor and Description |
---|
SearchFieldValue() |
SearchFieldValue(Boolean value)
Construct a new SearchFieldValue with a
Boolean value. |
SearchFieldValue(Date value)
Construct a new SearchFieldValue with a
Date value. |
SearchFieldValue(Number value)
Construct a new SearchFieldValue with a
numeric value. |
SearchFieldValue(Point value)
Construct a new SearchFieldValue with a
Point value. |
SearchFieldValue(Shape value)
Construct a new SearchFieldValue with a
Shape value. |
SearchFieldValue(String value)
Construct a new SearchFieldValue with a
String value. |
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValue()
Gets the value as a
boolean . |
SearchFieldValue |
clone() |
Date |
dateValue()
Gets the value as a
Date . |
BigDecimal |
decimalValue()
Gets the value as a
BigDecimal . |
double |
doubleValue()
Gets the value as a
double . |
boolean |
equals(Object other) |
float |
floatValue()
Gets the value as a
float . |
Object |
getValue()
Get the field value.
|
int |
hashCode() |
int |
intValue()
Gets the value as an
int . |
long |
longValue()
Gets the value as a
long . |
Point |
pointValue()
Gets the value as a
Point . |
SearchFieldValue |
readExternal(DataInput in) |
void |
readExternal(ObjectInput in) |
void |
setValue(Boolean value)
Set a
Boolean value. |
void |
setValue(Date value)
Set a
Date value. |
void |
setValue(Number value)
Set a
numeric value. |
void |
setValue(Point value)
Set a
Point value. |
void |
setValue(Shape value)
Set a
Shape value. |
void |
setValue(String value)
Set a
String value. |
Shape |
shapeValue()
Gets the value as a
Shape . |
String |
stringValue()
Gets the value as a string.
|
String |
toString() |
boolean |
valueEquals(Object other)
|
static SearchFieldValue |
valueOf(Object value)
Get a
SearchFieldValue for value . |
void |
writeExternal(DataOutput out) |
void |
writeExternal(ObjectOutput out) |
public SearchFieldValue()
public SearchFieldValue(String value)
String
value.IllegalArgumentException
- if value
is null.public SearchFieldValue(Number value)
numeric
value.IllegalArgumentException
- if value
is null.public SearchFieldValue(Date value)
Date
value.IllegalArgumentException
- if value
is null.public SearchFieldValue(Boolean value)
Boolean
value.IllegalArgumentException
- if value
is null.public SearchFieldValue(Point value)
Point
value.IllegalArgumentException
- if value
is null.public SearchFieldValue(Shape value)
Shape
value.IllegalArgumentException
- if value
is null.public Object getValue()
public String stringValue()
public int intValue()
int
.IllegalArgumentException
- if this value cannot be represented as an int
.public long longValue()
long
.IllegalArgumentException
- if this value cannot be represented as a long
.public double doubleValue()
double
.IllegalArgumentException
- if this value cannot be represented as a double
.public float floatValue()
float
.IllegalArgumentException
- if this value cannot be represented as a float
.public Date dateValue()
Date
.IllegalArgumentException
- if this value cannot be represented as a Date
.public boolean booleanValue()
boolean
.IllegalArgumentException
- if this value cannot be represented as a boolean
.public Point pointValue()
Point
.IllegalArgumentException
- if this value cannot be represented as a Point
.public Shape shapeValue()
Shape
.IllegalArgumentException
- if this value cannot be represented as a Shape
.public BigDecimal decimalValue()
BigDecimal
.IllegalArgumentException
- if this value cannot be represented as a BigDecimal
.public void setValue(String value)
String
value.IllegalArgumentException
- if value
is null.public void setValue(Number value)
numeric
value.IllegalArgumentException
- if value
is null.public void setValue(Date value)
Date
value.IllegalArgumentException
- if value
is null.public void setValue(Boolean value)
Boolean
value.IllegalArgumentException
- if value
is null.public void setValue(Point value)
Point
value.IllegalArgumentException
- if value
is null.public void setValue(Shape value)
Shape
value.IllegalArgumentException
- if value
is null.public boolean valueEquals(Object other)
public SearchFieldValue clone()
public static SearchFieldValue valueOf(Object value)
IllegalArgumentException
- if value
is not a legal value.public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
IOException
public SearchFieldValue readExternal(DataInput in) throws IOException
IOException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void writeExternal(DataOutput out) throws IOException
IOException
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.