private Operation getOperation(MessageType eventType) {
    Operation op = null;
    switch (eventType) {
      case LOCAL_CREATE:
        op = Operation.CREATE;
        break;

      case LOCAL_UPDATE:
        op = Operation.UPDATE;
        break;

      case LOCAL_DESTROY:
        op = Operation.DESTROY;
        break;

      case LOCAL_INVALIDATE:
        op = Operation.INVALIDATE;
        break;

      case CLEAR_REGION:
        op = Operation.REGION_CLEAR;
        break;

      case INVALIDATE_REGION:
        op = Operation.REGION_INVALIDATE;
        break;
    }
    return op;
  }
Returns the Operation for the given EnumListenerEvent type.
geode-cq/src/main/java/org/apache/geode/cache/query/cq/internal/CqServiceImpl.java