diff options
Diffstat (limited to 'catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribStatusEventTableDesc.java')
-rw-r--r-- | catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribStatusEventTableDesc.java | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribStatusEventTableDesc.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribStatusEventTableDesc.java index def5fe2bc1..7e64605228 100644 --- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribStatusEventTableDesc.java +++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribStatusEventTableDesc.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -17,56 +17,56 @@ * limitations under the License. * ============LICENSE_END========================================================= */ - package org.openecomp.sdc.be.dao.cassandra.schema.tables; import com.datastax.driver.core.DataType; +import java.util.Map; import org.apache.commons.lang3.tuple.ImmutablePair; import org.openecomp.sdc.be.resources.data.auditing.AuditingTypesConstants; -import java.util.Map; - -public class DistribStatusEventTableDesc extends DistribBaseEventTableDesc{ +public class DistribStatusEventTableDesc extends DistribBaseEventTableDesc { - @Override - protected void updateColumnDistribDescription(Map<String, ImmutablePair<DataType, Boolean>> columns) { - for (DSEFieldsDescription field : DSEFieldsDescription.values()) { - columns.put(field.getName(), new ImmutablePair<>(field.type, field.indexed)); - } - } + @Override + protected void updateColumnDistribDescription(Map<String, ImmutablePair<DataType, Boolean>> columns) { + for (DSEFieldsDescription field : DSEFieldsDescription.values()) { + columns.put(field.getName(), new ImmutablePair<>(field.type, field.indexed)); + } + } - @Override - public String getTableName() { - return AuditingTypesConstants.DISTRIBUTION_STATUS_EVENT_TYPE; - } + @Override + public String getTableName() { + return AuditingTypesConstants.DISTRIBUTION_STATUS_EVENT_TYPE; + } - enum DSEFieldsDescription { - DID("did", DataType.varchar(), true), - CONSUMER_ID("consumer_id", DataType.varchar(), false), - RESOURCE_URL("resoure_URL", DataType.varchar(), false), - TOPIC_NAME("topic_name", DataType.varchar(), false), - STATUS_TIME("status_time", DataType.varchar(), false); + enum DSEFieldsDescription { + // @formatter:off + DID("did", DataType.varchar(), true), + CONSUMER_ID("consumer_id", DataType.varchar(), false), + RESOURCE_URL("resoure_URL", DataType.varchar(), false), + TOPIC_NAME("topic_name", DataType.varchar(), false), + STATUS_TIME("status_time", DataType.varchar(), false); + // @formatter:on - private String name; - private DataType type; - private boolean indexed; + private String name; + private DataType type; + private boolean indexed; - DSEFieldsDescription(String name, DataType type, boolean indexed) { - this.name = name; - this.type = type; - this.indexed = indexed; - } + DSEFieldsDescription(String name, DataType type, boolean indexed) { + this.name = name; + this.type = type; + this.indexed = indexed; + } - public String getName() { - return name; - } + public String getName() { + return name; + } - public DataType getType() { - return type; - } + public DataType getType() { + return type; + } - public boolean isIndexed() { - return indexed; - } - } + public boolean isIndexed() { + return indexed; + } + } } |