Package com.j_spaces.jdbc.builder
Class UnionTemplatePacket
- All Implemented Interfaces:
RawEntry,ISwapExternalizable,IEntryPacket,ITemplatePacket,ITransportPacket,IMVCCEntryPacket,Textualizable,SmartExternalizable,Externalizable,Serializable,Cloneable
Represents query that is translated to several template packets The result is the union of all
results
- Since:
- 7.0
- Author:
- anna
- See Also:
-
Field Summary
Fields inherited from class com.j_spaces.jdbc.builder.QueryTemplatePacket
_aggregationSet, _allIndexValuesQuery, _dummyNullIndexScanner, _preparedForSpaceFields inherited from class com.j_spaces.core.ExternalTemplatePacket
_extendedMatchCodeColumns, _extendedMatchCodes, _rangeValues, _rangeValuesInclusionFields inherited from class com.j_spaces.core.ExternalEntryPacket
_implClassNameFields inherited from class com.gigaspaces.internal.transport.EntryPacket
_returnOnlyUIDs, _typeNameFields inherited from class com.gigaspaces.internal.transport.AbstractEntryPacket
_entryType, _entryTypeCode, _typeDesc, _typeDescChecksum -
Constructor Summary
ConstructorsConstructorDescriptionUnionTemplatePacket(QueryTableData table, QueryResultTypeInternal queryResultType) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(QueryTemplatePacket packet) and(QueryTemplatePacket template) Merge given templates into one template.and(UnionTemplatePacket template) Merge given templates into one template.buildAndPacket(QueryTemplatePacket packet) buildOrPacket(QueryTemplatePacket packet) booleanMethod to indicate whether this query is complex - false only if the template can be translated to a space query without post processing some space operations don't support complex queriesprotected booleanmatches(IEntryPacket entryPacket) booleanmatches(JoinedEntry joinedEntry) voidprepareForSpace(ITypeDesc typeDesc) Convert the ranges to a single space templatevoidsetPackets(List<QueryTemplatePacket> packets) union(QueryTemplatePacket packet) union(UnionTemplatePacket composite) Methods inherited from class com.j_spaces.jdbc.builder.QueryTemplatePacket
enabledSmartExternalizableWithReference, getAggregationSet, getExplainPlan, getMultipleUids, getProjectionTemplate, getQueryResultType, getRanges, getRoutingFieldValue, intersectRanges, intersectUids, isAllIndexValuesSqlQuery, isAlwaysEmpty, isTransient, prepareForUnion, read, read, readExternal, readFromSwap, readMultiple, readMultiple, setAggregationSet, setAlwaysEmpty, setEntryType, setExplainPlan, setExtendedMatchCode, setExtendedMatchCodeColumns, setMultipleUids, setProjectionTemplate, setQueryResultType, setRangeValue, setRangeValueInclusion, setRouting, take, writeExternal, writeToSwapMethods inherited from class com.j_spaces.core.ExternalTemplatePacket
clone, getExtendedMatchCodeColumns, getExtendedMatchCodes, getRangeValues, getRangeValuesInclusion, isIdQuery, isIdsQuery, isTemplateQuery, supportExtendedMatching, validateMethods inherited from class com.j_spaces.core.ExternalEntryPacket
getExternalEntryImplClassName, getPacketType, toObjectMethods inherited from class com.gigaspaces.internal.transport.EntryPacket
applyMVCCEntryMetadata, getCustomQuery, getDynamicProperties, getFieldValue, getFieldValues, getMultipleUIDs, getMVCCEntryMetadata, getTTL, getTypeName, getUID, getVersion, hasFixedPropertiesArray, isFifo, isMVCCEntryMetadataApplied, isNoWriteLease, isReturnOnlyUids, setCustomQuery, setDynamicProperties, setFieldsValues, setFieldValue, setMultipleUIDs, setReturnOnlyUIDs, setTTL, setUID, setVersionMethods inherited from class com.gigaspaces.internal.transport.AbstractEntryPacket
equals, getCodebase, getEntryType, getID, getIdImpl, getOperationID, getPreviousVersion, getPropertyValue, getTypeDescChecksum, getTypeDescriptor, hashCode, hasPreviousVersion, isExternalizableEntryPacket, isSerializeTypeDesc, readExternalImpl, setOperationID, setPreviousVersion, setPropertyValue, setSerializeTypeDesc, setTypeDesc, supportsTypeDescChecksum, toObject, toObject, toObject, toString, toText, validateStorageType, writeExternalImplMethods inherited from class com.gigaspaces.internal.serialization.AbstractExternalizable
readExternal, writeExternalMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.io.Externalizable
readExternal, writeExternalMethods inherited from interface com.gigaspaces.internal.transport.IEntryPacket
allNullFieldValues, getID, getPreviousVersion, getTTL, hasFixedPropertiesArray, hasPreviousVersion, isExternalizableEntryPacket, isHybrid, setCustomQuery, setPreviousVersion, setTTL, setUIDMethods inherited from interface com.gigaspaces.internal.transport.ITemplatePacket
getTemplateRoutingValue, isBroadcast, isReturnOnlyUids, setDynamicProperties, setReturnOnlyUIDsMethods inherited from interface com.gigaspaces.internal.transport.ITransportPacket
getCodebase, getCustomQuery, getDynamicProperties, getEntryType, getExternalEntryImplClassName, getFieldValue, getFieldValues, getMultipleUIDs, getOperationID, getPacketType, getPropertyValue, getTypeDescChecksum, getTypeDescriptor, getTypeName, getUID, getVersion, isFifo, isNoWriteLease, isSerializeTypeDesc, setFieldsValues, setFieldValue, setMultipleUIDs, setOperationID, setPropertyValue, setSerializeTypeDesc, setTypeDesc, setVersion, supportsTypeDescChecksum, toObject, toObject, toObject, toObject
-
Constructor Details
-
UnionTemplatePacket
public UnionTemplatePacket() -
UnionTemplatePacket
- Parameters:
table-
-
-
Method Details
-
getPackets
- Returns:
- packets list
-
setPackets
- Parameters:
packets- the packets to set
-
add
-
buildOrPacket
- Overrides:
buildOrPacketin classQueryTemplatePacket
-
union
- Overrides:
unionin classQueryTemplatePacket
-
union
- Overrides:
unionin classQueryTemplatePacket
-
isComplex
public boolean isComplex()Description copied from class:QueryTemplatePacketMethod to indicate whether this query is complex - false only if the template can be translated to a space query without post processing some space operations don't support complex queries- Overrides:
isComplexin classQueryTemplatePacket
-
buildAndPacket
- Overrides:
buildAndPacketin classQueryTemplatePacket
-
and
Merge given templates into one template. for example: x=3 and (y=5 or z=8) ==> (x=3 and y=5) or (x=3 and z=8)- Overrides:
andin classQueryTemplatePacket- Returns:
- QueryTemplatePacket
-
and
Merge given templates into one template. for example: (w=3 or x=5) and (y=5 or z=8) ==> (w=3 and (y=5 or z=8)) or (x=5 and (y=5 or z=8)) ==> ((w=3 and y=5) or (w=3 and z=8)) or ((x=5 and y=5) or (x=5 or z=8))- Overrides:
andin classQueryTemplatePacket- Returns:
- QueryTemplatePacket
-
prepareForSpace
Description copied from class:QueryTemplatePacketConvert the ranges to a single space template- Overrides:
prepareForSpacein classQueryTemplatePacket
-
matches
- Overrides:
matchesin classQueryTemplatePacket
-
matches
- Overrides:
matchesin classQueryTemplatePacket
-