@Override
 public PostingsConsumer startTerm(BytesRef text) throws IOException {
   assert state == TermsConsumerState.INITIAL
       || state == TermsConsumerState.START && lastPostingsConsumer.docFreq == 0;
   state = TermsConsumerState.START;
   assert lastTerm == null || in.getComparator().compare(text, lastTerm) > 0;
   lastTerm = BytesRef.deepCopyOf(text);
   return lastPostingsConsumer =
       new AssertingPostingsConsumer(in.startTerm(text), fieldInfo, visitedDocs);
 }
 @Override
 public Comparator<BytesRef> getComparator() throws IOException {
   return delegateTermsConsumer.getComparator();
 }
 @Override
 public Comparator<BytesRef> getComparator() throws IOException {
   return in.getComparator();
 }