public class CodecCollector extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
CodecCollector.RegisterStatus
The Class RegisterStatus.
|
private static class |
CodecCollector.TermvectorNumberBasic
The Class TermvectorNumberBasic.
|
private static class |
CodecCollector.TermvectorNumberFull
The Class TermvectorNumberFull.
|
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
log
The Constant log.
|
Constructor and Description |
---|
CodecCollector()
Instantiates a new codec collector.
|
Modifier and Type | Method and Description |
---|---|
private static boolean |
availablePrefixes(CodecComponent.ComponentGroup group,
Set<String> knownPrefixes)
Available prefixes.
|
static void |
collectCollection(org.apache.lucene.index.IndexReader reader,
List<Integer> docSet,
CodecComponent.ComponentCollection collectionInfo)
Collect collection.
|
static void |
collectField(String field,
org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.index.IndexReader reader,
org.apache.lucene.index.IndexReader rawReader,
List<Integer> fullDocList,
List<Integer> fullDocSet,
CodecComponent.ComponentField fieldInfo,
Map<MtasSpanQuery,org.apache.lucene.search.spans.SpanWeight> spansQueryWeight,
Status status)
Collect field.
|
private static int |
collectGroupUsingSpans(Map<CodecComponent.GroupHit,org.apache.lucene.search.spans.Spans> list,
List<Integer> docSet,
int docBase,
int docCounter,
Map<Integer,List<CodecComponent.Match>> matchData,
Map<CodecComponent.GroupHit,Long> occurencesSum,
Map<CodecComponent.GroupHit,Integer> occurencesN)
Collect group using spans.
|
private static Set<String> |
collectIntersectionPrefixes(org.apache.lucene.index.FieldInfo fi)
Collect intersection prefixes.
|
private static Set<String> |
collectKnownPrefixes(org.apache.lucene.index.FieldInfo fi)
Collect known prefixes.
|
private static void |
collectPrefixes(org.apache.lucene.index.FieldInfos fieldInfos,
String field,
CodecComponent.ComponentField fieldInfo,
Status status)
Collect prefixes.
|
private static Map<CodecComponent.GroupHit,org.apache.lucene.search.spans.Spans> |
collectSpansForOccurences(Set<CodecComponent.GroupHit> occurences,
Set<String> prefixes,
String field,
org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.index.LeafReaderContext lrc)
Collect spans for occurences.
|
private static void |
collectSpansPositionsAndTokens(Map<MtasSpanQuery,org.apache.lucene.search.spans.SpanWeight> spansQueryWeight,
org.apache.lucene.search.IndexSearcher searcher,
CodecInfo mtasCodecInfo,
org.apache.lucene.index.LeafReader r,
org.apache.lucene.index.LeafReaderContext lrc,
String field,
org.apache.lucene.index.Terms t,
List<Integer> docSet,
List<Integer> docList,
CodecComponent.ComponentField fieldInfo,
org.apache.lucene.index.FieldInfos fieldInfos,
Status status)
Collect spans positions and tokens.
|
private static Map<Integer,long[]> |
computeArguments(Map<MtasSpanQuery,Map<Integer,Integer>> spansNumberData,
MtasSpanQuery[] queries,
Integer[] docSet)
Compute arguments.
|
private static Map<Integer,Integer> |
computePositions(CodecInfo mtasCodecInfo,
org.apache.lucene.index.LeafReader r,
org.apache.lucene.index.LeafReaderContext lrc,
String field,
List<Integer> docSet)
Compute positions.
|
private static CodecCollector.TermvectorNumberBasic |
computeTermvectorNumberBasic(List<Integer> docSet,
int termDocId,
org.apache.lucene.index.TermsEnum termsEnum,
org.apache.lucene.index.LeafReader r,
org.apache.lucene.index.LeafReaderContext lrc,
org.apache.lucene.index.PostingsEnum postingsEnum)
Compute termvector number basic.
|
private static CodecCollector.TermvectorNumberBasic |
computeTermvectorNumberBasic(org.apache.lucene.index.TermsEnum termsEnum,
org.apache.lucene.index.LeafReader r)
Compute termvector number basic.
|
private static CodecCollector.TermvectorNumberFull |
computeTermvectorNumberFull(List<Integer> docSet,
int termDocId,
org.apache.lucene.index.TermsEnum termsEnum,
org.apache.lucene.index.LeafReaderContext lrc,
org.apache.lucene.index.PostingsEnum postingsEnum,
Map<Integer,Integer> positionsData)
Compute termvector number full.
|
private static void |
createDocument(List<CodecComponent.ComponentDocument> documentList,
List<Integer> docList,
String uniqueKeyField,
org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.index.Terms t,
org.apache.lucene.index.LeafReaderContext lrc)
Creates the document.
|
private static void |
createFacet(List<CodecComponent.ComponentFacet> facetList,
Map<Integer,Integer> positionsData,
Map<MtasSpanQuery,Map<Integer,Integer>> spansNumberData,
Map<String,SortedMap<String,int[]>> facetData,
List<Integer> docSet)
Creates the facet.
|
private static void |
createFacetBase(CodecComponent.ComponentFacet cf,
int level,
MtasDataCollector<?,?> dataCollector,
Map<Integer,Integer> positionsData,
Map<MtasSpanQuery,Map<Integer,Integer>> spansNumberData,
Map<String,SortedMap<String,int[]>> facetData,
Integer[] docSet)
Creates the facet base.
|
private static void |
createGroup(List<CodecComponent.ComponentGroup> groupList,
Map<MtasSpanQuery,Map<Integer,List<CodecComponent.Match>>> spansMatchData,
List<Integer> docSet,
org.apache.lucene.index.FieldInfo fieldInfo,
String field,
int docBase,
CodecInfo mtasCodecInfo,
org.apache.lucene.search.IndexSearcher searcher,
org.apache.lucene.index.LeafReaderContext lrc,
Status status)
Creates the group.
|
private static void |
createKwic(List<CodecComponent.ComponentKwic> kwicList,
Map<MtasSpanQuery,Map<Integer,List<CodecComponent.Match>>> spansMatchData,
List<Integer> docList,
String field,
int docBase,
String uniqueKeyField,
CodecInfo mtasCodecInfo,
org.apache.lucene.search.IndexSearcher searcher)
Creates the kwic.
|
private static void |
createList(List<CodecComponent.ComponentList> listList,
Map<MtasSpanQuery,Map<Integer,Integer>> spansNumberData,
Map<MtasSpanQuery,Map<Integer,List<CodecComponent.Match>>> spansMatchData,
List<Integer> docSet,
String field,
int docBase,
String uniqueKeyField,
CodecInfo mtasCodecInfo,
org.apache.lucene.search.IndexSearcher searcher)
Creates the list.
|
private static IntervalTreeNodeData<String> |
createPositionHit(CodecComponent.Match m,
CodecComponent.ComponentGroup group)
Creates the position hit.
|
private static void |
createPositions(List<CodecComponent.ComponentPosition> statsPositionList,
Map<Integer,Integer> positionsData,
List<Integer> docSet)
Creates the positions.
|
private static MtasSpanQuery |
createQueryFromGroupHit(Set<String> prefixes,
String field,
CodecComponent.GroupHit hit)
Creates the query from group hit.
|
private static void |
createStats(List<CodecComponent.ComponentSpan> statsSpanList,
Map<Integer,Integer> positionsData,
Map<MtasSpanQuery,Map<Integer,Integer>> spansNumberData,
Integer[] docSet)
Creates the stats.
|
private static MtasSpanQuery |
createSubQueryFromGroupHit(List<String>[] subHit,
boolean reverse,
String field)
Creates the sub query from group hit.
|
private static void |
createTermvectorFirstRound(List<CodecComponent.ComponentTermVector> termVectorList,
Map<Integer,Integer> positionsData,
List<Integer> docSet,
org.apache.lucene.index.Terms t,
org.apache.lucene.index.LeafReader r,
org.apache.lucene.index.LeafReaderContext lrc)
Creates the termvector first round.
|
private static void |
createTermvectorFull(List<CodecComponent.ComponentTermVector> termVectorList,
Map<Integer,Integer> positionsData,
List<Integer> docSet,
org.apache.lucene.index.Terms t,
org.apache.lucene.index.LeafReader r,
org.apache.lucene.index.LeafReaderContext lrc)
Creates the termvector full.
|
private static void |
createTermvectorSecondRound(List<CodecComponent.ComponentTermVector> termVectorList,
Map<Integer,Integer> positionsData,
List<Integer> docSet,
org.apache.lucene.index.Terms t,
org.apache.lucene.index.LeafReader r,
org.apache.lucene.index.LeafReaderContext lrc,
Status status)
Creates the termvector second round.
|
private static void |
createTokens(List<CodecComponent.ComponentToken> statsTokenList,
Map<Integer,Integer> tokensData,
List<Integer> docSet)
Creates the tokens.
|
private static String |
groupedKeyName(String key,
Double baseRangeSize,
Double baseRangeBase)
Grouped key name.
|
private static Integer[] |
intersectedDocList(int[] facetDocList,
Integer[] docSet)
Intersected doc list.
|
private static boolean |
intersectionPrefixes(CodecComponent.ComponentGroup group,
Set<String> intersectionPrefixes)
Intersection prefixes.
|
private static Integer[] |
mergeDocLists(Integer[] a,
Integer[] b)
Merge doc lists.
|
private static boolean |
needSecondRoundTermvector(List<CodecComponent.ComponentTermVector> termVectorList)
Need second round termvector.
|
private static boolean |
preliminaryRegisterValue(org.apache.lucene.util.BytesRef term,
CodecComponent.ComponentTermVector termVector,
CodecCollector.TermvectorNumberBasic number,
Integer termNumberMaximum,
Integer segmentNumber,
String[] mutableKey)
Preliminary register value.
|
private static CodecCollector.RegisterStatus |
registerValue(org.apache.lucene.util.BytesRef term,
CodecComponent.ComponentTermVector termVector,
CodecCollector.TermvectorNumberBasic number,
Integer termNumberMaximum,
Integer segmentNumber,
boolean forceAccept,
String[] mutableKey)
Register value.
|
private static void |
registerValue(org.apache.lucene.util.BytesRef term,
CodecComponent.ComponentTermVector termVector,
CodecCollector.TermvectorNumberFull number,
String[] mutableKey)
Register value.
|
private static void |
sortMatchList(List<CodecComponent.Match> list)
Sort match list.
|
private static boolean |
validateTermWithDistance(org.apache.lucene.util.BytesRef term,
CodecComponent.ComponentTermVector termVector)
Validate term with distance.
|
private static boolean |
validateTermWithStartValue(org.apache.lucene.util.BytesRef term,
CodecComponent.ComponentTermVector termVector)
Validate term with start value.
|
public static void collectField(String field, org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.index.IndexReader reader, org.apache.lucene.index.IndexReader rawReader, List<Integer> fullDocList, List<Integer> fullDocSet, CodecComponent.ComponentField fieldInfo, Map<MtasSpanQuery,org.apache.lucene.search.spans.SpanWeight> spansQueryWeight, Status status) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, IOException
field
- the fieldsearcher
- the searcherreader
- the readerrawReader
- the raw readerfullDocList
- the full doc listfullDocSet
- the full doc setfieldInfo
- the field infospansQueryWeight
- the spans query weightIllegalAccessException
- the illegal access exceptionIllegalArgumentException
- the illegal argument exceptionInvocationTargetException
- the invocation target exceptionIOException
- Signals that an I/O exception has occurred.public static void collectCollection(org.apache.lucene.index.IndexReader reader, List<Integer> docSet, CodecComponent.ComponentCollection collectionInfo) throws IOException
reader
- the readerdocSet
- the doc setcollectionInfo
- the collection infoIOException
- Signals that an I/O exception has occurred.private static void collectSpansPositionsAndTokens(Map<MtasSpanQuery,org.apache.lucene.search.spans.SpanWeight> spansQueryWeight, org.apache.lucene.search.IndexSearcher searcher, CodecInfo mtasCodecInfo, org.apache.lucene.index.LeafReader r, org.apache.lucene.index.LeafReaderContext lrc, String field, org.apache.lucene.index.Terms t, List<Integer> docSet, List<Integer> docList, CodecComponent.ComponentField fieldInfo, org.apache.lucene.index.FieldInfos fieldInfos, Status status) throws IOException
spansQueryWeight
- the spans query weightsearcher
- the searchermtasCodecInfo
- the mtas codec infor
- the rlrc
- the lrcfield
- the fieldt
- the tdocSet
- the doc setdocList
- the doc listfieldInfo
- the field infofieldInfos
- the field infosIOException
- Signals that an I/O exception has occurred.private static Set<String> collectKnownPrefixes(org.apache.lucene.index.FieldInfo fi) throws IOException
fi
- the fiIOException
- Signals that an I/O exception has occurred.private static Set<String> collectIntersectionPrefixes(org.apache.lucene.index.FieldInfo fi) throws IOException
fi
- the fiIOException
- Signals that an I/O exception has occurred.private static void collectPrefixes(org.apache.lucene.index.FieldInfos fieldInfos, String field, CodecComponent.ComponentField fieldInfo, Status status) throws IOException
fieldInfos
- the field infosfield
- the fieldfieldInfo
- the field infoIOException
- Signals that an I/O exception has occurred.private static Map<CodecComponent.GroupHit,org.apache.lucene.search.spans.Spans> collectSpansForOccurences(Set<CodecComponent.GroupHit> occurences, Set<String> prefixes, String field, org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.index.LeafReaderContext lrc) throws IOException
occurences
- the occurencesprefixes
- the prefixesfield
- the fieldsearcher
- the searcherlrc
- the lrcIOException
- Signals that an I/O exception has occurred.private static MtasSpanQuery createQueryFromGroupHit(Set<String> prefixes, String field, CodecComponent.GroupHit hit)
prefixes
- the prefixesfield
- the fieldhit
- the hitprivate static MtasSpanQuery createSubQueryFromGroupHit(List<String>[] subHit, boolean reverse, String field)
subHit
- the sub hitreverse
- the reversefield
- the fieldprivate static Map<Integer,Integer> computePositions(CodecInfo mtasCodecInfo, org.apache.lucene.index.LeafReader r, org.apache.lucene.index.LeafReaderContext lrc, String field, List<Integer> docSet) throws IOException
mtasCodecInfo
- the mtas codec infor
- the rlrc
- the lrcfield
- the fielddocSet
- the doc setIOException
- Signals that an I/O exception has occurred.private static Map<Integer,long[]> computeArguments(Map<MtasSpanQuery,Map<Integer,Integer>> spansNumberData, MtasSpanQuery[] queries, Integer[] docSet)
spansNumberData
- the spans number dataqueries
- the queriesdocSet
- the doc setprivate static Integer[] intersectedDocList(int[] facetDocList, Integer[] docSet)
facetDocList
- the facet doc listdocSet
- the doc setprivate static void createPositions(List<CodecComponent.ComponentPosition> statsPositionList, Map<Integer,Integer> positionsData, List<Integer> docSet) throws IOException
statsPositionList
- the stats position listpositionsData
- the positions datadocSet
- the doc setIOException
- Signals that an I/O exception has occurred.private static void createTokens(List<CodecComponent.ComponentToken> statsTokenList, Map<Integer,Integer> tokensData, List<Integer> docSet) throws IOException
statsTokenList
- the stats token listtokensData
- the tokens datadocSet
- the doc setIOException
- Signals that an I/O exception has occurred.private static void createStats(List<CodecComponent.ComponentSpan> statsSpanList, Map<Integer,Integer> positionsData, Map<MtasSpanQuery,Map<Integer,Integer>> spansNumberData, Integer[] docSet) throws IOException
statsSpanList
- the stats span listpositionsData
- the positions dataspansNumberData
- the spans number datadocSet
- the doc setIOException
- Signals that an I/O exception has occurred.private static void createList(List<CodecComponent.ComponentList> listList, Map<MtasSpanQuery,Map<Integer,Integer>> spansNumberData, Map<MtasSpanQuery,Map<Integer,List<CodecComponent.Match>>> spansMatchData, List<Integer> docSet, String field, int docBase, String uniqueKeyField, CodecInfo mtasCodecInfo, org.apache.lucene.search.IndexSearcher searcher) throws IOException
listList
- the list listspansNumberData
- the spans number dataspansMatchData
- the spans match datadocSet
- the doc setfield
- the fielddocBase
- the doc baseuniqueKeyField
- the unique key fieldmtasCodecInfo
- the mtas codec infosearcher
- the searcherIOException
- Signals that an I/O exception has occurred.private static void createGroup(List<CodecComponent.ComponentGroup> groupList, Map<MtasSpanQuery,Map<Integer,List<CodecComponent.Match>>> spansMatchData, List<Integer> docSet, org.apache.lucene.index.FieldInfo fieldInfo, String field, int docBase, CodecInfo mtasCodecInfo, org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.index.LeafReaderContext lrc, Status status) throws IOException
groupList
- the group listspansMatchData
- the spans match datadocSet
- the doc setfieldInfo
- the field infofield
- the fielddocBase
- the doc basemtasCodecInfo
- the mtas codec infosearcher
- the searcherlrc
- the lrcIOException
- Signals that an I/O exception has occurred.private static boolean availablePrefixes(CodecComponent.ComponentGroup group, Set<String> knownPrefixes)
group
- the groupknownPrefixes
- the known prefixesprivate static boolean intersectionPrefixes(CodecComponent.ComponentGroup group, Set<String> intersectionPrefixes)
group
- the groupintersectionPrefixes
- the intersection prefixesprivate static IntervalTreeNodeData<String> createPositionHit(CodecComponent.Match m, CodecComponent.ComponentGroup group)
m
- the mgroup
- the groupprivate static int collectGroupUsingSpans(Map<CodecComponent.GroupHit,org.apache.lucene.search.spans.Spans> list, List<Integer> docSet, int docBase, int docCounter, Map<Integer,List<CodecComponent.Match>> matchData, Map<CodecComponent.GroupHit,Long> occurencesSum, Map<CodecComponent.GroupHit,Integer> occurencesN) throws IOException
list
- the listdocSet
- the doc setdocBase
- the doc basedocCounter
- the doc countermatchData
- the match dataoccurencesSum
- the occurences sumoccurencesN
- the occurences NIOException
- Signals that an I/O exception has occurred.private static void sortMatchList(List<CodecComponent.Match> list)
list
- the listprivate static void createDocument(List<CodecComponent.ComponentDocument> documentList, List<Integer> docList, String uniqueKeyField, org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.index.Terms t, org.apache.lucene.index.LeafReaderContext lrc) throws IOException
documentList
- the document listdocList
- the doc listuniqueKeyField
- the unique key fieldsearcher
- the searchert
- the tlrc
- the lrcIOException
- Signals that an I/O exception has occurred.private static void createKwic(List<CodecComponent.ComponentKwic> kwicList, Map<MtasSpanQuery,Map<Integer,List<CodecComponent.Match>>> spansMatchData, List<Integer> docList, String field, int docBase, String uniqueKeyField, CodecInfo mtasCodecInfo, org.apache.lucene.search.IndexSearcher searcher) throws IOException
kwicList
- the kwic listspansMatchData
- the spans match datadocList
- the doc listfield
- the fielddocBase
- the doc baseuniqueKeyField
- the unique key fieldmtasCodecInfo
- the mtas codec infosearcher
- the searcherIOException
- Signals that an I/O exception has occurred.private static void createFacetBase(CodecComponent.ComponentFacet cf, int level, MtasDataCollector<?,?> dataCollector, Map<Integer,Integer> positionsData, Map<MtasSpanQuery,Map<Integer,Integer>> spansNumberData, Map<String,SortedMap<String,int[]>> facetData, Integer[] docSet) throws IOException
cf
- the cflevel
- the leveldataCollector
- the data collectorpositionsData
- the positions dataspansNumberData
- the spans number datafacetData
- the facet datadocSet
- the doc setIOException
- Signals that an I/O exception has occurred.private static String groupedKeyName(String key, Double baseRangeSize, Double baseRangeBase)
key
- the keybaseRangeSize
- the base range sizebaseRangeBase
- the base range baseprivate static Integer[] mergeDocLists(Integer[] a, Integer[] b)
a
- the ab
- the bprivate static void createFacet(List<CodecComponent.ComponentFacet> facetList, Map<Integer,Integer> positionsData, Map<MtasSpanQuery,Map<Integer,Integer>> spansNumberData, Map<String,SortedMap<String,int[]>> facetData, List<Integer> docSet) throws IOException
facetList
- the facet listpositionsData
- the positions dataspansNumberData
- the spans number datafacetData
- the facet datadocSet
- the doc setIOException
- Signals that an I/O exception has occurred.private static void createTermvectorFull(List<CodecComponent.ComponentTermVector> termVectorList, Map<Integer,Integer> positionsData, List<Integer> docSet, org.apache.lucene.index.Terms t, org.apache.lucene.index.LeafReader r, org.apache.lucene.index.LeafReaderContext lrc) throws IOException
termVectorList
- the term vector listpositionsData
- the positions datadocSet
- the doc sett
- the tr
- the rlrc
- the lrcIOException
- Signals that an I/O exception has occurred.private static void createTermvectorFirstRound(List<CodecComponent.ComponentTermVector> termVectorList, Map<Integer,Integer> positionsData, List<Integer> docSet, org.apache.lucene.index.Terms t, org.apache.lucene.index.LeafReader r, org.apache.lucene.index.LeafReaderContext lrc) throws IOException
termVectorList
- the term vector listpositionsData
- the positions datadocSet
- the doc sett
- the tr
- the rlrc
- the lrcIOException
- Signals that an I/O exception has occurred.private static void createTermvectorSecondRound(List<CodecComponent.ComponentTermVector> termVectorList, Map<Integer,Integer> positionsData, List<Integer> docSet, org.apache.lucene.index.Terms t, org.apache.lucene.index.LeafReader r, org.apache.lucene.index.LeafReaderContext lrc, Status status) throws IOException
termVectorList
- the term vector listpositionsData
- the positions datadocSet
- the doc sett
- the tr
- the rlrc
- the lrcIOException
- Signals that an I/O exception has occurred.private static boolean validateTermWithStartValue(org.apache.lucene.util.BytesRef term, CodecComponent.ComponentTermVector termVector)
term
- the termtermVector
- the term vectorprivate static boolean validateTermWithDistance(org.apache.lucene.util.BytesRef term, CodecComponent.ComponentTermVector termVector) throws IOException
term
- the termtermVector
- the term vectorIOException
- Signals that an I/O exception has occurred.private static boolean needSecondRoundTermvector(List<CodecComponent.ComponentTermVector> termVectorList) throws IOException
termVectorList
- the term vector listIOException
- Signals that an I/O exception has occurred.private static CodecCollector.RegisterStatus registerValue(org.apache.lucene.util.BytesRef term, CodecComponent.ComponentTermVector termVector, CodecCollector.TermvectorNumberBasic number, Integer termNumberMaximum, Integer segmentNumber, boolean forceAccept, String[] mutableKey) throws IOException
term
- the termtermVector
- the term vectornumber
- the numbertermNumberMaximum
- the term number maximumsegmentNumber
- the segment numberforceAccept
- the force acceptmutableKey
- the mutable keyIOException
- Signals that an I/O exception has occurred.private static boolean preliminaryRegisterValue(org.apache.lucene.util.BytesRef term, CodecComponent.ComponentTermVector termVector, CodecCollector.TermvectorNumberBasic number, Integer termNumberMaximum, Integer segmentNumber, String[] mutableKey) throws IOException
term
- the termtermVector
- the term vectornumber
- the numbertermNumberMaximum
- the term number maximumsegmentNumber
- the segment numbermutableKey
- the mutable keyIOException
- Signals that an I/O exception has occurred.private static void registerValue(org.apache.lucene.util.BytesRef term, CodecComponent.ComponentTermVector termVector, CodecCollector.TermvectorNumberFull number, String[] mutableKey) throws IOException
term
- the termtermVector
- the term vectornumber
- the numbermutableKey
- the mutable keyIOException
- Signals that an I/O exception has occurred.private static CodecCollector.TermvectorNumberBasic computeTermvectorNumberBasic(org.apache.lucene.index.TermsEnum termsEnum, org.apache.lucene.index.LeafReader r) throws IOException
termsEnum
- the terms enumr
- the rIOException
- Signals that an I/O exception has occurred.private static CodecCollector.TermvectorNumberBasic computeTermvectorNumberBasic(List<Integer> docSet, int termDocId, org.apache.lucene.index.TermsEnum termsEnum, org.apache.lucene.index.LeafReader r, org.apache.lucene.index.LeafReaderContext lrc, org.apache.lucene.index.PostingsEnum postingsEnum) throws IOException
docSet
- the doc settermDocId
- the term doc idtermsEnum
- the terms enumr
- the rlrc
- the lrcpostingsEnum
- the postings enumIOException
- Signals that an I/O exception has occurred.private static CodecCollector.TermvectorNumberFull computeTermvectorNumberFull(List<Integer> docSet, int termDocId, org.apache.lucene.index.TermsEnum termsEnum, org.apache.lucene.index.LeafReaderContext lrc, org.apache.lucene.index.PostingsEnum postingsEnum, Map<Integer,Integer> positionsData) throws IOException
docSet
- the doc settermDocId
- the term doc idtermsEnum
- the terms enumlrc
- the lrcpostingsEnum
- the postings enumpositionsData
- the positions dataIOException
- Signals that an I/O exception has occurred.Copyright © 2018 Meertens Institute. All rights reserved.