diff options
Diffstat (limited to 'catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/CategoryEventTableDescription.java')
-rw-r--r-- | catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/CategoryEventTableDescription.java | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/CategoryEventTableDescription.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/CategoryEventTableDescription.java index facbd5209a..63aab3220c 100644 --- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/CategoryEventTableDescription.java +++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/CategoryEventTableDescription.java @@ -20,29 +20,28 @@ package org.openecomp.sdc.be.dao.cassandra.schema.tables; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - +import com.datastax.driver.core.DataType; import org.apache.commons.lang3.tuple.ImmutablePair; import org.openecomp.sdc.be.dao.cassandra.schema.ITableDescription; import org.openecomp.sdc.be.resources.data.auditing.AuditingTypesConstants; -import com.datastax.driver.core.DataType; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; public class CategoryEventTableDescription implements ITableDescription { @Override public List<ImmutablePair<String, DataType>> primaryKeys() { List<ImmutablePair<String, DataType>> keys = new ArrayList<>(); - keys.add(new ImmutablePair<String, DataType>(TIMEBASED_UUID_FIELD, DataType.timeuuid())); + keys.add(new ImmutablePair<>(TIMEBASED_UUID_FIELD, DataType.timeuuid())); return keys; } @Override public List<ImmutablePair<String, DataType>> clusteringKeys() { List<ImmutablePair<String, DataType>> keys = new ArrayList<>(); - keys.add(new ImmutablePair<String, DataType>(TIMESTAMP_FIELD, DataType.timestamp())); + keys.add(new ImmutablePair<>(TIMESTAMP_FIELD, DataType.timestamp())); return keys; } @@ -51,7 +50,7 @@ public class CategoryEventTableDescription implements ITableDescription { Map<String, ImmutablePair<DataType, Boolean>> columns = new HashMap<>(); for (CEFieldsDescription field : CEFieldsDescription.values()) { - columns.put(field.getName(), new ImmutablePair<DataType, Boolean>(field.type, field.indexed)); + columns.put(field.getName(), new ImmutablePair<>(field.type, field.indexed)); } return columns; |