Package com.j_spaces.core
Class ExternalTemplatePacket
- All Implemented Interfaces:
RawEntry,ISwapExternalizable,IEntryPacket,ITemplatePacket,ITransportPacket,IMVCCEntryPacket,Textualizable,SmartExternalizable,Externalizable,Serializable,Cloneable
- Direct Known Subclasses:
QueryTemplatePacket
Created by IntelliJ IDEA. User: assafr Date: 05/08/2008 Time: 18:59:02 To change this template
use File | Settings | File Templates.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected short[]protected short[]protected Object[]protected boolean[]Fields 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
ConstructorsConstructorDescriptionExternalTemplatePacket(ITypeDesc typeDesc, EntryType entryType, Object[] values, String uid, int version, long timeToLive, boolean isTransient, ExternalEntry ee) -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a shallow copy of this EntryPacket instance.short[]short[]Object[]boolean[]booleanbooleanbooleanbooleanprotected voidreadExternal(ObjectInput in, PlatformLogicalVersion version) voidvoidsetProjectionTemplate(AbstractProjectionTemplate projectionTemplate) booleanvoidvalidate()protected voidwriteExternal(ObjectOutput out, PlatformLogicalVersion version) voidwriteToSwap(ObjectOutput out) Methods 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, isTransient, 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, isTransient, setFieldsValues, setFieldValue, setMultipleUIDs, setOperationID, setPropertyValue, setSerializeTypeDesc, setTypeDesc, setVersion, supportsTypeDescChecksum, toObject, toObject, toObject, toObjectMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Field Details
-
_extendedMatchCodes
protected short[] _extendedMatchCodes -
_extendedMatchCodeColumns
protected short[] _extendedMatchCodeColumns -
_rangeValues
-
_rangeValuesInclusion
protected boolean[] _rangeValuesInclusion
-
-
Constructor Details
-
ExternalTemplatePacket
public ExternalTemplatePacket() -
ExternalTemplatePacket
public ExternalTemplatePacket(ITypeDesc typeDesc, EntryType entryType, Object[] values, String uid, int version, long timeToLive, boolean isTransient, ExternalEntry ee)
-
-
Method Details
-
getQueryResultType
- Specified by:
getQueryResultTypein interfaceITemplatePacket
-
getRoutingFieldValue
- Specified by:
getRoutingFieldValuein interfaceITransportPacket- Overrides:
getRoutingFieldValuein classAbstractEntryPacket
-
supportExtendedMatching
public boolean supportExtendedMatching()- Specified by:
supportExtendedMatchingin interfaceITemplatePacket
-
getExtendedMatchCodes
public short[] getExtendedMatchCodes()- Specified by:
getExtendedMatchCodesin interfaceITemplatePacket
-
getExtendedMatchCodeColumns
public short[] getExtendedMatchCodeColumns()- Specified by:
getExtendedMatchCodeColumnsin interfaceITemplatePacket
-
getRangeValues
- Specified by:
getRangeValuesin interfaceITemplatePacket
-
getRangeValuesInclusion
public boolean[] getRangeValuesInclusion()- Specified by:
getRangeValuesInclusionin interfaceITemplatePacket
-
clone
Description copied from class:EntryPacketReturns a shallow copy of this EntryPacket instance. And also only clone the values array.- Specified by:
clonein interfaceIEntryPacket- Specified by:
clonein interfaceITemplatePacket- Overrides:
clonein classEntryPacket- Returns:
- a shallow clone of this EntryPacket instance.
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Overrides:
writeToSwapin classExternalEntryPacket- Throws:
IOException
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Overrides:
readFromSwapin classExternalEntryPacket- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Overrides:
writeExternalin classExternalEntryPacket- Throws:
IOException
-
readExternal
protected void readExternal(ObjectInput in, PlatformLogicalVersion version) throws IOException, ClassNotFoundException - Overrides:
readExternalin classExternalEntryPacket- Throws:
IOExceptionClassNotFoundException
-
validate
public void validate()- Specified by:
validatein interfaceITemplatePacket
-
getProjectionTemplate
- Specified by:
getProjectionTemplatein interfaceITemplatePacket
-
setProjectionTemplate
- Specified by:
setProjectionTemplatein interfaceITemplatePacket
-
isIdQuery
public boolean isIdQuery()- Specified by:
isIdQueryin interfaceITemplatePacket
-
isIdsQuery
public boolean isIdsQuery()- Specified by:
isIdsQueryin interfaceITemplatePacket
-
isTemplateQuery
public boolean isTemplateQuery()- Specified by:
isTemplateQueryin interfaceITemplatePacket
-
isAllIndexValuesSqlQuery
public boolean isAllIndexValuesSqlQuery()- Specified by:
isAllIndexValuesSqlQueryin interfaceITemplatePacket
-