public class UniformSplitTermsReader extends FieldsProducer
UniformSplitTermsWriter| Modifier and Type | Field and Description |
|---|---|
protected IndexInput |
blockInput |
protected IndexInput |
dictionaryInput |
protected Map<String,UniformSplitTerms> |
fieldToTermsMap |
protected PostingsReaderBase |
postingsReader |
protected Collection<String> |
sortedFieldNames |
protected static int |
VERSION_START |
EMPTY_ARRAY| Modifier | Constructor and Description |
|---|---|
|
UniformSplitTermsReader(PostingsReaderBase postingsReader,
SegmentReadState state,
BlockDecoder blockDecoder) |
protected |
UniformSplitTermsReader(PostingsReaderBase postingsReader,
SegmentReadState state,
BlockDecoder blockDecoder,
String codecName,
int versionStart,
int versionCurrent,
String termsBlocksExtension,
String dictionaryExtension) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIntegrity() |
void |
close() |
protected void |
fillFieldMap(PostingsReaderBase postingsReader,
BlockDecoder blockDecoder,
IndexInput dictionaryInput,
IndexInput blockInput,
Collection<FieldMetadata> fieldMetadataCollection,
FieldInfos fieldInfos) |
protected long |
getTermsRamBytesUsed() |
Iterator<String> |
iterator() |
protected static Collection<FieldMetadata> |
parseFieldsMetadata(IndexInput indexInput,
FieldInfos fieldInfos) |
long |
ramBytesUsed() |
protected static void |
seekFieldsMetadata(IndexInput indexInput)
Positions the given
IndexInput at the beginning of the fields metadata. |
int |
size() |
Terms |
terms(String field) |
getMergeInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResourcesforEach, spliteratorprotected static final int VERSION_START
protected final PostingsReaderBase postingsReader
protected final IndexInput blockInput
protected final IndexInput dictionaryInput
protected final Map<String,UniformSplitTerms> fieldToTermsMap
protected final Collection<String> sortedFieldNames
public UniformSplitTermsReader(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder) throws IOException
blockDecoder - Optional block decoder, may be null if none.
It can be used for decompression or decryption.IOExceptionprotected UniformSplitTermsReader(PostingsReaderBase postingsReader, SegmentReadState state, BlockDecoder blockDecoder, String codecName, int versionStart, int versionCurrent, String termsBlocksExtension, String dictionaryExtension) throws IOException
blockDecoder - Optional block decoder, may be null if none.
It can be used for decompression or decryption.IOExceptionprotected void fillFieldMap(PostingsReaderBase postingsReader, BlockDecoder blockDecoder, IndexInput dictionaryInput, IndexInput blockInput, Collection<FieldMetadata> fieldMetadataCollection, FieldInfos fieldInfos) throws IOException
IOExceptionprotected static Collection<FieldMetadata> parseFieldsMetadata(IndexInput indexInput, FieldInfos fieldInfos) throws IOException
indexInput - IndexInput must be positioned to the fields metadata
details by calling seekFieldsMetadata(IndexInput) before this call.IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FieldsProducerIOExceptionpublic void checkIntegrity()
throws IOException
checkIntegrity in class FieldsProducerIOExceptionpublic long ramBytesUsed()
protected long getTermsRamBytesUsed()
protected static void seekFieldsMetadata(IndexInput indexInput) throws IOException
IndexInput at the beginning of the fields metadata.IOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.