Package | Description |
---|---|
com.yahoo.document | |
com.yahoo.document.annotation |
Provides classes and interfaces for creating trees of spans over string
values in Vespa documents, and annotating these spans.
|
com.yahoo.document.datatypes | |
com.yahoo.document.fieldpathupdate | |
com.yahoo.document.select.rule | |
com.yahoo.document.serialization | |
com.yahoo.document.update |
Modifier and Type | Class and Description |
---|---|
class |
Document
A document is an identifiable
set of value bindings of a
document type . |
Modifier and Type | Field and Description |
---|---|
private FieldValue |
FieldPathEntry.lookupKey |
Modifier and Type | Field and Description |
---|---|
private Class<? extends FieldValue> |
PrimitiveDataType.valueClass |
Modifier and Type | Method and Description |
---|---|
abstract FieldValue |
PrimitiveDataType.Factory.create() |
protected FieldValue |
MapDataType.createByReflection(Object arg) |
protected FieldValue |
StructuredDataType.createByReflection(Object arg) |
protected FieldValue |
CollectionDataType.createByReflection(Object arg) |
protected FieldValue |
DataType.createByReflection(Object arg)
Creates a field value by reflection
|
FieldValue |
TemporaryDataType.createFieldValue() |
FieldValue |
TensorDataType.createFieldValue() |
FieldValue |
PrimitiveDataType.createFieldValue() |
abstract FieldValue |
DataType.createFieldValue()
Creates a new, empty FieldValue of this type
|
FieldValue |
StructDataType.createFieldValue(Object o) |
FieldValue |
DataType.createFieldValue(Object arg)
Creates a new FieldValue of this type, with the given value.
|
FieldValue |
Document.getFieldValue(Field field) |
FieldValue |
ExtendedStringField.getFieldValue(StructuredFieldValue doc) |
FieldValue |
ExtendedField.getFieldValue(StructuredFieldValue doc) |
FieldValue |
FieldPathEntry.getLookupKey() |
FieldValue |
Document.removeFieldValue(Field field) |
FieldValue |
ExtendedStringField.setFieldValue(StructuredFieldValue doc,
FieldValue fv) |
FieldValue |
ExtendedField.setFieldValue(StructuredFieldValue doc,
FieldValue fv) |
private static FieldValue |
SimpleDocument.wrapValue(DataType type,
Object val) |
Modifier and Type | Method and Description |
---|---|
Class<? extends FieldValue> |
PrimitiveDataType.getValueClass() |
Iterator<Map.Entry<Field,FieldValue>> |
Document.iterator() |
Modifier and Type | Method and Description |
---|---|
int |
Document.compareTo(FieldValue fieldValue) |
protected void |
Document.doSetFieldValue(Field field,
FieldValue value) |
static IntegerFieldValue |
PositionDataType.getXValue(FieldValue pos) |
static IntegerFieldValue |
PositionDataType.getYValue(FieldValue pos) |
boolean |
MapDataType.isValueCompatible(FieldValue value) |
boolean |
ReferenceDataType.isValueCompatible(FieldValue value) |
boolean |
StructDataType.isValueCompatible(FieldValue value) |
boolean |
TemporaryDataType.isValueCompatible(FieldValue value) |
boolean |
TensorDataType.isValueCompatible(FieldValue value) |
boolean |
PrimitiveDataType.isValueCompatible(FieldValue value) |
boolean |
DocumentType.isValueCompatible(FieldValue value) |
boolean |
CollectionDataType.isValueCompatible(FieldValue value) |
abstract boolean |
DataType.isValueCompatible(FieldValue value) |
static FieldPathEntry |
FieldPathEntry.newMapLookupEntry(FieldValue lookupKey,
DataType resultingDataType)
Creates a new field path entry that references a map or weighted set.
|
FieldValue |
ExtendedStringField.setFieldValue(StructuredFieldValue doc,
FieldValue fv) |
FieldValue |
ExtendedField.setFieldValue(StructuredFieldValue doc,
FieldValue fv) |
private static Object |
SimpleDocument.unwrapValue(FieldValue val) |
Constructor and Description |
---|
FieldPathEntry(FieldValue lookupKey,
DataType resultingDataType) |
Constructor and Description |
---|
PrimitiveDataType(String name,
int code,
Class<? extends FieldValue> valueClass,
PrimitiveDataType.Factory factory)
Creates a datatype
|
Modifier and Type | Class and Description |
---|---|
class |
AnnotationReference
A FieldValue which holds a reference to an annotation of a specified type.
|
Modifier and Type | Field and Description |
---|---|
private FieldValue |
Annotation.value |
Modifier and Type | Method and Description |
---|---|
FieldValue |
AnnotationReferenceDataType.createFieldValue() |
FieldValue |
Annotation.getFieldValue()
Returns the value of the annotation, if any.
|
Modifier and Type | Method and Description |
---|---|
SpanNode |
SpanNode.annotate(AnnotationType type,
FieldValue value)
Convenience method for adding an annotation to this span, same as
getSpanTree(). |
SpanTree |
SpanTree.annotate(SpanNode node,
AnnotationType type,
FieldValue value)
Adds an Annotation.
|
int |
AnnotationReference.compareTo(FieldValue fieldValue) |
boolean |
AnnotationReferenceDataType.isValueCompatible(FieldValue value) |
private boolean |
SpanTree.removeObsoleteReferencesFromFieldValue(FieldValue value,
Map<Annotation,Annotation> selectedAnnotations,
boolean removeIfPresent) |
private void |
SpanTree.setCorrectAnnotationReference(FieldValue value,
IdentityHashMap<Annotation,Integer> originalAnnotations,
List<Annotation> newAnnotations) |
void |
Annotation.setFieldValue(FieldValue fieldValue)
Sets the value of the annotation.
|
Constructor and Description |
---|
Annotation(AnnotationType type,
FieldValue value)
Constructs a new annotation of the specified type, and having the specified value.
|
Modifier and Type | Class and Description |
---|---|
class |
Array<T extends FieldValue>
FieldValue which encapsulates a Array value
|
class |
CollectionFieldValue<T extends FieldValue>
Date: Apr 16, 2008
|
class |
MapFieldValue<K extends FieldValue,V extends FieldValue>
Vespa map.
|
class |
MapFieldValue<K extends FieldValue,V extends FieldValue>
Vespa map.
|
class |
WeightedSet<K extends FieldValue>
A weighted set, a unique set of keys with an associated integer weight.
|
Modifier and Type | Class and Description |
---|---|
class |
Array<T extends FieldValue>
FieldValue which encapsulates a Array value
|
class |
ByteFieldValue
FieldValue which encapsulates a byte.
|
class |
CollectionFieldValue<T extends FieldValue>
Date: Apr 16, 2008
|
class |
CompositeFieldValue |
class |
DoubleFieldValue
FieldValue which encapsulates a double.
|
class |
FloatFieldValue
FieldValue which encapsulates a float.
|
class |
IntegerFieldValue
FieldValue which encapsulates an int.
|
class |
LongFieldValue
FieldValue which encapsulates a long.
|
class |
MapFieldValue<K extends FieldValue,V extends FieldValue>
Vespa map.
|
class |
NumericFieldValue |
class |
PredicateFieldValue |
class |
Raw
FieldValue which encapsulates a Raw value
|
class |
ReferenceFieldValue
A reference field value allows search queries to access fields in other document instances
as if they were fields natively stored within the searched document.
|
class |
StringFieldValue
A StringFieldValue is a wrapper class that holds a String in
Document s and
other FieldValue s. |
class |
Struct
Date: Apr 15, 2008
|
class |
StructuredFieldValue |
class |
TensorFieldValue
Field value class that wraps a tensor.
|
class |
UriFieldValue
Created with IntelliJ IDEA.
|
class |
WeightedSet<K extends FieldValue>
A weighted set, a unique set of keys with an associated integer weight.
|
(package private) class |
WeightedSet.WeightedSetWrapper
Weighted set MapFieldValue, backed by map of native Java types.
|
Modifier and Type | Field and Description |
---|---|
private FieldValue |
FieldPathIteratorHandler.IndexValue.key |
(package private) FieldValue |
FieldValue.RecursiveIteratorHandler.retVal |
Modifier and Type | Field and Description |
---|---|
private com.yahoo.collections.Hashlet<Integer,FieldValue> |
Struct.values |
Modifier and Type | Method and Description |
---|---|
FieldValue |
FieldValue.clone() |
FieldValue |
DoubleFieldValue.Factory.create() |
FieldValue |
LongFieldValue.Factory.create() |
FieldValue |
StringFieldValue.Factory.create() |
FieldValue |
IntegerFieldValue.Factory.create() |
FieldValue |
UriFieldValue.Factory.create() |
FieldValue |
FloatFieldValue.Factory.create() |
FieldValue |
ByteFieldValue.Factory.create() |
FieldValue |
Raw.Factory.create() |
static FieldValue |
FieldValue.create(FieldReader reader,
DataType type) |
protected FieldValue |
CollectionFieldValue.createFieldValue(Object o)
Utility function to wrap primitives.
|
FieldValue |
Struct.getFieldValue(Field field) |
abstract FieldValue |
StructuredFieldValue.getFieldValue(Field field)
Returns the value of the given field.
|
FieldValue |
Array.getFieldValue(int index) |
FieldValue |
StructuredFieldValue.getFieldValue(String fieldName)
Convenience method to return the value of a named field.
|
FieldValue |
FieldPathIteratorHandler.IndexValue.getKey() |
FieldValue |
FieldValue.getRecursiveValue(FieldPath path) |
FieldValue |
FieldValue.getRecursiveValue(String path)
Using the given field path, digs through the document and returns the matching field value.
|
FieldValue |
Struct.FieldEntry.getValue() |
FieldValue |
Struct.removeFieldValue(Field field) |
abstract FieldValue |
StructuredFieldValue.removeFieldValue(Field field)
Removes and returns a field value.
|
FieldValue |
StructuredFieldValue.removeFieldValue(String fieldName)
Convenience method to remove the value of a named field.
|
FieldValue |
StructuredFieldValue.setFieldValue(Field field,
Byte value) |
FieldValue |
StructuredFieldValue.setFieldValue(Field field,
Double value) |
FieldValue |
StructuredFieldValue.setFieldValue(Field field,
FieldValue value)
Sets the value of the given field.
|
FieldValue |
StructuredFieldValue.setFieldValue(Field field,
Integer value) |
FieldValue |
StructuredFieldValue.setFieldValue(Field field,
Long value) |
FieldValue |
StructuredFieldValue.setFieldValue(Field field,
String value) |
FieldValue |
StructuredFieldValue.setFieldValue(String field,
Byte value) |
FieldValue |
StructuredFieldValue.setFieldValue(String field,
Double value) |
FieldValue |
StructuredFieldValue.setFieldValue(String fieldName,
FieldValue value)
Convenience method to set the value of a named field.
|
FieldValue |
StructuredFieldValue.setFieldValue(String field,
Integer value) |
FieldValue |
StructuredFieldValue.setFieldValue(String field,
Long value) |
FieldValue |
StructuredFieldValue.setFieldValue(String field,
String value) |
FieldValue |
Struct.FieldEntry.setValue(FieldValue value) |
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<Field,FieldValue>> |
Struct.getFields() |
Iterator<Map.Entry<Field,FieldValue>> |
Struct.iterator() |
Iterator<Map.Entry<Field,FieldValue>> |
Struct.FieldSet.iterator() |
abstract Iterator<Map.Entry<Field,FieldValue>> |
StructuredFieldValue.iterator() |
Map.Entry<Field,FieldValue> |
Struct.FieldSetIterator.next() |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
MapFieldValue.checkAndRemove(FieldValue key,
FieldPathIteratorHandler.ModificationStatus status,
boolean wasModified,
List<FieldValue> keysToRemove) |
int |
DoubleFieldValue.compareTo(FieldValue fieldValue) |
int |
LongFieldValue.compareTo(FieldValue fieldValue) |
int |
StringFieldValue.compareTo(FieldValue fieldValue) |
int |
Struct.compareTo(FieldValue obj) |
int |
IntegerFieldValue.compareTo(FieldValue fieldValue) |
int |
FieldValue.compareTo(FieldValue fieldValue) |
int |
WeightedSet.compareTo(FieldValue fieldValue) |
int |
Array.compareTo(FieldValue fieldValue) |
int |
FloatFieldValue.compareTo(FieldValue fieldValue) |
int |
ByteFieldValue.compareTo(FieldValue fieldValue) |
int |
MapFieldValue.compareTo(FieldValue fieldValue) |
FieldPathIteratorHandler.ModificationStatus |
FieldPathIteratorHandler.doModify(FieldValue fv) |
protected void |
Struct.doSetFieldValue(Field field,
FieldValue value) |
protected abstract void |
StructuredFieldValue.doSetFieldValue(Field field,
FieldValue value) |
static <T> T |
Struct.getFieldValue(FieldValue struct,
DataType structType,
Field field,
Class<T> fieldType) |
static <T> T |
Struct.getFieldValue(FieldValue struct,
DataType structType,
String fieldName,
Class<T> fieldType) |
(package private) FieldPathIteratorHandler.ModificationStatus |
MapFieldValue.iterateNested(FieldPath fieldPath,
int pos,
FieldPathIteratorHandler handler,
FieldValue complexFieldValue) |
FieldPathIteratorHandler.ModificationStatus |
FieldPathIteratorHandler.modify(FieldValue fv) |
boolean |
FieldValue.RecursiveIteratorHandler.onComplex(FieldValue fv) |
boolean |
FieldPathIteratorHandler.onComplex(FieldValue fv) |
void |
FieldValue.RecursiveIteratorHandler.onPrimitive(FieldValue fv) |
void |
FieldPathIteratorHandler.onPrimitive(FieldValue fv) |
IntegerFieldValue |
WeightedSet.WeightedSetWrapper.put(FieldValue key,
IntegerFieldValue value) |
boolean |
WeightedSet.removeValue(FieldValue o) |
boolean |
Array.removeValue(FieldValue o) |
abstract boolean |
CollectionFieldValue.removeValue(FieldValue o) |
protected boolean |
CollectionFieldValue.removeValue(FieldValue o,
Collection collection) |
FieldValue |
StructuredFieldValue.setFieldValue(Field field,
FieldValue value)
Sets the value of the given field.
|
FieldValue |
StructuredFieldValue.setFieldValue(String fieldName,
FieldValue value)
Convenience method to set the value of a named field.
|
FieldValue |
Struct.FieldEntry.setValue(FieldValue value) |
private void |
MapFieldValue.validateCompatibleTypes(DataType d,
FieldValue v) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
MapFieldValue.checkAndRemove(FieldValue key,
FieldPathIteratorHandler.ModificationStatus status,
boolean wasModified,
List<FieldValue> keysToRemove) |
Constructor and Description |
---|
IndexValue(FieldValue key) |
Modifier and Type | Field and Description |
---|---|
(package private) FieldValue |
AssignFieldPathUpdate.fieldValue |
(package private) FieldValue |
AssignFieldPathUpdate.SimpleAssignIteratorHandler.newValue |
Modifier and Type | Method and Description |
---|---|
FieldValue |
AssignFieldPathUpdate.getFieldValue() |
FieldValue |
AssignFieldPathUpdate.getNewValue() |
Modifier and Type | Method and Description |
---|---|
FieldPathIteratorHandler.ModificationStatus |
AddFieldPathUpdate.IteratorHandler.doModify(FieldValue fv) |
FieldPathIteratorHandler.ModificationStatus |
AssignFieldPathUpdate.SimpleAssignIteratorHandler.doModify(FieldValue fv) |
FieldPathIteratorHandler.ModificationStatus |
AssignFieldPathUpdate.MathAssignIteratorHandler.doModify(FieldValue fv) |
FieldPathIteratorHandler.ModificationStatus |
RemoveFieldPathUpdate.IteratorHandler.doModify(FieldValue fv) |
boolean |
AddFieldPathUpdate.IteratorHandler.onComplex(FieldValue fv) |
boolean |
AssignFieldPathUpdate.SimpleAssignIteratorHandler.onComplex(FieldValue fv) |
boolean |
AssignFieldPathUpdate.MathAssignIteratorHandler.onComplex(FieldValue fv) |
boolean |
RemoveFieldPathUpdate.IteratorHandler.onComplex(FieldValue fv) |
void |
AssignFieldPathUpdate.setNewValue(FieldValue value)
Turns this assignment into a literal one.
|
Constructor and Description |
---|
AssignFieldPathUpdate(DocumentType type,
String fieldPath,
FieldValue newValue) |
AssignFieldPathUpdate(DocumentType type,
String fieldPath,
String whereClause,
FieldValue newValue)
Creates an assignment update that overwrites the old value with the given new value.
|
SimpleAssignIteratorHandler(FieldValue newValue,
boolean removeIfZero,
boolean createMissingPath) |
Modifier and Type | Method and Description |
---|---|
void |
AttributeNode.IteratorHandler.onPrimitive(FieldValue fv) |
Modifier and Type | Method and Description |
---|---|
static <K extends FieldValue,V extends FieldValue> |
XmlSerializationHelper.printMapXml(MapFieldValue<K,V> map,
XmlStream xml) |
static <K extends FieldValue,V extends FieldValue> |
XmlSerializationHelper.printMapXml(MapFieldValue<K,V> map,
XmlStream xml) |
<T extends FieldValue> |
VespaDocumentDeserializer42.read(com.yahoo.vespa.objects.FieldBase field,
Array<T> array)
Deprecated.
|
<T extends FieldValue> |
FieldReader.read(com.yahoo.vespa.objects.FieldBase field,
Array<T> value)
Read in the value of array field
|
<T extends FieldValue> |
VespaDocumentDeserializer42.read(com.yahoo.vespa.objects.FieldBase field,
CollectionFieldValue<T> value)
Deprecated.
|
<T extends FieldValue> |
FieldReader.read(com.yahoo.vespa.objects.FieldBase field,
CollectionFieldValue<T> value)
Read in the value of collection field
|
<K extends FieldValue,V extends FieldValue> |
VespaDocumentDeserializer42.read(com.yahoo.vespa.objects.FieldBase field,
MapFieldValue<K,V> map)
Deprecated.
|
<K extends FieldValue,V extends FieldValue> |
VespaDocumentDeserializer42.read(com.yahoo.vespa.objects.FieldBase field,
MapFieldValue<K,V> map)
Deprecated.
|
<K extends FieldValue,V extends FieldValue> |
FieldReader.read(com.yahoo.vespa.objects.FieldBase field,
MapFieldValue<K,V> map)
Read the value of a map field
|
<K extends FieldValue,V extends FieldValue> |
FieldReader.read(com.yahoo.vespa.objects.FieldBase field,
MapFieldValue<K,V> map)
Read the value of a map field
|
<T extends FieldValue> |
VespaDocumentDeserializer42.read(com.yahoo.vespa.objects.FieldBase field,
WeightedSet<T> ws)
Deprecated.
|
<T extends FieldValue> |
FieldReader.read(com.yahoo.vespa.objects.FieldBase field,
WeightedSet<T> value)
Read in the value of weighted set field
|
<T extends FieldValue> |
XmlDocumentWriter.write(com.yahoo.vespa.objects.FieldBase field,
Array<T> value) |
<T extends FieldValue> |
FieldWriter.write(com.yahoo.vespa.objects.FieldBase field,
Array<T> value)
Write out the value of array field
|
<T extends FieldValue> |
VespaDocumentSerializer42.write(com.yahoo.vespa.objects.FieldBase field,
Array<T> array)
Deprecated.
Write out the value of array field
|
<T extends FieldValue> |
XmlDocumentWriter.write(com.yahoo.vespa.objects.FieldBase field,
CollectionFieldValue<T> value) |
<T extends FieldValue> |
FieldWriter.write(com.yahoo.vespa.objects.FieldBase field,
CollectionFieldValue<T> value)
Write out the value of collection field
|
<T extends FieldValue> |
VespaDocumentSerializer42.write(com.yahoo.vespa.objects.FieldBase field,
CollectionFieldValue<T> value)
Deprecated.
Write out the value of collection field
|
<K extends FieldValue,V extends FieldValue> |
XmlDocumentWriter.write(com.yahoo.vespa.objects.FieldBase field,
MapFieldValue<K,V> map) |
<K extends FieldValue,V extends FieldValue> |
XmlDocumentWriter.write(com.yahoo.vespa.objects.FieldBase field,
MapFieldValue<K,V> map) |
<K extends FieldValue,V extends FieldValue> |
FieldWriter.write(com.yahoo.vespa.objects.FieldBase field,
MapFieldValue<K,V> map)
Write the value of a map field
|
<K extends FieldValue,V extends FieldValue> |
FieldWriter.write(com.yahoo.vespa.objects.FieldBase field,
MapFieldValue<K,V> map)
Write the value of a map field
|
<K extends FieldValue,V extends FieldValue> |
VespaDocumentSerializer42.write(com.yahoo.vespa.objects.FieldBase field,
MapFieldValue<K,V> map)
Deprecated.
|
<K extends FieldValue,V extends FieldValue> |
VespaDocumentSerializer42.write(com.yahoo.vespa.objects.FieldBase field,
MapFieldValue<K,V> map)
Deprecated.
|
<T extends FieldValue> |
XmlDocumentWriter.write(com.yahoo.vespa.objects.FieldBase field,
WeightedSet<T> value) |
<T extends FieldValue> |
FieldWriter.write(com.yahoo.vespa.objects.FieldBase field,
WeightedSet<T> value)
Write out the value of weighted set field
|
<T extends FieldValue> |
VespaDocumentSerializer42.write(com.yahoo.vespa.objects.FieldBase field,
WeightedSet<T> ws)
Deprecated.
Write out the value of weighted set field
|
Modifier and Type | Method and Description |
---|---|
void |
VespaDocumentDeserializer42.read(com.yahoo.vespa.objects.FieldBase field,
FieldValue value)
Deprecated.
|
void |
FieldReader.read(com.yahoo.vespa.objects.FieldBase field,
FieldValue value)
Read in the value of field
|
private void |
XmlDocumentWriter.singleValueTag(com.yahoo.vespa.objects.FieldBase field,
FieldValue value) |
void |
XmlDocumentWriter.write(com.yahoo.vespa.objects.FieldBase field,
FieldValue value) |
void |
FieldWriter.write(com.yahoo.vespa.objects.FieldBase field,
FieldValue value)
Write out the value of field
|
void |
VespaDocumentSerializer42.write(com.yahoo.vespa.objects.FieldBase field,
FieldValue value)
Deprecated.
Write out the value of field
|
Modifier and Type | Class and Description |
---|---|
class |
ValueUpdate<T extends FieldValue>
A value update represents some action to perform to a value.
|
Modifier and Type | Field and Description |
---|---|
protected FieldValue |
AddValueUpdate.value |
protected FieldValue |
AssignValueUpdate.value |
protected FieldValue |
RemoveValueUpdate.value |
protected FieldValue |
MapValueUpdate.value |
Modifier and Type | Method and Description |
---|---|
FieldValue |
AddValueUpdate.applyTo(FieldValue val) |
FieldValue |
ArithmeticValueUpdate.applyTo(FieldValue oldValue) |
FieldValue |
AssignValueUpdate.applyTo(FieldValue fval) |
abstract FieldValue |
ValueUpdate.applyTo(FieldValue oldValue) |
FieldValue |
ClearValueUpdate.applyTo(FieldValue fval) |
FieldValue |
RemoveValueUpdate.applyTo(FieldValue fval) |
FieldValue |
MapValueUpdate.applyTo(FieldValue fval) |
FieldValue |
AddValueUpdate.getValue()
Returns the value of this value update.
|
FieldValue |
AssignValueUpdate.getValue()
Returns the value of this value update.
|
FieldValue |
ClearValueUpdate.getValue() |
FieldValue |
RemoveValueUpdate.getValue()
Sets the key this should remove
|
FieldValue |
MapValueUpdate.getValue()
Returns the key of the nested update
|
Modifier and Type | Method and Description |
---|---|
FieldValue |
AddValueUpdate.applyTo(FieldValue val) |
FieldValue |
ArithmeticValueUpdate.applyTo(FieldValue oldValue) |
FieldValue |
AssignValueUpdate.applyTo(FieldValue fval) |
abstract FieldValue |
ValueUpdate.applyTo(FieldValue oldValue) |
FieldValue |
ClearValueUpdate.applyTo(FieldValue fval) |
FieldValue |
RemoveValueUpdate.applyTo(FieldValue fval) |
FieldValue |
MapValueUpdate.applyTo(FieldValue fval) |
static FieldUpdate |
FieldUpdate.createAdd(Field field,
FieldValue value)
Creates a new field update, with one encapsulated value update
specifying an addition of a value to an array or a key to a weighted set (with default weight 1).
|
static FieldUpdate |
FieldUpdate.createAdd(Field field,
FieldValue key,
Integer weight)
Creates a new field update, with one encapsulated value update
specifying an addition of a key (with a specified weight) to a weighted set.
|
static ValueUpdate |
ValueUpdate.createAdd(FieldValue value)
Creates a new value update specifying an addition of a value to an array or a key to a weighted set (with default weight 1).
|
static ValueUpdate |
ValueUpdate.createAdd(FieldValue key,
Integer weight)
Creates a new value update specifying an addition of a key (with a specified weight) to a weighted set.
|
static FieldUpdate |
FieldUpdate.createAssign(Field field,
FieldValue newValue)
Creates a new field update, with one encapsulated value update,
that assigns a new value, completely overwriting the previous value.
|
static ValueUpdate |
ValueUpdate.createAssign(FieldValue newValue)
Creates a new value update that assigns a new value, completely overwriting
the previous value.
|
static FieldUpdate |
FieldUpdate.createDecrement(Field field,
FieldValue key,
Number decrement)
Creates a new field update, with one encapsulated value update that decrements a weight in a weighted set.
|
static ValueUpdate |
ValueUpdate.createDecrement(FieldValue key,
Number decrement)
Creates a new value update that decrements a weight in a weighted set.
|
static FieldUpdate |
FieldUpdate.createDivide(Field field,
FieldValue key,
Number divisor)
Creates a new field update, with one encapsulated value update that divides a weight in a weighted set.
|
static ValueUpdate |
ValueUpdate.createDivide(FieldValue key,
Number divisor)
Creates a new value update that divides a weight in a weighted set.
|
static FieldUpdate |
FieldUpdate.createIncrement(Field field,
FieldValue key,
Number increment)
Creates a new field update, with one encapsulated value update that increments a weight in a weighted set.
|
static ValueUpdate |
ValueUpdate.createIncrement(FieldValue key,
Number increment)
Creates a new value update that increments a weight in a weighted set.
|
static FieldUpdate |
FieldUpdate.createMap(Field field,
FieldValue value,
ValueUpdate update)
Creates a new field update, with one encapsulated value update, which
is able to map an update to a value to a subvalue in an array or a
weighted set.
|
static ValueUpdate |
ValueUpdate.createMap(FieldValue value,
ValueUpdate update)
Creates a map value update, which is able to map an update to a value to a subvalue in an array or a
weighted set.
|
static FieldUpdate |
FieldUpdate.createMultiply(Field field,
FieldValue key,
Number factor)
Creates a new field update, with one encapsulated value update that multiplies a weight in a weighted set.
|
static ValueUpdate |
ValueUpdate.createMultiply(FieldValue key,
Number factor)
Creates a new value update that multiplies a weight in a weighted set.
|
static FieldUpdate |
FieldUpdate.createRemove(Field field,
FieldValue value)
Creates a new field update, with one encapsulated value update,
specifying the removal of a value from an array or a key/weight from a weighted set.
|
static ValueUpdate |
ValueUpdate.createRemove(FieldValue value)
Creates a new value update specifying the removal of a value from an array or a key/weight from a weighted set.
|
void |
AddValueUpdate.setValue(FieldValue value) |
void |
AssignValueUpdate.setValue(FieldValue value)
Sets the value to assign.
|
void |
ClearValueUpdate.setValue(FieldValue value) |
void |
RemoveValueUpdate.setValue(FieldValue value) |
void |
MapValueUpdate.setValue(FieldValue value)
Sets the key of the nested update
|
private void |
AddValueUpdate.setValue(FieldValue key,
int weight) |
Modifier and Type | Method and Description |
---|---|
static FieldUpdate |
FieldUpdate.createAddAll(Field field,
List<? extends FieldValue> values)
Creates a new field update, with encapsulated value updates,
specifying an addition of all values in a given list to an array.
|
static FieldUpdate |
FieldUpdate.createAddAll(Field field,
WeightedSet<? extends FieldValue> set)
Creates a new field update, with encapsulated value updates,
specifying an addition of all key/weight pairs in a weighted set to a weighted set.
|
static List<ValueUpdate> |
ValueUpdate.createAddAll(List<? extends FieldValue> values)
Creates a new value update
specifying an addition of all values in a given list to an array.
|
static List<ValueUpdate> |
ValueUpdate.createAddAll(WeightedSet<? extends FieldValue> set)
Creates a new value update
specifying an addition of all key/weight pairs in a weighted set to a weighted set.
|
static FieldUpdate |
FieldUpdate.createRemoveAll(Field field,
List<? extends FieldValue> values)
Creates a new field update, with encapsulated value updates,
specifying the removal of all values in a given list from an array or weighted set.
|
static FieldUpdate |
FieldUpdate.createRemoveAll(Field field,
WeightedSet<? extends FieldValue> values)
Creates a new field update, with encapsulated value updates,
specifying the removal of all values in a given list from an array or weighted set.
|
static List<ValueUpdate> |
ValueUpdate.createRemoveAll(List<? extends FieldValue> values)
Creates a new value update
specifying the removal of all values in a given list from an array or weighted set.
|
static List<ValueUpdate> |
ValueUpdate.createRemoveAll(WeightedSet<? extends FieldValue> values)
Creates a new value update
specifying the removal of all values in a given list from an array or weighted set.
|
Constructor and Description |
---|
AddValueUpdate(FieldValue value) |
AddValueUpdate(FieldValue key,
int weight) |
AssignValueUpdate(FieldValue value) |
MapValueUpdate(FieldValue value,
ValueUpdate update) |
RemoveValueUpdate(FieldValue value) |
Copyright © 2017. All rights reserved.