use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project streamline by hortonworks.
the class TopologyEdge method setStreamGroupingsData.
@JsonIgnore
public void setStreamGroupingsData(String streamGroupingData) throws Exception {
if (!StringUtils.isEmpty(streamGroupingData)) {
ObjectMapper mapper = new ObjectMapper();
streamGroupings = mapper.readValue(streamGroupingData, new TypeReference<List<StreamGrouping>>() {
});
}
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project streamline by hortonworks.
the class TopologyStream method getPrimaryKey.
@JsonIgnore
@Override
public PrimaryKey getPrimaryKey() {
Map<Field, Object> fieldToObjectMap = new HashMap<>();
fieldToObjectMap.put(new Schema.Field(ID, Schema.Type.LONG), this.id);
fieldToObjectMap.put(new Schema.Field(VERSIONID, Schema.Type.LONG), this.versionId);
return new PrimaryKey(fieldToObjectMap);
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project registry by hortonworks.
the class MLModel method getPrimaryKey.
@JsonIgnore
@Override
public PrimaryKey getPrimaryKey() {
Map<Field, Object> fieldObjectMap = new HashMap<>();
fieldObjectMap.put(new Schema.Field(ID, Type.LONG), this.id);
return new PrimaryKey(fieldObjectMap);
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project ma-modules-public by infiniteautomation.
the class UserCommentModel method getDataAsComment.
/**
* @return
*/
@JsonIgnore
public UserCommentVO getDataAsComment() {
UserCommentVO comment = new UserCommentVO();
comment.setId(this.data.getId());
comment.setXid(this.data.getXid());
comment.setUserId(this.data.getUserId());
comment.setUsername(this.data.getUsername());
comment.setTs(this.data.getTs());
comment.setComment(this.data.getComment());
return comment;
}
use of org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnore in project halyard by spinnaker.
the class SpinnakerRuntimeSettings method getAllServiceSettings.
@JsonIgnore
public Map<SpinnakerService.Type, ServiceSettings> getAllServiceSettings() {
return Arrays.stream(Services.class.getDeclaredFields()).reduce(new HashMap<>(), (map, field) -> {
if (!ServiceSettings.class.isAssignableFrom(field.getType())) {
return map;
}
SpinnakerService.Type type = SpinnakerService.Type.fromCanonicalName(field.getName());
ServiceSettings settings;
try {
settings = (ServiceSettings) field.get(services);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
if (settings != null) {
map.put(type, settings);
}
return map;
}, (map1, map2) -> {
map1.putAll(map2);
return map1;
});
}
Aggregations