Package com.yahoo.data.access.helpers
Class MatchFeatureData.HitValue
java.lang.Object
com.yahoo.data.access.simple.Value
com.yahoo.data.access.helpers.MatchFeatureData.HitValue
- All Implemented Interfaces:
Inspectable
,Inspector
- Enclosing class:
- MatchFeatureData
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.data.access.simple.Value
Value.ArrayValue, Value.BoolValue, Value.DataValue, Value.DoubleValue, Value.EmptyValue, Value.LongValue, Value.ObjectValue, Value.StringValue
-
Method Summary
Modifier and TypeMethodDescriptionAccess an field in an object.int
Get the number of fields in an OBJECT (always returns 0 for non-objects)fields()
Convert an object to an iterable list of (name, value) pairs.void
set
(int index, byte[] data) void
set
(int index, double value) void
Traverse an object value, performing callbacks for each field.type()
Get the type of an inspectorboolean
valid()
Check if the inspector is valid.
-
Method Details
-
type
Description copied from interface:Inspector
Get the type of an inspector -
valid
public boolean valid()Description copied from interface:Inspector
Check if the inspector is valid. If you try to access a field or array entry that does not exist, you will get an invalid Inspector returned. -
fieldCount
public int fieldCount()Description copied from interface:Inspector
Get the number of fields in an OBJECT (always returns 0 for non-objects)- Specified by:
fieldCount
in interfaceInspector
- Overrides:
fieldCount
in classValue
-
traverse
Description copied from interface:Inspector
Traverse an object value, performing callbacks for each field. If the current Inspector is connected to an object value, perform callbacks to the given traverser for each field contained in the object. Otherwise a no-op. -
field
Description copied from interface:Inspector
Access an field in an object. If the current Inspector doesn't connect to an object value, or the object value does not contain a field with the given symbol name, the returned Inspector will be invalid. -
fields
Description copied from interface:Inspector
Convert an object to an iterable list of (name, value) pairs. Other types will just return an empty list. -
set
public void set(int index, byte[] data) -
set
public void set(int index, double value) -
subsetFilter
-