public static class BaseTermVectorsFormatTestCase.RandomTokenStream extends TokenStream
AttributeSource.StateDEFAULT_TOKEN_ATTRIBUTE_FACTORY| Constructor and Description | 
|---|
| RandomTokenStream(int len,
                 String[] sampleTerms,
                 BytesRef[] sampleTermBytes) | 
| Modifier and Type | Method and Description | 
|---|---|
| int[] | getEndOffsets() | 
| BytesRef[] | getPayloads() | 
| int[] | getPositionsIncrements() | 
| int[] | getStartOffsets() | 
| BytesRef[] | getTermBytes() | 
| String[] | getTerms() | 
| boolean | hasPayloads() | 
| boolean | incrementToken() | 
| protected BytesRef | randomPayload() | 
| void | reset() | 
close, endaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringprotected BytesRef randomPayload()
public boolean hasPayloads()
public String[] getTerms()
public BytesRef[] getTermBytes()
public int[] getPositionsIncrements()
public int[] getStartOffsets()
public int[] getEndOffsets()
public BytesRef[] getPayloads()
public void reset()
           throws IOException
reset in class TokenStreamIOExceptionpublic final boolean incrementToken()
                             throws IOException
incrementToken in class TokenStreamIOExceptionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.