org.modeshape.jcr.query

## Interface RowExtractors.ExtractFromRow

- All Known Implementing Classes:
    ScanningQueryEngine.PropertyValueExtractor
  Enclosing class:
    RowExtractors

      public static interface RowExtractors.ExtractFromRow

  An operation that extracts a single value from the current row in a given `NodeSequence.Batch`. Note that a single instance will be called many times (once for each row in the batches of a `NodeSequence`).

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `TypeSystem.TypeFactory<?>` | `getType()` Get the type of value that this extractor will return from `getValueInRow(org.modeshape.jcr.query.NodeSequence.RowAccessor)`.
    `Object` | `getValueInRow(NodeSequence.RowAccessor row)` Evaluate the `DynamicOperand` against the current row in the supplied batch.

- - ### Method Detail

    - #### getType

          TypeSystem.TypeFactory<?> getType()

      Get the type of value that this extractor will return from `getValueInRow(org.modeshape.jcr.query.NodeSequence.RowAccessor)`.
      Returns:
        the type; never null

    - #### getValueInRow

          Object getValueInRow(NodeSequence.RowAccessor row)

      Evaluate the `DynamicOperand` against the current row in the supplied batch. Note that implementations will need to know whether to get the `only node in the row` or how to get a `NodeSequence.RowAccessor.getNode(int)` for a specific selector.
      Parameters:
        `row` - the row accessor through which the current row values can be obtained; never null
      Returns:
        the dynamic operands value for the current row; may be null

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