private void addUpdateAttributesOperation ( UpdateAttributesOperation operation ) { if ( ! this . metadata . isSealedInStorage ( ) ) { // Only process the operation if the Segment is not sealed in Storage. If it is, then so is the Attribute Index, // and it means this operation has already been applied to the index. Map < UUID , Long > attributes = getExtendedAttributes ( operation ) ; if ( ! attributes . isEmpty ( ) ) { AggregatedAppendOperation aggregatedAppend = getOrCreateAggregatedAppend ( this . metadata . getStorageLength ( ) , operation . getSequenceNumber ( ) ) ; aggregatedAppend . includeAttributes ( attributes ) ; } } }
Processes an UpdateAttributesOperation .