Class SplitEvent
java.lang.Object
com.mongodb.client.model.changestream.SplitEvent
The current fragment, out of the total number of fragments.
When the change stream's backing aggregation pipeline contains the
$changeStreamSplitLargeEvent
stage, events larger than 16MB
will be split into multiple events.- Since:
- 4.11
- MongoDB documentation
- $changeStreamSplitLargeEvent
- Since server release
- 6.0.9
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SplitEvent
- Parameters:
fragment
- the fragment numberof
- the total number of fragments
-
-
Method Details
-
getFragment
public int getFragment()Which 1-based fragment this is, out of the total number of fragments.- Returns:
- the fragment number
-
getOf
public int getOf()The total number of fragments.- Returns:
- the total number of fragments.
-
equals
-
hashCode
public int hashCode() -
toString
-