@Override public Set<InstantiatedComponent> getComponents(Config config, boolean configure) { this.config = config; Set<InstantiatedComponent> components = Sets.newHashSet(); components.add(new InstantiatedComponent( getEventTimeModel(configure), getEventTimeModelConfig(), "Event Time Model")); if (hasLastUpdatedField()) { components.add(new InstantiatedComponent( getLastUpdatedTimeModel(configure), getLastUpdatedTimeModelConfig(), "Last Updated Time Model")); } return components; }
@Override public void configure(Config config) { this.config = config; this.eventTimeModel = getEventTimeModel(true); if (hasLastUpdatedField()) { this.lastUpdatedTimeModel = getLastUpdatedTimeModel(true); } this.valueFieldNames = getValueFieldNames(); }