@SuppressWarnings("unchecked") private <T> IndexerImpl<E, T> complexIndex(Object[] columns, final Mapper<E, ?> mapper) { Index index = makeIndex(); ComplexIndex<E> complexIndex = new ComplexIndexImpl<E>((Mapper<E, Object>) mapper, index); for (Object col : columns) { String colName = jokerator.decode(col); prop(colName).addComplexIndex(complexIndex); } allComplexIndices = U.expand(allComplexIndices, complexIndex); E entity = newEntity(); for (long id : ids()) { get_(id, entity); complexIndex.add(entity, id); } return new IndexerImpl<E, T>(complexIndex, index); }
if (indexer instanceof IndexerImpl) { IndexerImpl<?, ?> ind = (IndexerImpl<?, ?>) indexer; Index index = ind.getIndex(); return index.find(op, value); } else {
if (indexer instanceof IndexerImpl) { IndexerImpl<?, ?> ind = (IndexerImpl<?, ?>) indexer; Index index = ind.getIndex(); return index.find(op, value); } else {
@SuppressWarnings("unchecked") private <T> IndexerImpl<E, T> complexIndex(Object[] columns, final Mapper<E, ?> mapper) { Index index = makeIndex(); ComplexIndex<E> complexIndex = new ComplexIndexImpl<E>((Mapper<E, Object>) mapper, index); for (Object col : columns) { String colName = jokerator.decode(col); prop(colName).addComplexIndex(complexIndex); } allComplexIndices = U.expand(allComplexIndices, complexIndex); E entity = newEntity(); for (long id : ids()) { get_(id, entity); complexIndex.add(entity, id); } return new IndexerImpl<E, T>(complexIndex, index); }
if (indexer instanceof IndexerImpl) { IndexerImpl<?, ?> ind = (IndexerImpl<?, ?>) indexer; Index index = ind.getIndex(); return index.find(op, value); } else {
@SuppressWarnings("unchecked") private <T> IndexerImpl<E, T> complexIndex(Object[] columns, final Mapper<E, ?> mapper) { Index index = makeIndex(); ComplexIndex<E> complexIndex = new ComplexIndexImpl<E>((Mapper<E, Object>) mapper, index); for (Object col : columns) { String colName = jokerator.decode(col); prop(colName).addComplexIndex(complexIndex); } allComplexIndices = U.expand(allComplexIndices, complexIndex); E entity = newEntity(); for (long id : ids()) { get_(id, entity); complexIndex.add(entity, id); } return new IndexerImpl<E, T>(complexIndex, index); }