-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
# Conflicts: # de.zabuza.fastcdc4j.examples/src/de/zabuza/fastcdc4j/examples/PatchSummary.java
- Loading branch information
Showing
10 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
* | ||
* @author Daniel Tischner {@literal <[email protected]>} | ||
*/ | ||
@SuppressWarnings({"UseOfSystemOutOrSystemErr", "ClassIndependentOfModule", "ClassOnlyUsedInOneModule"}) | ||
@SuppressWarnings({ "UseOfSystemOutOrSystemErr", "ClassIndependentOfModule", "ClassOnlyUsedInOneModule" }) | ||
enum CompareFiles { | ||
; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* | ||
* @author Daniel Tischner {@literal <[email protected]>} | ||
*/ | ||
@SuppressWarnings({"UseOfSystemOutOrSystemErr", "ClassIndependentOfModule", "ClassOnlyUsedInOneModule"}) | ||
@SuppressWarnings({ "UseOfSystemOutOrSystemErr", "ClassIndependentOfModule", "ClassOnlyUsedInOneModule" }) | ||
enum LocalChunkCache { | ||
; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,7 @@ | |
* | ||
* @author Daniel Tischner {@literal <[email protected]>} | ||
*/ | ||
@SuppressWarnings("ClassWithTooManyFields") | ||
public final class ChunkerBuilder { | ||
/** | ||
* The default expected size of chunks, in bytes, used by all chunkers. | ||
|
@@ -159,11 +160,13 @@ public Chunker build() { | |
|
||
final MaskGenerator maskGenerator = | ||
new MaskGenerator(maskOption, normalizationLevel, expectedChunkSize, maskGenerationSeed); | ||
long maskSmallToUse = maskSmall != null ? maskSmall : maskGenerator.generateSmallMask(); | ||
long maskLargeToUse = maskLarge != null ? maskLarge : maskGenerator.generateLargeMask(); | ||
final long maskSmallToUse = maskSmall != null ? maskSmall : maskGenerator.generateSmallMask(); | ||
final long maskLargeToUse = maskLarge != null ? maskLarge : maskGenerator.generateLargeMask(); | ||
|
||
int minimalChunkSize = (int) (expectedChunkSize * minimalChunkSizeFactor); | ||
int maximalChunkSize = (int) (expectedChunkSize * maximalChunkSizeFactor); | ||
//noinspection NumericCastThatLosesPrecision | ||
final int minimalChunkSize = (int) (expectedChunkSize * minimalChunkSizeFactor); | ||
//noinspection NumericCastThatLosesPrecision | ||
final int maximalChunkSize = (int) (expectedChunkSize * maximalChunkSizeFactor); | ||
|
||
final IterativeStreamChunkerCore coreToUse = chunkerCore != null ? chunkerCore : switch (chunkerOption) { | ||
case FAST_CDC -> new FastCdcChunkerCore(expectedChunkSize, minimalChunkSize, maximalChunkSize, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ | |
* @param <X> The type contained in the outer iterator, either already an iterator or used to produce iterators using a | ||
* given function | ||
* @param <Y> The type contained in the inner iterators, also the final type contained in this iterator | ||
* | ||
* @author Daniel Tischner {@literal <[email protected]>} | ||
*/ | ||
public final class FlatIterator<X, Y> implements Iterator<Y> { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters