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 TypeMethodDescriptionbooleanTests for logical equality.Returns the dynamic type of the item (only for error message purposes).booleanReturns 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.inthashCode()Computes a hash code.booleanisObject()Tests whether the item is an object.voidputItemByKey(String s, Item value) Adds a key-value pair, if it is an object item.voidputLazyItemByKey(String s, RuntimeIterator iterator, DynamicContext context, boolean isArray) Adds a key-value pair, if it is an object item.voidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidwrite(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, waitMethods 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:ItemTests for logical equality. The semantics are that of the eq operator. -
getKeys
Description copied from interface:ItemReturns the keys of the item, if it is an object. -
getValues
Description copied from interface:ItemReturns the values of the item, if it is an object. -
getItemByKey
Description copied from interface:ItemReturns the value associated with a specific key, if it is an object.- Specified by:
getItemByKeyin interfaceItem- Parameters:
s- a key.- Returns:
- the value associated with key.
-
putItemByKey
Description copied from interface:ItemAdds a key-value pair, if it is an object item.- Specified by:
putItemByKeyin interfaceItem- Parameters:
s- a key.value- a value.
-
putLazyItemByKey
public void putLazyItemByKey(String s, RuntimeIterator iterator, DynamicContext context, boolean isArray) Description copied from interface:ItemAdds a key-value pair, if it is an object item. The value is lazily computed.- Specified by:
putLazyItemByKeyin 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:ItemTests whether the item is an object. -
write
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) - Specified by:
writein interfacecom.esotericsoftware.kryo.KryoSerializable
-
read
public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) - Specified by:
readin interfacecom.esotericsoftware.kryo.KryoSerializable
-
hashCode
public int hashCode()Description copied from interface:ItemComputes a hash code. -
getDynamicType
Description copied from interface:ItemReturns the dynamic type of the item (only for error message purposes).- Specified by:
getDynamicTypein interfaceItem- Returns:
- the dynamic type as an item type.
-
getEffectiveBooleanValue
public boolean getEffectiveBooleanValue()Description copied from interface:ItemReturns the effective boolean value of the item, if atomic.- Specified by:
getEffectiveBooleanValuein interfaceItem- Returns:
- the effective boolean value.
-