public abstract class FieldByteOffsetStrategy extends Object
FieldOffsetStrategy to load byte offsets from payloads.
A lot of this code is copied straight from the above class.| Modifier and Type | Class and Description |
|---|---|
static class |
FieldByteOffsetStrategy.PostingsByteOffsetStrategy |
static class |
FieldByteOffsetStrategy.PostingsWithTermVectorsByteOffsetStrategy |
static class |
FieldByteOffsetStrategy.TermVectorByteOffsetStrategy |
| Modifier and Type | Field and Description |
|---|---|
protected OcrHComponents |
components |
| Constructor and Description |
|---|
FieldByteOffsetStrategy(OcrHComponents components) |
| Modifier and Type | Method and Description |
|---|---|
protected ByteOffsetsEnum |
createByteOffsetsEnumFromReader(org.apache.lucene.index.LeafReader leafReader,
int doc) |
protected void |
createByteOffsetsEnumsForAutomata(org.apache.lucene.index.Terms termsIndex,
int doc,
List<ByteOffsetsEnum> results) |
protected void |
createByteOffsetsEnumsForTerms(org.apache.lucene.util.BytesRef[] sourceTerms,
org.apache.lucene.index.Terms termsIndex,
int doc,
List<ByteOffsetsEnum> results) |
abstract ByteOffsetsEnum |
getByteOffsetsEnum(org.apache.lucene.index.LeafReader leafReader,
int doc) |
String |
getField() |
abstract org.apache.lucene.search.uhighlight.UnifiedHighlighter.OffsetSource |
getOffsetSource() |
protected final OcrHComponents components
public FieldByteOffsetStrategy(OcrHComponents components)
public String getField()
public abstract org.apache.lucene.search.uhighlight.UnifiedHighlighter.OffsetSource getOffsetSource()
public abstract ByteOffsetsEnum getByteOffsetsEnum(org.apache.lucene.index.LeafReader leafReader, int doc) throws IOException
IOExceptionprotected ByteOffsetsEnum createByteOffsetsEnumFromReader(org.apache.lucene.index.LeafReader leafReader, int doc) throws IOException
IOExceptionprotected void createByteOffsetsEnumsForTerms(org.apache.lucene.util.BytesRef[] sourceTerms,
org.apache.lucene.index.Terms termsIndex,
int doc,
List<ByteOffsetsEnum> results)
throws IOException
IOExceptionprotected void createByteOffsetsEnumsForAutomata(org.apache.lucene.index.Terms termsIndex,
int doc,
List<ByteOffsetsEnum> results)
throws IOException
IOExceptionCopyright © 2019. All rights reserved.