FragmentContainer

Inheritance: java.lang.Object

public abstract class FragmentContainer

Represents a container for text fragments with highlighted found terms of one document field.

Learn more

Constructors

Constructor Description
FragmentContainer()

Methods

Method Description
getFieldName() Gets the document field name.
getCount() Gets the number of contained text fragments.
getFragments() Gets an array of contained text fragments.

FragmentContainer()

public FragmentContainer()

getFieldName()

public abstract String getFieldName()

Gets the document field name.

Returns: java.lang.String - The document field name.

getCount()

public abstract int getCount()

Gets the number of contained text fragments.

Returns: int - The number of contained text fragments.

getFragments()

public abstract String[] getFragments()

Gets an array of contained text fragments.

Returns: java.lang.String[] - An array of contained text fragments.