Skip to content

Commit

Permalink
fix humonguous toString
Browse files Browse the repository at this point in the history
  • Loading branch information
awildturtok committed Apr 10, 2024
1 parent 5819348 commit 2a2b775
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 2a2b775

Please sign in to comment.