Package org.rumbledb.items
Class LazyObjectItem
java.lang.Object
org.rumbledb.items.LazyObjectItem
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
,Serializable
,Item
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests for logical equality.Returns the dynamic type of the item (only for error message purposes).boolean
Returns the effective boolean value of the item, if atomic.Returns the value associated with a specific key, if it is an object.getKeys()
Returns the keys of the item, if it is an object.Returns the values of the item, if it is an object.int
hashCode()
Computes a hash code.boolean
isObject()
Tests whether the item is an object.void
putItemByKey
(String s, Item value) Adds a key-value pair, if it is an object item.void
putLazyItemByKey
(String s, RuntimeIterator iterator, DynamicContext context, boolean isArray) Adds a key-value pair, if it is an object item.void
read
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) void
write
(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.rumbledb.api.Item
addParentToDescendants, append, atomizedValue, attributes, castToDecimalValue, castToDoubleValue, castToFloatValue, castToIntegerValue, castToIntValue, children, generateNativeQuery, getBinaryValue, getBodyIterator, getBooleanValue, getContent, getDateTimeValue, getDay, getDecimalValue, getDFVariablesInClosure, getDoubleValue, getDurationValue, getEpochMillis, getEstimator, getFloatValue, getHour, getIdentifier, getIntegerValue, getIntValue, getItemAt, getItems, getLocalVariablesInClosure, getMinute, getModuleDynamicContext, getMonth, getMutabilityLevel, getNanosecond, getOffset, getParameterNames, getPathIn, getPeriodValue, getRDDVariablesInClosure, getSecond, getSignature, getSize, getSparkSQLType, getSparkSQLValue, getSparkSQLValue, getStringValue, getTableLocation, getTextValue, getTimeValue, getTopLevelID, getTopLevelOrder, getTransformer, getVariantValue, getXmlDocumentPosition, getYear, hasDateTime, hasTimeZone, isAnyURI, isArray, isAtomic, isAttributeNode, isBase64Binary, isBinary, isBoolean, isDate, isDateTime, isDayTimeDuration, isDecimal, isDocumentNode, isDouble, isDuration, isElementNode, isEstimator, isFloat, isFunction, isGDay, isGMonth, isGMonthDay, isGYear, isGYearMonth, isHexBinary, isInt, isInteger, isNaN, isNode, isNull, isNumeric, isPeriod, isString, isTextNode, isTime, isTransformer, isYearMonthDuration, nodeName, parent, physicalEquals, putItem, putItemAt, putItemsAt, removeItemAt, removeItemByKey, serialize, serializeAsJSON, setMutabilityLevel, setParent, setPathIn, setTableLocation, setTopLevelID, setTopLevelOrder, setXmlDocumentPosition
-
Constructor Details
-
LazyObjectItem
public LazyObjectItem()
-
-
Method Details
-
equals
Description copied from interface:Item
Tests for logical equality. The semantics are that of the eq operator. -
getKeys
Description copied from interface:Item
Returns the keys of the item, if it is an object. -
getValues
Description copied from interface:Item
Returns the values of the item, if it is an object. -
getItemByKey
Description copied from interface:Item
Returns the value associated with a specific key, if it is an object.- Specified by:
getItemByKey
in interfaceItem
- Parameters:
s
- a key.- Returns:
- the value associated with key.
-
putItemByKey
Description copied from interface:Item
Adds a key-value pair, if it is an object item.- Specified by:
putItemByKey
in interfaceItem
- Parameters:
s
- a key.value
- a value.
-
putLazyItemByKey
public void putLazyItemByKey(String s, RuntimeIterator iterator, DynamicContext context, boolean isArray) Description copied from interface:Item
Adds a key-value pair, if it is an object item. The value is lazily computed.- Specified by:
putLazyItemByKey
in interfaceItem
- Parameters:
s
- a key.iterator
- a runtime iterator.context
- a dynamic context.isArray
- whether to always wrap the result in an array.
-
isObject
public boolean isObject()Description copied from interface:Item
Tests whether the item is an object. -
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
write
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
read
in interfacecom.esotericsoftware.kryo.KryoSerializable
-
hashCode
public int hashCode()Description copied from interface:Item
Computes a hash code. -
getDynamicType
Description copied from interface:Item
Returns the dynamic type of the item (only for error message purposes).- Specified by:
getDynamicType
in interfaceItem
- Returns:
- the dynamic type as an item type.
-
getEffectiveBooleanValue
public boolean getEffectiveBooleanValue()Description copied from interface:Item
Returns the effective boolean value of the item, if atomic.- Specified by:
getEffectiveBooleanValue
in interfaceItem
- Returns:
- the effective boolean value.
-