public class IndexableAnchorText extends Indexable
| Constructor and Description |
|---|
IndexableAnchorText() |
IndexableAnchorText(String docid,
tl.lin.data.array.ArrayListWritable<AnchorText> anchors) |
IndexableAnchorText(String docid,
tl.lin.data.array.ArrayListWritable<AnchorText> anchors,
int maxContentLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
concatenateAnchors(tl.lin.data.array.ArrayListWritable<AnchorText> anchors) |
void |
concatenateAnchors(tl.lin.data.array.ArrayListWritable<AnchorText> anchors,
int maxContentLength) |
void |
createHTML(tl.lin.data.array.ArrayListWritable<AnchorText> anchors) |
String |
getContent()
Returns the content of the document.
|
String |
getDisplayContentType()
Returns the type of the display content, per IANA MIME Media Type (e.g., "text/html").
|
String |
getDocid()
Returns the globally-unique String identifier of the document within the collection.
|
void |
readFields(DataInput in) |
void |
setDocid(String docid) |
String |
toString() |
void |
write(DataOutput out) |
getDisplayContentpublic IndexableAnchorText()
public IndexableAnchorText(String docid, tl.lin.data.array.ArrayListWritable<AnchorText> anchors)
public IndexableAnchorText(String docid, tl.lin.data.array.ArrayListWritable<AnchorText> anchors, int maxContentLength)
public void clear()
public void setDocid(String docid)
public void concatenateAnchors(tl.lin.data.array.ArrayListWritable<AnchorText> anchors)
public void concatenateAnchors(tl.lin.data.array.ArrayListWritable<AnchorText> anchors, int maxContentLength)
public void createHTML(tl.lin.data.array.ArrayListWritable<AnchorText> anchors)
public String getContent()
IndexablegetContent in class Indexablepublic String getDisplayContentType()
Indexablehttp://www.iana.org/assignments/media-types/index.htmlgetDisplayContentType in class Indexablepublic String getDocid()
Indexablepublic void readFields(DataInput in) throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
IOExceptionCopyright © 2015. All rights reserved.