public class BatchUtils
extends java.lang.Object
Constructor and Description |
---|
BatchUtils() |
Modifier and Type | Method and Description |
---|---|
static <T extends java.io.Serializable> |
apply(SegmentManager<T> segmentManager,
java.util.List<IndividualChange<T>> sortedChanges) |
protected static <T extends java.io.Serializable> |
getFirstSegmentAffected(SegmentManager<T> segmentManager,
java.util.LinkedList<IndividualChange<T>> sortedChanges) |
static <T extends java.io.Serializable> |
pollChangesInSegment(java.util.LinkedList<IndividualChange<T>> sortedChanges,
Segment<T> segment) |
protected static <T extends java.io.Serializable> |
removeChangesThatEndInOrBeforeSegment(java.util.List<IndividualChange<T>> sortedChanges,
Segment<T> segment) |
public static <T extends java.io.Serializable> void apply(SegmentManager<T> segmentManager, java.util.List<IndividualChange<T>> sortedChanges) throws BlueDbException
BlueDbException
public static <T extends java.io.Serializable> java.util.LinkedList<IndividualChange<T>> pollChangesInSegment(java.util.LinkedList<IndividualChange<T>> sortedChanges, Segment<T> segment)
protected static <T extends java.io.Serializable> Segment<T> getFirstSegmentAffected(SegmentManager<T> segmentManager, java.util.LinkedList<IndividualChange<T>> sortedChanges)
protected static <T extends java.io.Serializable> void removeChangesThatEndInOrBeforeSegment(java.util.List<IndividualChange<T>> sortedChanges, Segment<T> segment)