Class ScrollSpliteratorHelper


  • public class ScrollSpliteratorHelper
    extends java.lang.Object
    ScrollSpliteratorHelper class
    • Method Detail

      • createUnitScrollSplitIterator

        public static ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode> createUnitScrollSplitIterator​(MetaDataClient client,
                                                                                                               SelectMultiQuery selectMultiQuery)
        Create units ScrollSpliterator from a query that can iterate millions of units
        Parameters:
        client - metadataClient
        selectMultiQuery - query
        Returns:
        the ScrollSpliterator
      • createUnitScrollSplitIterator

        public static ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode> createUnitScrollSplitIterator​(MetaDataClient client,
                                                                                                               SelectMultiQuery selectMultiQuery,
                                                                                                               int bachSize)
        Create units ScrollSpliterator from a query that can iterate millions of units with given bachSize
        Parameters:
        client - metadataClient
        selectMultiQuery - query
        bachSize - bachSize
        Returns:
        the ScrollSpliterator
      • createObjectGroupScrollSplitIterator

        public static ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode> createObjectGroupScrollSplitIterator​(MetaDataClient client,
                                                                                                                      SelectMultiQuery selectMultiQuery,
                                                                                                                      int bachSize)
        Create objectGroups ScrollSpliterator from a query that can iterate millions of objectsGroups with given bachSize
        Parameters:
        client - metadataClient
        selectMultiQuery - query
        bachSize - bachSize
        Returns:
        the ScrollSpliterator
      • createObjectGroupScrollSplitIterator

        public static ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode> createObjectGroupScrollSplitIterator​(MetaDataClient client,
                                                                                                                      SelectMultiQuery selectMultiQuery)
        Create objectGroups ScrollSpliterator from a query that can iterate millions of objectsGroups with default bachSize
        Parameters:
        client - metadataClient
        selectMultiQuery - query
        Returns:
        the ScrollSpliterator
      • checkNumberOfResultQuery

        public static boolean checkNumberOfResultQuery​(ItemStatus itemStatus,
                                                       long total)
        Check number of result
        Parameters:
        itemStatus - itemStatus
        total - total of elements
        Returns:
        boolean