re base code
[sdc.git] / catalog-dao / src / main / java / org / openecomp / sdc / be / dao / cassandra / schema / tables / UserAdminEventTableDescription.java
index 0cfdc2e..9dc8243 100644 (file)
 
 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 UserAdminEventTableDescription 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;
        }
 
@@ -52,7 +51,7 @@ public class UserAdminEventTableDescription implements ITableDescription {
                Map<String, ImmutablePair<DataType, Boolean>> columns = new HashMap<>();
 
                for (UAEFieldsDescription field : UAEFieldsDescription.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;