org.modeshape.jcr.query.engine.process

## Class IntersectSequence

- java.lang.Object
- - org.modeshape.jcr.query.NodeSequence
  - - org.modeshape.jcr.query.engine.process.DelegatingSequence
    - - org.modeshape.jcr.query.engine.process.BufferingSequence
      - - org.modeshape.jcr.query.engine.process.AbstractNodeKeysSequence
        - - org.modeshape.jcr.query.engine.process.IntersectSequence

-     public class IntersectSequence
      extends AbstractNodeKeysSequence

  A `AbstractNodeKeysSequence` implementation which performs an INTERSECT operation between 2 other sequences, keeping only instances which have the same unique value in both sequences.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `protected class` | `IntersectSequence.IntersectBatch` A batch implementation which wraps the left batch, but return rows from the matching keys from the right.

    - ### Nested classes/interfaces inherited from class org.modeshape.jcr.query.NodeSequence

      `NodeSequence.AlternateSizeBatch, NodeSequence.Batch, NodeSequence.LimitBatch, NodeSequence.MultiWidthBatch, NodeSequence.Restartable, NodeSequence.RowAccessor, NodeSequence.RowFilter, NodeSequence.SingleWidthBatch`

  - ### Field Summary

    - ### Fields inherited from class org.modeshape.jcr.query.engine.process.AbstractNodeKeysSequence

      `leftSequence, totalWidth`

    - ### Fields inherited from class org.modeshape.jcr.query.engine.process.BufferingSequence

      `buffer, cache, extractor, logger, remainingRowCount, rowFactory, trace, width, workspaceName`

    - ### Fields inherited from class org.modeshape.jcr.query.engine.process.DelegatingSequence

      `delegate`

    - ### Fields inherited from class org.modeshape.jcr.query.NodeSequence

      `LOGGER, NO_PASS_ROW_FILTER, PASS_ROW_FILTER`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `IntersectSequence(String workspaceName, NodeSequence leftSequence, NodeSequence rightSequence, TypeSystem types, BufferManager bufferMgr, CachedNodeSupplier nodeCache, boolean pack, boolean useHeap)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected NodeSequence.Batch` | `batchWrapper(NodeSequence.Batch leftBatch)`
    `String` | `toString()`

    - ### Methods inherited from class org.modeshape.jcr.query.engine.process.AbstractNodeKeysSequence

      `keyInLeftRow, matchingRightRows, nextBatch, width`

    - ### Methods inherited from class org.modeshape.jcr.query.engine.process.BufferingSequence

      `batchFrom, close, createRow, isEmpty, loadAll, rowCount`

    - ### Methods inherited from class org.modeshape.jcr.query.engine.process.DelegatingSequence

      `getRowCount`

    - ### Methods inherited from class org.modeshape.jcr.query.NodeSequence

      `append, batchFilteredWith, batchOf, batchOf, batchOf, batchOfKeys, batchOfKeys, batchOfKeys, batchOfKeys, batchWithCount, copy, emptyBatch, emptySequence, filter, keyFor, limit, limit, merging, requireBoth, requireEither, skip, slice, slicingBatch, withBatch, withBatches, withBatches, withNode, withNodeKeys, withNodeKeys, withNodeKeys, withNodeKeys, withNodes, withNodes`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### IntersectSequence

          public IntersectSequence(String workspaceName,
                           NodeSequence leftSequence,
                           NodeSequence rightSequence,
                           TypeSystem types,
                           BufferManager bufferMgr,
                           CachedNodeSupplier nodeCache,
                           boolean pack,
                           boolean useHeap)

  - ### Method Detail

    - #### batchWrapper

          protected NodeSequence.Batch batchWrapper(NodeSequence.Batch leftBatch)

      Specified by:
        `batchWrapper` in class `AbstractNodeKeysSequence`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.