when(typeMap.getType(Long.class)).thenReturn(new DataType(Types.BIGINT, "LONG"));
when(typeMap.getType(Date.class)).thenReturn(new DataType(Types.TIMESTAMP, "TIMESTAMP"));
when(typeMap.getType(UUID.class)).thenReturn(new DataType(Types.VARCHAR, "VARCHAR"));
// Translators
IndexNameTranslator headIndexNameTranslator = new IndexNameTranslator() {
@Override
public String translate(Index<?> index) {
return "INDEX_HEAD";
}
};
IndexNameTranslator historyIndexNameTranslator = new IndexNameTranslator() {
@Override
public String translate(Index<?> index) {
return "INDEX_HISTORY";
}
};