public abstract class AbstractLazyLoadableCodeToReturn extends CodeToReturn
Constructor and Description |
---|
AbstractLazyLoadableCodeToReturn()
Instantiates a new lazy loadable code to return.
|
AbstractLazyLoadableCodeToReturn(float score,
int documentId)
Instantiates a new lazy loadable code to return.
|
AbstractLazyLoadableCodeToReturn(org.apache.lucene.search.ScoreDoc scoreDoc)
Instantiates a new lazy loadable code to return.
|
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.lucene.document.Document |
buildDocument() |
void |
compact() |
protected abstract void |
doCompact() |
int |
getDocumentId()
Gets the document id.
|
protected EntityIndexService |
getEntityIndexService() |
protected SystemResourceService |
getSystemResourceService() |
void |
hydrate()
Hydrate.
|
boolean |
isHydrated()
Checks if is hydrated.
|
void |
setDocumentId(int documentId)
Sets the document id.
|
equals, getCode, getEntityDescription, getEntityTypes, getEntityUid, getNamespace, getScore, getUri, getVersion, hashCode, setCode, setEntityDescription, setEntityTypes, setEntityUid, setNamespace, setScore, setUri, setVersion, toString
public AbstractLazyLoadableCodeToReturn()
public AbstractLazyLoadableCodeToReturn(org.apache.lucene.search.ScoreDoc scoreDoc)
scoreDoc
- the score docinternalCodeSystemName
- the internal code system nameinternalVersionString
- the internal version stringpublic AbstractLazyLoadableCodeToReturn(float score, int documentId)
internalCodeSystemName
- the internal code system nameinternalVersionString
- the internal version stringscore
- the scoredocumentId
- the document idpublic void compact()
compact
in class CodeToReturn
protected abstract void doCompact()
public void hydrate() throws java.lang.Exception
java.lang.Exception
- the exceptionprotected abstract org.apache.lucene.document.Document buildDocument() throws java.lang.Exception
java.lang.Exception
protected EntityIndexService getEntityIndexService()
protected SystemResourceService getSystemResourceService()
public boolean isHydrated()
public int getDocumentId()
public void setDocumentId(int documentId)
documentId
- the new document id