Class AbstractIncrementalSnapshotContext.SnapshotDataCollection<T>
java.lang.Object
java.util.AbstractCollection<DataCollection<T>>
java.util.AbstractQueue<DataCollection<T>>
java.util.concurrent.LinkedBlockingQueue<DataCollection<T>>
io.debezium.pipeline.source.snapshot.incremental.AbstractIncrementalSnapshotContext.SnapshotDataCollection<T>
- All Implemented Interfaces:
Serializable,Iterable<DataCollection<T>>,Collection<DataCollection<T>>,BlockingQueue<DataCollection<T>>,Queue<DataCollection<T>>
- Enclosing class:
AbstractIncrementalSnapshotContext<T>
private static class AbstractIncrementalSnapshotContext.SnapshotDataCollection<T>
extends LinkedBlockingQueue<DataCollection<T>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AbstractIncrementalSnapshotContext<T> static final Stringstatic final Stringstatic final Stringstatic final Stringprivate final Queue<DataCollection<T>> private Stringprivate final com.fasterxml.jackson.databind.ObjectMapperprivate final com.fasterxml.jackson.core.type.TypeReference<List<LinkedHashMap<String, String>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidadd(List<DataCollection<T>> dataCollectionIds) voidclear()private String(package private) DataCollection<T> getNext()booleanisEmpty()peek()booleanremove(List<DataCollection<T>> toRemove) intsize()private List<DataCollection<T>> stringToDataCollections(String dataCollectionsStr) Methods inherited from class java.util.concurrent.LinkedBlockingQueue
contains, drainTo, drainTo, forEach, iterator, offer, offer, poll, poll, put, remainingCapacity, remove, removeAll, removeIf, retainAll, spliterator, take, toArray, toArray, toStringMethods inherited from class java.util.AbstractQueue
add, addAll, element, removeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.BlockingQueue
addMethods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, parallelStream, stream, toArray
-
Field Details
-
DATA_COLLECTIONS_TO_SNAPSHOT_KEY
- See Also:
-
DATA_COLLECTIONS_TO_SNAPSHOT_KEY_ID
- See Also:
-
DATA_COLLECTIONS_TO_SNAPSHOT_KEY_ADDITIONAL_CONDITION
- See Also:
-
DATA_COLLECTIONS_TO_SNAPSHOT_KEY_SURROGATE_KEY
- See Also:
-
mapper
private final com.fasterxml.jackson.databind.ObjectMapper mapper -
mapperTypeRef
private final com.fasterxml.jackson.core.type.TypeReference<List<LinkedHashMap<String,String>>> mapperTypeRef -
dataCollectionsToSnapshot
-
context
-
dataCollectionsToSnapshotJson
-
-
Constructor Details
-
SnapshotDataCollection
SnapshotDataCollection(AbstractIncrementalSnapshotContext<T> context)
-
-
Method Details
-
add
-
getNext
DataCollection<T> getNext() -
peek
- Specified by:
peekin interfaceQueue<T>- Overrides:
peekin classLinkedBlockingQueue<DataCollection<T>>
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Overrides:
sizein classLinkedBlockingQueue<DataCollection<T>>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>- Overrides:
clearin classLinkedBlockingQueue<DataCollection<T>>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>- Overrides:
isEmptyin classAbstractCollection<DataCollection<T>>
-
remove
-
dataCollectionsAsJsonString
-
getDataCollectionsToSnapshot
-
computeJsonString
-
stringToDataCollections
-