|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.enterprise.adaptor.DocIdPusher.Record.Builder
public static class DocIdPusher.Record.Builder
Builder to create instances of Record.
| Constructor Summary | |
|---|---|
DocIdPusher.Record.Builder(DocId id)
Create mutable builder for building DocIdPusher.Record instances. |
|
DocIdPusher.Record.Builder(DocIdPusher.Record startPoint)
Create mutable builder initialized to values provided by startPoint. |
|
| Method Summary | |
|---|---|
DocIdPusher.Record |
build()
Creates single instance of Record. |
DocIdPusher.Record.Builder |
setCrawlImmediately(boolean crawlImmediately)
Inform the GSA that the document has been modified, and that the GSA should give high priority to recrawling the document. |
DocIdPusher.Record.Builder |
setCrawlOnce(boolean crawlOnce)
Instruct the GSA to not recrawl the document after the initial retrieval. |
DocIdPusher.Record.Builder |
setDeleteFromIndex(boolean b)
Set whether the GSA is being informed the document has been deleted. |
DocIdPusher.Record.Builder |
setDocId(DocId id)
Set the identifier for the document this record is providing information for. |
DocIdPusher.Record.Builder |
setLastModified(Date lastModified)
Provides the last-modified date of the document. |
DocIdPusher.Record.Builder |
setLock(boolean lock)
Instruct the GSA to "lock" the document into its index. |
DocIdPusher.Record.Builder |
setResultLink(URI link)
Set the URI to be displayed to the user in search results. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocIdPusher.Record.Builder(DocId id)
DocIdPusher.Record instances.
id - non-null identifier for the document being describedpublic DocIdPusher.Record.Builder(DocIdPusher.Record startPoint)
startPoint. This is useful for making changes to an existing Record.
| Method Detail |
|---|
public DocIdPusher.Record.Builder setDocId(DocId id)
id - non-null identifier for the document
public DocIdPusher.Record.Builder setDeleteFromIndex(boolean b)
false, the GSA is being informed the document exists. The
default is false.
public DocIdPusher.Record.Builder setLastModified(Date lastModified)
null, the GSA must use
its natural crawling of content to discover changes. The default is
null.
public DocIdPusher.Record.Builder setResultLink(URI link)
null, then the crawl URI representing the DocId is used. The
default is null.
public DocIdPusher.Record.Builder setCrawlImmediately(boolean crawlImmediately)
false.
public DocIdPusher.Record.Builder setCrawlOnce(boolean crawlOnce)
false.
public DocIdPusher.Record.Builder setLock(boolean lock)
false.
public DocIdPusher.Record build()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||