Search in sources :

Example 1 with JsonIgnore

use of org.codehaus.jackson.annotate.JsonIgnore in project coprhd-controller by CoprHD.

the class DbConsistencyStatus method init.

@JsonIgnore
public void init() {
    this.startTime = new Date();
    this.endTime = null;
    this.status = Status.IN_PROGRESS;
    this.workingPoint = null;
    this.progress = 0;
    this.inconsistencyCount = 0;
    this.checkedCount = 0;
    this.checkType = null;
}
Also used : Date(java.util.Date) JsonIgnore(org.codehaus.jackson.annotate.JsonIgnore)

Example 2 with JsonIgnore

use of org.codehaus.jackson.annotate.JsonIgnore in project coprhd-controller by CoprHD.

the class DbConsistencyStatus method markResult.

@JsonIgnore
public void markResult(Status status) {
    this.endTime = new Date();
    this.status = status;
}
Also used : Date(java.util.Date) JsonIgnore(org.codehaus.jackson.annotate.JsonIgnore)

Example 3 with JsonIgnore

use of org.codehaus.jackson.annotate.JsonIgnore in project motech by motech.

the class EntityInfo method getRestFieldInfos.

@JsonIgnore
public List<FieldInfo> getRestFieldInfos() {
    List<FieldInfo> nonAuto = new ArrayList<>(fieldsInfo);
    CollectionUtils.filter(nonAuto, new Predicate() {

        @Override
        public boolean evaluate(Object object) {
            return ((FieldInfo) object).isRestExposed();
        }
    });
    return nonAuto;
}
Also used : ArrayList(java.util.ArrayList) Predicate(org.apache.commons.collections.Predicate) JsonIgnore(org.codehaus.jackson.annotate.JsonIgnore)

Example 4 with JsonIgnore

use of org.codehaus.jackson.annotate.JsonIgnore in project motech by motech.

the class EntityInfo method getNonAutoFieldInfos.

@JsonIgnore
public List<FieldInfo> getNonAutoFieldInfos() {
    List<FieldInfo> nonAuto = new ArrayList<>(fieldsInfo);
    CollectionUtils.filter(nonAuto, new Predicate() {

        @Override
        public boolean evaluate(Object object) {
            return !((FieldInfo) object).isAutoGenerated();
        }
    });
    return nonAuto;
}
Also used : ArrayList(java.util.ArrayList) Predicate(org.apache.commons.collections.Predicate) JsonIgnore(org.codehaus.jackson.annotate.JsonIgnore)

Example 5 with JsonIgnore

use of org.codehaus.jackson.annotate.JsonIgnore in project pinot by linkedin.

the class SegmentGeneratorConfig method getQualifyingDimensions.

/**
   * Returns a comma separated list of qualifying dimension name strings
   * @param type FieldType to filter on
   * @return
   */
@JsonIgnore
private String getQualifyingDimensions(FieldType type) {
    List<String> dimensions = new ArrayList<>();
    for (final FieldSpec spec : getSchema().getAllFieldSpecs()) {
        if (spec.getFieldType() == type) {
            dimensions.add(spec.getName());
        }
    }
    Collections.sort(dimensions);
    return StringUtils.join(dimensions, ",");
}
Also used : ArrayList(java.util.ArrayList) TimeFieldSpec(com.linkedin.pinot.common.data.TimeFieldSpec) FieldSpec(com.linkedin.pinot.common.data.FieldSpec) JsonIgnore(org.codehaus.jackson.annotate.JsonIgnore)

Aggregations

JsonIgnore (org.codehaus.jackson.annotate.JsonIgnore)11 ArrayList (java.util.ArrayList)3 Properties (java.util.Properties)3 Date (java.util.Date)2 Predicate (org.apache.commons.collections.Predicate)2 OrderJobInfo (com.emc.vipr.model.catalog.OrderJobInfo)1 X509CertificateFormatException (com.intel.mtwilson.util.x509.X509CertificateFormatException)1 FieldSpec (com.linkedin.pinot.common.data.FieldSpec)1 TimeFieldSpec (com.linkedin.pinot.common.data.TimeFieldSpec)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 CertificateException (java.security.cert.CertificateException)1