<section>
 <h1 class="contains-headerlink leafygreen-ui-41fr9s" weight="medium">
  Atlas Stream Processing Methods
  <a class="headerlink leafygreen-ui-1kepx47" href="#atlas-stream-processing-methods" title="Permalink to this heading">
   <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
    <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
    </path>
    <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
    </path>
   </svg>
   <div class="css-1btu0w3 evvkmar0" id="atlas-stream-processing-methods">
   </div>
  </a>
 </h1>
 <div class="leafygreen-ui-15mdk4" role="note">
  <h2 class="leafygreen-ui-6n7b7d">
   Note
  </h2>
  <h3 class="leafygreen-ui-144d5kf">
   <strong>
    mongosh Methods
   </strong>
  </h3>
  <div class="leafygreen-ui-9mycqc">
   <p class="leafygreen-ui-1kp3ins">
    The methods listed on this table of contents page are
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/#mongodb-binary-bin.mongosh" target="_self">
     <span>
      <code class="leafygreen-ui-1l06pbn">
       mongosh
      </code>
     </span>
    </a>
    methods.  This is
    <em>
     not
    </em>
    the documentation for
    <code class="leafygreen-ui-1l06pbn">
     Node.js
    </code>
    or other programming language specific driver methods.
   </p>
   <p class="leafygreen-ui-1kp3ins">
    In most cases,
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/mongodb-shell/#mongodb-binary-bin.mongosh" target="_self">
     <span>
      <code class="leafygreen-ui-1l06pbn">
       mongosh
      </code>
     </span>
    </a>
    methods work the same way as the
legacy
    <code class="leafygreen-ui-1l06pbn">
     mongo
    </code>
    shell methods. However, some legacy methods
are unavailable in
    <code class="leafygreen-ui-1l06pbn">
     mongosh
    </code>
    .
   </p>
   <p class="leafygreen-ui-1kp3ins">
    For MongoDB API drivers, refer to the language specific
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/drivers/" target="_self">
     <span>
      MongoDB driver
     </span>
    </a>
    documentation.
   </p>
  </div>
 </div>
 <p class="leafygreen-ui-1kp3ins">
  <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/atlas/atlas-sp/overview/#mongodb-expression-exp.Stream-Processor" target="_self">
   <span>
    Atlas Stream Processors
   </span>
  </a>
  let you perform aggregation operations against streams of
continuous data using the same data model and query API that
you use with at-rest data.
 </p>
 <p class="leafygreen-ui-1kp3ins">
  Use the following methods to manage Stream Processors
 </p>
 <div class="leafygreen-ui-85da11" role="note">
  <h2 class="leafygreen-ui-1ac4g5h">
   Important
  </h2>
  <div class="leafygreen-ui-9mycqc">
   <p class="leafygreen-ui-1kp3ins">
    The following methods can only be run on deployments hosted on
    <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="https://www.mongodb.com/docs/atlas/" target="_self">
     <span>
      MongoDB Atlas
      <!-- -->
      .
     </span>
    </a>
   </p>
  </div>
 </div>
 <div class="leafygreen-ui-15mdk4" role="note">
  <h2 class="leafygreen-ui-6n7b7d">
   Note
  </h2>
  <div class="leafygreen-ui-9mycqc">
   <p class="leafygreen-ui-1kp3ins">
    For details on a specific method, including syntax and examples,
click on the link to the method's reference page.
   </p>
  </div>
 </div>
 <div class="leafygreen-ui-skkc39" tabindex="0">
  <table class="leafygreen-ui-hr8lsv">
   <colgroup>
    <col style="width:30%"/>
    <col style="width:70%"/>
   </colgroup>
   <thead class="leafygreen-ui-a9ho40">
    <tr data-testid="leafygreen-ui-header-row">
     <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
      <div class="leafygreen-ui-ui0te9">
       <div>
        Name
       </div>
      </div>
     </th>
     <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
      <div class="leafygreen-ui-ui0te9">
       <div>
        Description
       </div>
      </div>
     </th>
    </tr>
   </thead>
   <tbody>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/sp.createStreamProcessor/#mongodb-method-sp.createStreamProcessor">
         <code class="leafygreen-ui-1l06pbn">
          sp.createStreamProcessor()
         </code>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        Creates a stream processor.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/sp.listStreamProcessors/#mongodb-method-sp.listStreamProcessors">
         <code class="leafygreen-ui-1l06pbn">
          sp.listStreamProcessors()
         </code>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        Lists all existing stream processors on the current stream
processing instance.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/sp.process/#mongodb-method-sp.process">
         <code class="leafygreen-ui-1l06pbn">
          sp.process()
         </code>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        Creates an ephemeral stream processor.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/sp.processor.drop/#mongodb-method-sp.processor.drop">
         <code class="leafygreen-ui-1l06pbn">
          sp.processor.drop()
         </code>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        Deletes an existing stream processor.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/sp.processor.sample/#mongodb-method-sp.processor.sample">
         <code class="leafygreen-ui-1l06pbn">
          sp.processor.sample()
         </code>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        Returns an array of sampled results from a currently running stream processor.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/sp.processor.start/#mongodb-method-sp.processor.start">
         <code class="leafygreen-ui-1l06pbn">
          sp.processor.start()
         </code>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        Starts an existing stream processor.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/sp.processor.stats/#mongodb-method-sp.processor.stats">
         <code class="leafygreen-ui-1l06pbn">
          sp.processor.stats()
         </code>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        Returns statistics summarizing an existing stream processor.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/method/sp.processor.stop/#mongodb-method-sp.processor.stop">
         <code class="leafygreen-ui-1l06pbn">
          sp.processor.stop()
         </code>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        Stops a currently running stream processor.
       </div>
      </div>
     </td>
    </tr>
   </tbody>
  </table>
 </div>
</section>
