Package it.unimi.di.big.mg4j.tool
Interface Scan.VirtualDocumentFragment
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AnchorExtractor.Anchor
- Enclosing class:
- Scan
public static interface Scan.VirtualDocumentFragment extends Serializable
An interface that describes a virtual document fragment. When indexing inScan.IndexingType.VIRTUALmode, documents are composed by fragments (typically, some text surrounding an anchor) that are referred to a document by some spefication (in the previous case, the contenthrefattribute of the anchor). This interface is used to describe such fragments (see, e.g.,AnchorExtractor).- See Also:
VirtualDocumentResolver
-
-
Method Summary
Modifier and Type Method Description MutableStringdocumentSpecifier()The specification of the document to which this fragment belong.MutableStringtext()The textual content of this fragment.
-
-
-
Method Detail
-
documentSpecifier
MutableString documentSpecifier()
The specification of the document to which this fragment belong.- Returns:
- the specification of the document to which this fragment belong.
- See Also:
VirtualDocumentResolver
-
text
MutableString text()
The textual content of this fragment.- Returns:
- the textual content of this fragment.
-
-