Class ScrollSpliteratorHelper
- java.lang.Object
-
- fr.gouv.vitam.collect.internal.service.ScrollSpliteratorHelper
-
public class ScrollSpliteratorHelper extends java.lang.Object
ScrollSpliteratorHelper class
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
checkNumberOfResultQuery(ItemStatus itemStatus, long total)
Check number of resultstatic 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 bachSizestatic 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 bachSizestatic ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode>
createUnitScrollSplitIterator(MetaDataClient client, SelectMultiQuery selectMultiQuery)
Create units ScrollSpliterator from a query that can iterate millions of unitsstatic 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 bachSizestatic ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode>
getUnitWithInheritedRulesScrollSpliterator(SelectMultiQuery request, MetaDataClient client)
-
-
-
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
- metadataClientselectMultiQuery
- 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
- metadataClientselectMultiQuery
- querybachSize
- 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
- metadataClientselectMultiQuery
- querybachSize
- 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
- metadataClientselectMultiQuery
- query- Returns:
- the ScrollSpliterator
-
getUnitWithInheritedRulesScrollSpliterator
public static ScrollSpliterator<com.fasterxml.jackson.databind.JsonNode> getUnitWithInheritedRulesScrollSpliterator(SelectMultiQuery request, MetaDataClient client)
-
checkNumberOfResultQuery
public static boolean checkNumberOfResultQuery(ItemStatus itemStatus, long total)
Check number of result- Parameters:
itemStatus
- itemStatustotal
- total of elements- Returns:
- boolean
-
-