private Document updateOrCreateIndexNonSuperColumnFamily ( EntityMetadata metadata , final MetamodelImpl metaModel , Object entity , String parentId , Class < ? > clazz , boolean isUpdate , boolean isEmbeddedId , Object rowKey ) { Document document = new Document ( ) ; // Add entity class, PK info into document addEntityClassToDocument ( metadata , entity , document , metaModel ) ; // Add all entity fields(columns) into document addEntityFieldsToDocument ( metadata , entity , document , metaModel ) ; addAssociatedEntitiesToDocument ( metadata , entity , document , metaModel ) ; addParentKeyToDocument ( parentId , document , clazz ) ; if ( isUpdate ) { if ( isEmbeddedId ) { // updating delimited composite key String compositeId = KunderaCoreUtils . prepareCompositeKey ( metadata . getIdAttribute ( ) , metaModel , rowKey ) ; updateDocument ( compositeId , document , null ) ; // updating sub parts of composite key EmbeddableType embeddableId = metaModel . embeddable ( metadata . getIdAttribute ( ) . getBindableJavaType ( ) ) ; Set < Attribute > embeddedAttributes = embeddableId . getAttributes ( ) ; updateOrCreateIndexEmbeddedIdFields ( embeddedAttributes , metaModel , document , metadata , rowKey ) ; } else { updateDocument ( rowKey . toString ( ) , document , null ) ; } } else { indexDocument ( metadata , document ) ; } return document ; }
update or Create Index for non super columnfamily