public class IngestField extends Object implements Iterable<IngestFieldValue>, Serializable, Cloneable, LocaleAware
IngestDocument
.Constructor and Description |
---|
IngestField(String name)
Construct a new IngestField.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(Boolean value)
Add a
Boolean value to this IngestField . |
void |
addValue(ContentPointer value)
Add a
ContentPointer value to this IngestField . |
void |
addValue(Date value)
Add a
Date value to this IngestField . |
void |
addValue(Document value)
Add a
Document value to this IngestField . |
void |
addValue(IngestFieldValue value)
Add a
value to this IngestField . |
void |
addValue(Number value)
Add a
numeric value to this IngestField . |
void |
addValue(Point value)
Add a
Point value to this IngestField . |
void |
addValue(Shape value)
Add a
Shape value to this IngestField . |
void |
addValue(String value)
Add a
String value to this IngestField . |
void |
addValues(Boolean... values)
|
void |
addValues(ContentPointer... values)
|
void |
addValues(Date... values)
|
void |
addValues(Document... values)
|
void |
addValues(Number... values)
|
void |
addValues(Point... values)
|
void |
addValues(Shape... values)
|
void |
addValues(String... values)
|
void |
clear()
Remove all values.
|
IngestField |
clone() |
boolean |
equals(Object other) |
int |
filter(Predicate<? super IngestFieldValue> predicate)
Filter out all values that do not match
predicate . |
void |
forEach(Consumer<? super IngestFieldValue> consumer) |
long |
getEstimatedSize()
Get the estimated size of this field in bytes.
|
IngestFieldValue |
getFirstValue()
Gets the first field value.
|
Locale |
getLocale()
Get the
Locale for this field. |
String |
getName()
Get the name of the field.
|
IngestFieldValue |
getValue(int index)
Get the
IngestFieldValue at index . |
int |
hashCode() |
int |
indexOf(Object value)
Get the index of the
IngestFieldValue with value . |
ListIterator<IngestFieldValue> |
iterator()
Get an iterator for iterating over all
values . |
void |
removeValue(Object value)
Remove a field value.
|
void |
setLocale(Locale value)
Set the
Locale for this field. |
int |
size()
Get the number of field values.
|
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, wait
spliterator
public IngestField(String name)
public long getEstimatedSize()
NOTE: Includes size of remote content pointers.
public String getName()
public Locale getLocale()
Locale
for this field.getLocale
in interface LocaleAware
public void setLocale(Locale value)
Locale
for this field.setLocale
in interface LocaleAware
public int size()
public void forEach(Consumer<? super IngestFieldValue> consumer)
forEach
in interface Iterable<IngestFieldValue>
public int filter(Predicate<? super IngestFieldValue> predicate)
predicate
.
Returns the number of removed values.
public ListIterator<IngestFieldValue> iterator()
values
.iterator
in interface Iterable<IngestFieldValue>
public IngestFieldValue getFirstValue()
NOTE: may return null
if this field has no values.
public IngestFieldValue getValue(int index)
IngestFieldValue
at index
.public int indexOf(Object value)
public void clear()
public void removeValue(Object 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 addValues(Document... values)
public void addValues(ContentPointer... values)
public void addValue(IngestFieldValue value)
value
to this IngestField
.public void addValue(String value)
String
value to this IngestField
.public void addValue(Number value)
numeric
value to this IngestField
.public void addValue(Date value)
Date
value to this IngestField
.public void addValue(Boolean value)
Boolean
value to this IngestField
.public void addValue(Point value)
Point
value to this IngestField
.public void addValue(Shape value)
Shape
value to this IngestField
.public void addValue(Document value)
Document
value to this IngestField
.public void addValue(ContentPointer value)
ContentPointer
value to this IngestField
.public IngestField 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.