Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-994

EnumeratedEntityTransformer

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.4
    • 4.9, 6.0
    • None

    Description

      An EnumeratedEntityTransformer gives the Nth entity an accessible ${<entity>.n} == N. In addition, the entity may specify a chunkSize attribute, which will cause the chunkSize'th entity to gain the attribute $hasMore=true. A template for a nextUrl may also be specified on the entity, that is different from the url template.

      Consider an API:

      http://host:port/path/to/resource?maximum_number_returned=50&return_start_index=0

      an entity could specify:

      <entity name="myEntity" processor="XPathEntityProcessor" transformer="EnumeratedEntityTransformer" url="http://host:port/path/to/resource?maximum_number_returned=50&return_start_index=${myEntity.n}" chunkSize=50>...</entity>

      This allows for fetching entities in chunks until there are < chunkSize returned.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jflatow Jared Flatow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment