Class TextChunk

java.lang.Object
com.norconex.importer.util.chunk.TextChunk

public class TextChunk extends Object
  • Constructor Details

    • TextChunk

      public TextChunk(String field, int fieldValueIndex, int chunkIndex, String text)
      Creates a new TextChunk instance.
      Parameters:
      field - The field name where the text is coming from. null if 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

      public String getField()
      The field name where the text is coming from. null if 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

      public String getText()
      Full or partial text depending whether the maximum read size was reached and it needed to be sent in text chunks.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object