| |
|
| org.sakaiproject.search.index.SegmentInfo
All known Subclasses: org.sakaiproject.search.index.impl.SegmentInfoImpl,
SegmentInfo | public interface SegmentInfo (Code) | | Represents Information about a search segment
author: ieb |
checkSegmentValidity | boolean checkSegmentValidity(boolean logging, String message) throws Exception(Code) | | Check the validity of the segment
throws: Exception - |
doFinalDelete | void doFinalDelete()(Code) | | Perform a final delete removing all files from the local disk
|
getLocalSegmentLastModified | long getLocalSegmentLastModified()(Code) | | Get the time the segment was last modified
|
getLocalSegmentSize | long getLocalSegmentSize()(Code) | | Get the size of the segment on disk
|
getSegmentLocation | File getSegmentLocation()(Code) | | The File that is the segment location on the local filesystem (may not exist)
|
getSize | long getSize()(Code) | | get the size of the segment.
|
getTotalSize | long getTotalSize()(Code) | | Get the size of the segment
|
getVersion | long getVersion()(Code) | | get the current version of the segment
|
isClusterSegment | boolean isClusterSegment()(Code) | | Is the segment part of the cluster or just a stray directory.
|
isCreated | boolean isCreated()(Code) | | If the segment in a created state (ie not new and not deleted)
|
isDeleted | boolean isDeleted()(Code) | | Was the segment deleted
|
isInDb | boolean isInDb()(Code) | | Is the segment in the DB
|
loadSize | void loadSize()(Code) | | calculate the total size (this is expensive)
|
setCreated | void setCreated()(Code) | | Mark the segment as created
|
setDeleted | void setDeleted()(Code) | | Mark the segment as deleted for later deletion
|
setNew | void setNew()(Code) | | Mark the segment as brand new
|
setVersion | void setVersion(long newVersion)(Code) | | Set the version of the segment
Parameters: newVersion - |
|
|
|