Package org.rumbledb.types
Class UnionItemType
java.lang.Object
org.rumbledb.types.UnionItemType
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable,Serializable,ItemType
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests for itemType equality.getName()getTypes()intbooleanhasName()Tests for QName.booleanisCompatibleWithDataFrames(RumbleRuntimeConfiguration configuration) Checks compatibility with DataFrames.booleanbooleanbooleanbooleanvoidread(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input) voidresolve(DynamicContext context, ExceptionMetadata metadata) voidresolve(StaticContext context, ExceptionMetadata metadata) toString()voidwrite(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output) Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.rumbledb.types.ItemType
canBePromotedTo, findLeastCommonSuperTypeWith, getArrayContentFacet, getClosedFacet, getConstraintsFacet, getEnumerationFacet, getExplicitTimezoneFacet, getFractionDigitsFacet, getLengthFacet, getMaxExclusiveFacet, getMaxInclusiveFacet, getMaxLengthFacet, getMinExclusiveFacet, getMinInclusiveFacet, getMinLengthFacet, getObjectContentFacet, getSignature, getSparkSQLType, getTotalDigitsFacet, isArrayItemType, isAtomicItemType, isEqualTo, isFunctionItemType, isJsonItemType, isNumeric, isObjectItemType, isStaticallyCastableAs, isSubtypeOf, isTopmostItemType
-
Method Details
-
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
-
equals
Description copied from interface:ItemTypeTests for itemType equality. -
isUnionType
public boolean isUnionType()- Specified by:
isUnionTypein interfaceItemType
-
hasName
public boolean hasName()Description copied from interface:ItemTypeTests for QName. -
getName
-
getTypeTreeDepth
public int getTypeTreeDepth()- Specified by:
getTypeTreeDepthin interfaceItemType- Returns:
- an int representing the depth of the item type in the type tree ('item' is the root with depth 0)
-
getBaseType
- Specified by:
getBaseTypein interfaceItemType- Returns:
- the base type for a type, return null for the topmost item type
-
isUserDefined
public boolean isUserDefined()- Specified by:
isUserDefinedin interfaceItemType- Returns:
- [true] if it is a user-defined type, false otherwise
-
isPrimitive
public boolean isPrimitive()- Specified by:
isPrimitivein interfaceItemType- Returns:
- [true] if it is a primitive type
-
getPrimitiveType
- Specified by:
getPrimitiveTypein interfaceItemType- Returns:
- the primitive type for a derived type, throw an error for primitive types
-
getAllowedFacets
- Specified by:
getAllowedFacetsin interfaceItemType- Returns:
- a set containing the allowed facets for restricting the type
-
getTypes
-
getIdentifierString
- Specified by:
getIdentifierStringin interfaceItemType- Returns:
- a String that uniquely identify an item type
-
toString
-
isResolved
public boolean isResolved()- Specified by:
isResolvedin interfaceItemType
-
resolve
-
resolve
-
isCompatibleWithDataFrames
Description copied from interface:ItemTypeChecks compatibility with DataFrames.- Specified by:
isCompatibleWithDataFramesin interfaceItemType- Returns:
- true if compatible with DataFrames and false otherwise.
-