@Override public void populateDisplayData(DisplayData.Builder builder) { super.populateDisplayData(builder); builder.add(DisplayData.item("uri", uri())); builder.add(DisplayData.item("database", database())); builder.add(DisplayData.item("collection", collection())); builder.addIfNotNull(DisplayData.item("filter", filter())); builder.add(DisplayData.item("numSplit", numSplits())); }
@Override public void populateDisplayData(DisplayData.Builder builder) { super.populateDisplayData(builder); builder .add(DisplayData.item("count", count).withLabel("Top Count")) .add(DisplayData.item("comparer", compareFn.getClass()).withLabel("Record Comparer")); }
@Override public void populateDisplayData(DisplayData.Builder builder) { super.populateDisplayData(builder); if (windowFn != null) { builder .add(DisplayData.item("windowFn", windowFn.getClass()).withLabel("Windowing Function")) .include("windowFn", windowFn); } if (allowedLateness != null) { builder.addIfNotDefault( DisplayData.item("allowedLateness", allowedLateness).withLabel("Allowed Lateness"), Duration.millis(BoundedWindow.TIMESTAMP_MAX_VALUE.getMillis())); } if (trigger != null && !(trigger instanceof DefaultTrigger)) { builder.add(DisplayData.item("trigger", trigger.toString()).withLabel("Trigger")); } if (mode != null) { builder.add( DisplayData.item("accumulationMode", mode.toString()).withLabel("Accumulation Mode")); } if (closingBehavior != null) { builder.add( DisplayData.item("closingBehavior", closingBehavior.toString()) .withLabel("Window Closing Behavior")); } if (outputTimeFn != null) { builder.add( DisplayData.item("outputTimeFn", outputTimeFn.getClass()) .withLabel("Output Time Function")); } }