Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
55c5ed4
Refactoring out deprecated projection calls
Aug 3, 2024
012eeed
More refactors on unit tests, docprojection
Aug 4, 2024
3553387
Merge remote-tracking branch 'origin/integration' into task/removeDep…
Aug 28, 2024
baba44b
Removing redundant var reference, retesting
Aug 28, 2024
34968e9
Removing deprecated flags
Sep 5, 2024
a5712eb
Merge branch 'integration' into task/removeDeprecatedProjection
Oct 16, 2024
0d1bc72
Removing unused constructors, tweaking unit tests
Oct 16, 2024
bc90407
Tweaking Runtime unit test
Oct 16, 2024
685a0ed
Merge branch 'integration' into task/removeDeprecatedProjection
avgAGB Jan 5, 2025
e3a68d8
Merge branch 'integration' into task/removeDeprecatedProjection
avgAGB Jan 21, 2025
b80ad57
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Jan 28, 2025
5b5494f
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Apr 9, 2025
1bbe629
Removing unused import
avgAGB Apr 9, 2025
a9d9f64
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Apr 14, 2025
34e55cc
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Jun 16, 2025
43f5b36
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Jun 24, 2025
cdf780e
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Jun 27, 2025
6107766
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Jul 2, 2025
61f99c6
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Jul 10, 2025
773745c
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Aug 4, 2025
d0b65b7
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Aug 20, 2025
33dca49
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Aug 27, 2025
4f49b61
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Sep 8, 2025
0e4982e
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Sep 18, 2025
6163a2f
Removing tests involving empty configs post deprecated constructor
avgAGB Sep 18, 2025
ff11dc5
Merge remote-tracking branch 'origin/integration' into task/removeDep…
avgAGB Sep 20, 2025
7e9d4ff
Merge branch 'integration' into task/removeDeprecatedProjection
avgAGB Sep 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,7 @@ public class DocumentProjection implements DocumentPermutation {
/**
* should track document sizes
*/
private boolean trackSizes = true;

@Deprecated
public DocumentProjection() {
this(false, false);
}

@Deprecated
public DocumentProjection(boolean includeGroupingContext, boolean reducedResponse) {
this.includeGroupingContext = includeGroupingContext;
this.reducedResponse = reducedResponse;
this.projection = new Projection();
}
private boolean trackSizes;

public DocumentProjection(boolean includeGroupingContext, boolean reducedResponse, boolean trackSizes, Set<String> projections,
Projection.ProjectionType projectionType) {
Expand All @@ -57,36 +45,13 @@ public DocumentProjection(boolean includeGroupingContext, boolean reducedRespons
this.trackSizes = trackSizes;
}

/*
* This contstructor will not include the grouping context and will not reduce the document
*/
@Deprecated
public DocumentProjection(Set<String> projections, Projection.ProjectionType projectionType) {
this(false, false, projections, projectionType);
}

@Deprecated
public DocumentProjection(boolean includeGroupingContext, boolean reducedResponse, Set<String> projections, Projection.ProjectionType projectionType) {
this(includeGroupingContext, reducedResponse, true, projections, projectionType);
}

public DocumentProjection(boolean includeGroupingContext, boolean isReducedResponse, boolean isTrackSizes, Projection projection) {
this.includeGroupingContext = includeGroupingContext;
this.reducedResponse = isReducedResponse;
this.trackSizes = isTrackSizes;
this.projection = projection;
}

@Deprecated
public void setIncludes(Set<String> includes) {
this.projection.setIncludes(includes);
}

@Deprecated
public void setExcludes(Set<String> excludes) {
this.projection.setExcludes(excludes);
}

public Projection getProjection() {
return projection;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,6 @@ public KeyProjection(Set<String> projections, Projection.ProjectionType projecti
projection = new Projection(projections, projectionType);
}

public KeyProjection(KeyProjection other) {
projection = other.getProjection();
}

@Deprecated
public KeyProjection() {
projection = new Projection();
}

/**
* Set the delegate {@link Projection} with the fields to include
*
* @param includes
* a set of fields to retain
*/
@Deprecated
public void setIncludes(Set<String> includes) {
projection.setIncludes(includes);
}

/**
* Set the delegate {@link Projection} with the fields to exclude
*
* @param excludes
* a set of fields to exclude
*/
public void setExcludes(Set<String> excludes) {
projection.setExcludes(excludes);
}

@Deprecated
public Projection getProjection() {
return projection;
}

/*
* (non-Javadoc)
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,52 +20,14 @@
public final class Projection implements Predicate<String> {

private boolean initialized;

@Deprecated
public void setIncludes(Set<String> includes) {
if (this.initialized) {
throw new RuntimeException("This Projection instance was already initialized");
}

this.projections = includes;
this.initialized = true;
type = ProjectionType.INCLUDES;
}

@Deprecated
public void setExcludes(Set<String> excludes) {
if (this.initialized) {
throw new RuntimeException("This Projection instance was already initialized");
}

this.projections = Sets.newHashSet(excludes);
this.initialized = true;
type = ProjectionType.EXCLUDES;
}

@Deprecated
public Set<String> getIncludes() {
return Collections.unmodifiableSet(this.projections);
}

@Deprecated
public Set<String> getExcludes() {
return Collections.unmodifiableSet(this.projections);
}

/* Explicit constructor needed now that the new constructor was added */
@Deprecated
public Projection() {
this.initialized = false;
}

private Set<String> projections;
private ProjectionType type;

public Projection(@Nonnull Set<String> items, @Nonnull ProjectionType type) {
this.initialized = true;
this.type = type;
if (type == ProjectionType.INCLUDES) {
// do not make a copy of the incoming include fields. It could be a UniversalSet
this.projections = items;
} else {
this.projections = Sets.newHashSet(items);
Expand Down
Loading
Loading