info.archinnov.achilles.internals.entities.EntityWithComplexIndices Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2012-2021 DuyHai DOAN
*
* 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.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package info.archinnov.achilles.internals.entities;
import java.util.List;
import java.util.Map;
import java.util.Set;
import info.archinnov.achilles.annotations.*;
@Table
public class EntityWithComplexIndices {
@PartitionKey
private Long id;
@ClusteringColumn(1)
private int clust1;
@ClusteringColumn(2)
private int clust2;
@ClusteringColumn(3)
private String clust3;
@Index
@Column
private String simpleIndex;
@Index
@Column
private List collectionIndex;
@Index
@Column
@Frozen
private Set fullIndexOnCollection;
@Column
private Map<@Index String, String> indexOnMapKey;
@Column
private Map indexOnMapValue;
@Index
@Column
private Map indexOnMapEntry;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public int getClust1() {
return clust1;
}
public void setClust1(int clust1) {
this.clust1 = clust1;
}
public int getClust2() {
return clust2;
}
public void setClust2(int clust2) {
this.clust2 = clust2;
}
public String getClust3() {
return clust3;
}
public void setClust3(String clust3) {
this.clust3 = clust3;
}
public String getSimpleIndex() {
return simpleIndex;
}
public void setSimpleIndex(String simpleIndex) {
this.simpleIndex = simpleIndex;
}
public List getCollectionIndex() {
return collectionIndex;
}
public void setCollectionIndex(List collectionIndex) {
this.collectionIndex = collectionIndex;
}
public Set getFullIndexOnCollection() {
return fullIndexOnCollection;
}
public void setFullIndexOnCollection(Set fullIndexOnCollection) {
this.fullIndexOnCollection = fullIndexOnCollection;
}
public Map getIndexOnMapKey() {
return indexOnMapKey;
}
public void setIndexOnMapKey(Map indexOnMapKey) {
this.indexOnMapKey = indexOnMapKey;
}
public Map getIndexOnMapEntry() {
return indexOnMapEntry;
}
public void setIndexOnMapEntry(Map indexOnMapEntry) {
this.indexOnMapEntry = indexOnMapEntry;
}
public Map getIndexOnMapValue() {
return indexOnMapValue;
}
public void setIndexOnMapValue(Map indexOnMapValue) {
this.indexOnMapValue = indexOnMapValue;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy