Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle DenialConstraints in MetacrateResultReceiver #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
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 @@ -12,7 +12,7 @@
import java.util.Collection;

/**
* A {@link OmniscientResultReceiver} implementaiton that writes any result into a {@link ConstraintCollection}.
* A {@link OmniscientResultReceiver} implementation that writes any result into a {@link ConstraintCollection}.
*/
public class MetacrateResultReceiver implements OmniscientResultReceiver, AutoCloseable {

Expand Down Expand Up @@ -170,6 +170,16 @@ public Boolean acceptedResult(UniqueColumnCombination result) {
return true;
}

@Override
public void receiveResult(DenialConstraint denialConstraint) throws CouldNotReceiveResultException, ColumnNameMismatchException {
throw new CouldNotReceiveResultException("Result type is not supported.");
}

@Override
public Boolean acceptedResult(DenialConstraint result) {
return false;
}

/**
* Provide the {@link MetadataStore} to which this instance writes.
*
Expand Down