public class SearchField extends Object implements Iterable<SearchFieldValue>, Externalizable, Cloneable
SearchDocument
.Constructor and Description |
---|
SearchField() |
SearchField(String name)
Construct a new SearchField.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(Boolean value)
Add a
Boolean value to this SearchField . |
void |
addValue(Date value)
Add a
Date value to this SearchField . |
void |
addValue(Number value)
Add a
numeric value to this SearchField . |
void |
addValue(Point value)
Add a
Point value to this SearchField . |
void |
addValue(SearchFieldValue value)
Add a
value to this SearchField . |
void |
addValue(Shape value)
Add a
Shape value to this SearchField . |
void |
addValue(String value)
Add a
String value to this SearchField . |
void |
addValues(Boolean... values)
|
void |
addValues(Date... values)
|
void |
addValues(Number... values)
|
void |
addValues(Point... values)
|
void |
addValues(Shape... values)
|
void |
addValues(String... values)
|
void |
clear()
Remove all values.
|
SearchField |
clone() |
boolean |
equals(Object other) |
SearchFieldValue |
getFirstValue()
Gets the first field value.
|
String |
getName()
Get the name of the field.
|
SearchFieldValue |
getValue(int index)
Get the
SearchFieldValue at index . |
int |
hashCode() |
ListIterator<SearchFieldValue> |
iterator()
Get an iterator for iterating over all
values . |
void |
readExternal(ObjectInput in) |
void |
removeValue(Object value)
Remove a field
value . |
int |
size()
Get the number of field values.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public SearchField()
public SearchField(String name)
public String getName()
public int size()
public SearchFieldValue getFirstValue()
NOTE: may return null
if this field has no values.
public SearchFieldValue getValue(int index)
SearchFieldValue
at index
.public ListIterator<SearchFieldValue> iterator()
values
.iterator
in interface Iterable<SearchFieldValue>
public void clear()
public void removeValue(Object value)
value
.public void addValues(String... values)
public void addValues(Number... values)
public void addValues(Date... values)
public void addValues(Boolean... values)
public void addValues(Point... values)
public void addValues(Shape... values)
public void addValue(SearchFieldValue value)
value
to this SearchField
.public void addValue(String value)
String
value to this SearchField
.public void addValue(Number value)
numeric
value to this SearchField
.public void addValue(Date value)
Date
value to this SearchField
.public void addValue(Boolean value)
Boolean
value to this SearchField
.public void addValue(Point value)
Point
value to this SearchField
.public void addValue(Shape value)
Shape
value to this SearchField
.public SearchField clone()
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
IOException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
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.