Interface ITemplateHolder
- All Superinterfaces:
IEntryHolder, ILockObject, ISpaceItem
- All Known Implementing Classes:
NotifyTemplateHolder, TemplateHolder
- Since:
- 7.0
- Author:
- Niv Ingberg
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancanBeRuledOutByFixedProperties(CacheManager cacheManager) Whether an entry whose fixed properties fail this template's predicates is thereby ruled out, so that a caller can stop atmatchFixedProperties(ServerEntry, int, RegexCache, int)instead of going on to build the entry and callmatch(CacheManager, IEntryHolder, int, String, boolean, Context, RegexCache, int).booleanint[]The fixed properties this template carries a predicate on, so that a caller which has to pay to reach an entry's values knows exactly which ones to fetch.intlonglongshort[]short[]intlonggetID()default LockSubjectTypeString[]intintField level security: the PII access of the user who issued the operation - results sent to the user after the operation waited for a matching entry (or the notifications of a notify template) omit the PII properties the user lacks read privilege for.intbooleangetRangeInclusion(int index) getRangeValue(int index) intintbooleanbooleanbooleanisActiveRead(SpaceEngine engine, Context context) booleanbooleanbooleanisChange()booleanbooleanbooleanbooleanisClear()booleanisDecidedByFixedProperties(CacheManager cacheManager) Whether the verdict this template reaches on an entry is settled by that entry's fixed properties alone - so that a caller holding those values gets the answermatchwould give, matched as well as not matched.booleanisDecidedByFixedPropertiesOnceItsUidMatches(CacheManager cacheManager) isDecidedByFixedProperties(CacheManager), asked about an entry that was looked up by the uid this template operates by - so that the uid, whichmatchscreens before anything else, holds by construction and is left out of the question.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisHistoricalRead(SpaceEngine engine, Context context) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisOptimizedForBlobStoreOp(CacheManager cacheManager) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanmatch(CacheManager cacheManager, IEntryHolder entry, int skipAlreadyMatchedFixedPropertyIndex, String skipAlreadyMatchedIndexPath, boolean safeEntry, Context context, RegexCache regexCache) match(CacheManager cacheManager, IEntryHolder entry, int skipAlreadyMatchedFixedPropertyIndex, String skipAlreadyMatchedIndexPath, boolean safeEntry, Context context, RegexCache regexCache, int rightColumnPosition) booleanmatchFixedProperties(ServerEntry entry, int skipAlreadyMatchedFixedPropertyIndex, RegexCache regexCache, int rightColumnPosition) This template's fixed-property predicates, applied to whatever can answer for an entry's property values.booleanquickReject(Context context, FifoSearch fifoSearch) voidvoidremovePendingFifoSearchObject(boolean value) voidvoidvoidsetAggregatorContext(EntryHolderAggregatorContext aggregatorContext) voidsetAnswerHolder(AnswerHolder answer) voidsetBatchOperationContext(BatchQueryOperationContext batchOpContext) voidsetChangeExpiration(long expirationTime) voidsetFifoThreadPartition(int tnum) voidsetFifoXtnNumberOnSearchStart(long latestTTransactionTerminationNum) voidsetForAfterOperationFilter(int afterOpFilterCode, SpaceContext sc, FilterManager fm, IEntryPacket updateOperationEntry) voidvoidvoidvoidsetInExpirationManager(boolean value) voidvoidvoidsetMemoryOnlySearch(boolean memoryOnly) voidsetMultipleIdsContext(MultipleIdsContext multipleIdsContext) voidsetMutators(Collection<SpaceEntryMutator> mutators) voidsetNonBlockingRead(boolean val) voidsetOrdinalForEntryByIdMultipleOperation(int ordinal) voidsetPendingFifoSearchObject(PendingFifoSearch pendingFifoSearch) voidsetPiiAccess(FieldSecurityEnforcer.PiiAccess piiAccess) voidsetRejectedOpOriginalExceptionAndEntry(Throwable cause, IEntryData rejectedEntry) voidsetReRegisterLeaseOnUpdate(boolean value) voidvoidsetServerIteratorInfo(ServerIteratorInfo serverIteratorInfo) voidsetUidToOperateBy(String uid) voidsetUpdatedEntry(IEntryHolder entryHolder) voidSQLQuery<?> toSQLQuery(ITypeDesc typeDesc) Methods inherited from interface IEntryHolder
addReadLockOwner, addTemplateWaitingForEntry, anyReadLockXtn, clearReadLockOwners, createCopy, createDummy, getCopyOfTemplatesWaitingForEntry, getEntryId, getHandback, getMaster, getNotifyType, getOrder, getOriginalEntryHolder, getReadLockOwners, getRoutingValue, getShadow, getTemplatesWaitingForEntry, getTxnEntryData, getWriteLockOperation, getWriteLockOwner, getWriteLockTransaction, hasShadow, hasShadow, isBlobStoreEntry, isEntryUnderWriteLockXtn, isExpired, isExpired, isHollowEntry, isSameEntryInstance, isShadow, isUnstable, removeReadLockOwner, removeTemplateWaitingForEntry, resetEntryXtnInfo, resetWriteLockOwner, resetXidOriginated, restoreUpdateXtnRollback, setOrder, setOtherUpdateUnderXtnEntry, setSCN, setTransient, setUID, setunStable, setWriteLockOperation, setWriteLockOwnerAndOperation, setWriteLockOwnerAndOperation, setWriteLockOwnerOperationAndShadow, updateEntryDataMethods inherited from interface ILockObject
getUID, isLockSubjectMethods inherited from interface ISpaceItem
getClassName, getEntryData, getSCN, getServerTypeDesc, getUidToOperateBy, getXidOriginated, getXidOriginatedTransaction, hasWaitingFor, isDeleted, isDummyLease, isDummyLeaseAndNotExpired, isMaybeUnderXtn, isTransient, setDeleted, setDummyLease, setExpirationTime, setHasWaitingFor, setMaybeUnderXtn, updateVersionAndExpiration
-
Method Details
-
setUidToOperateBy
-
getMultipleUids
String[] getMultipleUids() -
getTokenFieldNumber
int getTokenFieldNumber() -
getTemplateOperation
int getTemplateOperation() -
isFifoTemplate
boolean isFifoTemplate() -
isEmptyTemplate
boolean isEmptyTemplate() -
isReturnOnlyUid
boolean isReturnOnlyUid() -
isInCache
boolean isInCache() -
setInCache
void setInCache() -
isSecondPhase
boolean isSecondPhase() -
setSecondPhase
void setSecondPhase() -
hasAnswer
boolean hasAnswer() -
getAnswerHolder
AnswerHolder getAnswerHolder() -
setAnswerHolder
-
getOperationModifiers
int getOperationModifiers() -
isMatchByID
boolean isMatchByID() -
isReadOperation
boolean isReadOperation() -
isUpdateOperation
boolean isUpdateOperation() -
isFifoSearch
boolean isFifoSearch() -
isIfExist
boolean isIfExist() -
isNotifyTemplate
boolean isNotifyTemplate() -
isTakeOperation
boolean isTakeOperation() -
isInitiatedEvictionOperation
boolean isInitiatedEvictionOperation() -
isFifoGroupPoll
boolean isFifoGroupPoll() -
isBatchOperation
boolean isBatchOperation() -
isReadMultiple
boolean isReadMultiple() -
isTakeMultiple
boolean isTakeMultiple() -
isChangeMultiple
boolean isChangeMultiple() -
isChangeQuery
boolean isChangeQuery() -
getBatchOperationContext
BatchQueryOperationContext getBatchOperationContext() -
setBatchOperationContext
-
canFinishBatchOperation
boolean canFinishBatchOperation() -
isMultipleIdsOperation
boolean isMultipleIdsOperation() -
getMultipleIdsContext
MultipleIdsContext getMultipleIdsContext() -
setMultipleIdsContext
-
isUpdateMultiple
boolean isUpdateMultiple() -
setOrdinalForEntryByIdMultipleOperation
void setOrdinalForEntryByIdMultipleOperation(int ordinal) -
getOrdinalForEntryByIdMultipleOperation
int getOrdinalForEntryByIdMultipleOperation() -
getUpfdateOrWriteContext
UpdateOrWriteContext getUpfdateOrWriteContext() -
setUpdateOrWriteContext
-
isIdQuery
boolean isIdQuery() -
getFifoThreadPartition
int getFifoThreadPartition() -
setFifoThreadPartition
void setFifoThreadPartition(int tnum) -
hasExtendedMatchCodes
boolean hasExtendedMatchCodes() -
getExtendedMatchCodes
short[] getExtendedMatchCodes() -
getExtendedMatchCodeColumns
short[] getExtendedMatchCodeColumns() -
getRangeValue
-
getRangeInclusion
boolean getRangeInclusion(int index) -
isInitialIfExistSearchActive
boolean isInitialIfExistSearchActive() -
setInitialIfExistSearchActive
void setInitialIfExistSearchActive() -
resetInitialIfExistSearchActive
void resetInitialIfExistSearchActive() -
getFifoXtnNumberOnSearchStart
long getFifoXtnNumberOnSearchStart() -
setFifoXtnNumberOnSearchStart
void setFifoXtnNumberOnSearchStart(long latestTTransactionTerminationNum) -
resetFifoXtnNumberOnSearchStart
void resetFifoXtnNumberOnSearchStart() -
isInExpirationManager
boolean isInExpirationManager() -
setInExpirationManager
void setInExpirationManager(boolean value) -
isExplicitInsertionToExpirationManager
boolean isExplicitInsertionToExpirationManager() -
getOperationID
OperationID getOperationID() -
getUpdatedEntry
IEntryHolder getUpdatedEntry() -
setUpdatedEntry
-
setReRegisterLeaseOnUpdate
void setReRegisterLeaseOnUpdate(boolean value) -
isReRegisterLeaseOnUpdate
boolean isReRegisterLeaseOnUpdate() -
getQueryResultType
QueryResultTypeInternal getQueryResultType() -
getExternalEntryImplClassName
String getExternalEntryImplClassName() -
isInitialFifoSearchActive
boolean isInitialFifoSearchActive() -
isExclusiveReadLockOperation
boolean isExclusiveReadLockOperation() -
isWriteLockOperation
boolean isWriteLockOperation() -
getResponseContext
IResponseContext getResponseContext() -
isDirtyReadRequested
boolean isDirtyReadRequested() -
isReadCommittedRequested
boolean isReadCommittedRequested() -
setInitialFifoSearchActive
void setInitialFifoSearchActive() -
getPendingFifoSearchObject
PendingFifoSearch getPendingFifoSearchObject() -
setPendingFifoSearchObject
-
removePendingFifoSearchObject
void removePendingFifoSearchObject(boolean value) -
setNonBlockingRead
void setNonBlockingRead(boolean val) -
isNonBlockingRead
boolean isNonBlockingRead() -
isMemoryOnlySearch
boolean isMemoryOnlySearch() -
setMemoryOnlySearch
void setMemoryOnlySearch(boolean memoryOnly) -
getCustomQuery
ICustomQuery getCustomQuery() -
getExpirationTime
long getExpirationTime() -
getID
Object getID() -
setID
-
match
MatchResult match(CacheManager cacheManager, IEntryHolder entry, int skipAlreadyMatchedFixedPropertyIndex, String skipAlreadyMatchedIndexPath, boolean safeEntry, Context context, RegexCache regexCache, int rightColumnPosition) -
match
MatchResult match(CacheManager cacheManager, IEntryHolder entry, int skipAlreadyMatchedFixedPropertyIndex, String skipAlreadyMatchedIndexPath, boolean safeEntry, Context context, RegexCache regexCache) -
canBeRuledOutByFixedProperties
Whether an entry whose fixed properties fail this template's predicates is thereby ruled out, so that a caller can stop atmatchFixedProperties(ServerEntry, int, RegexCache, int)instead of going on to build the entry and callmatch(CacheManager, IEntryHolder, int, String, boolean, Context, RegexCache, int). False for every templatematchdecides some other way - by uid, by being a template for the root type, or under MVCC, where the generation check both overrides the verdict and raises conflicts that skipping the entry would swallow - and for a template with an explain plan attached, whose per-entry counts would otherwise stop adding up. -
isDecidedByFixedProperties
Whether the verdict this template reaches on an entry is settled by that entry's fixed properties alone - so that a caller holding those values gets the answermatchwould give, matched as well as not matched.canBeRuledOutByFixedProperties(CacheManager)is the one-sided form of the same question, enough for a caller that only ever skips an entry and therefore allowed to ignore a custom query, which is ANDed with the fixed properties and can only narrow the result.- Since:
- 18.0.1
-
isDecidedByFixedPropertiesOnceItsUidMatches
isDecidedByFixedProperties(CacheManager), asked about an entry that was looked up by the uid this template operates by - so that the uid, whichmatchscreens before anything else, holds by construction and is left out of the question.- Since:
- 18.0.1
-
matchFixedProperties
boolean matchFixedProperties(ServerEntry entry, int skipAlreadyMatchedFixedPropertyIndex, RegexCache regexCache, int rightColumnPosition) This template's fixed-property predicates, applied to whatever can answer for an entry's property values. Afalsemeans no match, whatever else is true of the entry; atruemeans only that the fixed properties do not disagree. -
constrainedFixedPropertyPositions
int[] constrainedFixedPropertyPositions()The fixed properties this template carries a predicate on, so that a caller which has to pay to reach an entry's values knows exactly which ones to fetch. Shared and not to be modified. -
toSQLQuery
-
quickReject
-
getPreviousVersion
int getPreviousVersion() -
getAfterOpFilterCode
int getAfterOpFilterCode() -
getUpdateOperationEntry
IEntryPacket getUpdateOperationEntry() -
getSpaceContext
SpaceContext getSpaceContext() -
getPiiAccess
FieldSecurityEnforcer.PiiAccess getPiiAccess()Field level security: the PII access of the user who issued the operation - results sent to the user after the operation waited for a matching entry (or the notifications of a notify template) omit the PII properties the user lacks read privilege for. Full access unless set. -
setPiiAccess
-
getFilterManager
FilterManager getFilterManager() -
setForAfterOperationFilter
void setForAfterOperationFilter(int afterOpFilterCode, SpaceContext sc, FilterManager fm, IEntryPacket updateOperationEntry) -
isExpirationTimeSet
boolean isExpirationTimeSet() -
isChange
boolean isChange() -
isChangeById
boolean isChangeById() -
setMutators
-
getMutators
Collection<SpaceEntryMutator> getMutators() -
getAggregatorContext
EntryHolderAggregatorContext getAggregatorContext() -
setAggregatorContext
-
setChangeExpiration
void setChangeExpiration(long expirationTime) -
getChangeExpiration
long getChangeExpiration() -
setIfExistForChange
void setIfExistForChange() -
getRejectedOpOriginalException
Throwable getRejectedOpOriginalException() -
setRejectedOpOriginalExceptionAndEntry
-
getRejectedOperationEntry
IEntryData getRejectedOperationEntry() -
isSetSingleOperationExtendedErrorInfo
boolean isSetSingleOperationExtendedErrorInfo() -
addEntryWaitingForTemplate
-
removeEntryWaitingForTemplate
-
getEntriesWaitingForTemplate
Collection<IEntryHolder> getEntriesWaitingForTemplate() -
getProjectionTemplate
AbstractProjectionTemplate getProjectionTemplate() -
isOptimizedForBlobStoreOp
-
isAllValuesIndexSqlQuery
boolean isAllValuesIndexSqlQuery() -
isSqlQuery
boolean isSqlQuery() -
isServerIterator
boolean isServerIterator() -
getServerIteratorInfo
ServerIteratorInfo getServerIteratorInfo() -
setServerIteratorInfo
-
isClear
boolean isClear() -
getTemplateEntryData
TemplateEntryData getTemplateEntryData() -
getExplainPlan
SingleExplainPlan getExplainPlan() -
getLockSubjectType
- Specified by:
getLockSubjectTypein interfaceIEntryHolder- Specified by:
getLockSubjectTypein interfaceILockObject- Returns:
- if this subject need to be locked by its uid or by itself.
-
isActiveRead
-
isHistoricalRead
-
isRevertGenerationRequested
boolean isRevertGenerationRequested()
-