BitemporalMapper extends MultipleColumnMapper { @Override public SortField sortField(String name, boolean reverse) { throw new IndexException("Bitemporal mapper '{}' does not support sorting", name); } BitemporalMapper(String field,
                            Boolean validated,
                            String vtFrom,
                            String vtTo,
                            String ttFrom,
                            String ttTo,
                            String pattern,
                            Object nowValue); @Override List<IndexableField> indexableFields(Columns columns); BitemporalDateTime parseBitemporalDate(Object value); @Override SortField sortField(String name, boolean reverse); @Override String toString(); static final String VT_FROM_FIELD_SUFFIX; static final String VT_TO_FIELD_SUFFIX; static final String TT_FROM_FIELD_SUFFIX; static final String TT_TO_FIELD_SUFFIX; final DateParser parser; }
@Test(expected = IndexException.class) public void testSortField() { BitemporalMapper mapper = bitemporalMapper("vtFrom", "vtTo", "ttFrom", "ttTo").build("f"); mapper.sortField("f", false); }