public static class BaseTermVectorsFormatTestCase.RandomTokenStream extends TokenStream
AttributeSource.State
DEFAULT_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, end
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
protected 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 TokenStream
IOException
public final boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.