safeOperation.getEntityClassName(),
safeOperation.getId()
);
}
else if ( operation instanceof Add ) {
Add safeOperation = ( Add ) operation;
buildLuceneDocument( safeOperation.getDocument(), hydrator );
hydrator.addAddLuceneWork(
safeOperation.getEntityClassName(),
safeOperation.getId(),
safeOperation.getFieldToAnalyzerMap()
);
}
else if ( operation instanceof Update ) {
Update safeOperation = ( Update ) operation;
buildLuceneDocument( safeOperation.getDocument(), hydrator );
hydrator.addUpdateLuceneWork(
safeOperation.getEntityClassName(),
safeOperation.getId(),
safeOperation.getFieldToAnalyzerMap()
);
}
}
}