Skip to content

Commit

Permalink
Merge pull request #3386 from ingef/fix/humonguous-toString
Browse files Browse the repository at this point in the history
humonguous to string
  • Loading branch information
awildturtok authored Apr 11, 2024
2 parents c72a756 + 2a2b775 commit addbb71
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.bakdata.conquery.models.messages.namespaces.NamespacedMessage;
import com.bakdata.conquery.models.worker.DistributedNamespace;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
Expand All @@ -34,15 +35,23 @@ public class RegisterColumnValues extends NamespaceMessage implements ReactionMe

@NsIdRef
private final Column column;

@ToString.Exclude
private final Collection<String> values;

@JsonIgnore
@ToString.Include
public int size() {
return values.size();
}

@Override
public void react(DistributedNamespace context) throws Exception {
if (log.isTraceEnabled()) {
log.trace("Registering values for column '{}': {}", column.getId(), Arrays.toString(values.toArray()));
log.trace("Registering {} values for column '{}': {}", size(), column.getId(), Arrays.toString(values.toArray()));
}
else {
log.debug("Registering {} values for column '{}'", values.size(), column.getId());
log.debug("Registering {} values for column '{}'", size(), column.getId());
}

context.getFilterSearch().registerValues(column, values);
Expand Down

0 comments on commit addbb71

Please sign in to comment.