Package com.norconex.importer.util.chunk
Class TextChunk
java.lang.Object
com.norconex.importer.util.chunk.TextChunk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintIndex of the text portion currently processed.getField()The field name where the text is coming from.intOn multi-valued field, the index of the value currently processed.getText()Full or partial text depending whether the maximum read size was reached and it needed to be sent in text chunks.inthashCode()toString()
-
Constructor Details
-
TextChunk
Creates a newTextChunkinstance.- Parameters:
field- The field name where the text is coming from.nullif the text comes from the document content instead.fieldValueIndex- On multi-valued field, the index of the value currently processed.chunkIndex- Index of the text portion currently processed.text- Full or partial text depending whether the maximum read size was reached and it needed to be sent in text chunks.
-
-
Method Details
-
getField
The field name where the text is coming from.nullif the text comes from the document content instead. -
getFieldValueIndex
public int getFieldValueIndex()On multi-valued field, the index of the value currently processed. -
getChunkIndex
public int getChunkIndex()Index of the text portion currently processed. -
getText
Full or partial text depending whether the maximum read size was reached and it needed to be sent in text chunks. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-