public static class ReferenceCountingReadOnlyIndexReaderFactory.ReferenceCountingReadOnlyIndexReader extends FilterIndexReader implements ReferenceCounting, org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
Modifier and Type | Method and Description |
---|---|
void |
decRef() |
protected void |
doClose()
We want to avoid setting the closed flag on our wrapped stream, passing on all decrefs.
|
org.apache.lucene.document.Document |
document(int n,
FieldSelector fieldSelector) |
protected void |
doDelete(int n) |
boolean |
getClosed() |
long |
getCreationTime() |
String |
getId()
Get the id for this reader.
|
String |
getId(int n) |
String[] |
getIds(int n) |
boolean |
getInvalidForReuse() |
String |
getIsCategory(int n) |
String[] |
getLinkAspects(int n) |
TermDocs |
getNodeDocs() |
String[] |
getParents(int n) |
String |
getPath(int n) |
String |
getPathLinkId(int n) |
int |
getReferenceCount()
Get the number of references
|
Deque<Throwable> |
getReferences() |
String |
getType(int n) |
void |
incRef() |
boolean |
isInvalidForReuse()
Determine if valid for reuse
|
void |
setInvalidForReuse()
Mark is invalid for reuse.
|
public long getCreationTime()
getCreationTime
in interface ReferenceCounting
public Deque<Throwable> getReferences()
getReferences
in interface ReferenceCounting
public void incRef()
public int getReferenceCount()
ReferenceCounting
getReferenceCount
in interface ReferenceCounting
public boolean getInvalidForReuse()
public boolean getClosed()
public void setInvalidForReuse() throws IOException
ReferenceCounting
setInvalidForReuse
in interface ReferenceCounting
IOException
public void decRef() throws IOException
IOException
protected void doClose() throws IOException
IOException
protected void doDelete(int n) throws IOException
IOException
public org.apache.lucene.document.Document document(int n, FieldSelector fieldSelector) throws IOException
IOException
public String getId()
ReferenceCounting
getId
in interface ReferenceCounting
public boolean isInvalidForReuse()
ReferenceCounting
isInvalidForReuse
in interface ReferenceCounting
public String getId(int n) throws IOException
getId
in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
IOException
public String getPathLinkId(int n) throws IOException
getPathLinkId
in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
IOException
public String[] getIds(int n) throws IOException
getIds
in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
IOException
public String[] getLinkAspects(int n) throws IOException
getLinkAspects
in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
IOException
public String[] getParents(int n) throws IOException
getParents
in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
IOException
public String getPath(int n) throws IOException
getPath
in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
IOException
public String getType(int n) throws IOException
getType
in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
IOException
public String getIsCategory(int n) throws IOException
getIsCategory
in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
IOException
public TermDocs getNodeDocs() throws IOException
getNodeDocs
in interface org.alfresco.repo.search.impl.lucene.index.CachingIndexReader
IOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.