| java.lang.Object org.sakaiproject.search.index.impl.SegmentInfoImpl
SegmentInfoImpl | public class SegmentInfoImpl implements SegmentInfo(Code) | | segment info contains information on the segment, name, version, in db
author: ieb |
STATE_CREATED | final public static int STATE_CREATED(Code) | | |
STATE_DELETED | final public static int STATE_DELETED(Code) | | |
STATE_NEW | final public static int STATE_NEW(Code) | | |
TIMESTAMP_FILE | final public static String TIMESTAMP_FILE(Code) | | |
checkSegmentValidity | public boolean checkSegmentValidity(boolean logging, String message)(Code) | | get the checksum out of the segment by the segment name
Parameters: segmentName - throws: Exception - throws: IOException - |
deleteAll | public static void deleteAll(File f)(Code) | | delete all files under this file and including this file
Parameters: f - |
doFinalDelete | public void doFinalDelete()(Code) | | |
getLocalSegmentLastModified | public long getLocalSegmentLastModified()(Code) | | |
getLocalSegmentSize | public long getLocalSegmentSize()(Code) | | |
getSegmentLocation | public File getSegmentLocation()(Code) | | |
getSegmentLocation | public static File getSegmentLocation(String name, boolean structured, String searchIndexDirectory)(Code) | | |
getSize | public long getSize()(Code) | | |
getState | public int getState()(Code) | | |
getTotalSize | public long getTotalSize()(Code) | | |
getVersion | public long getVersion()(Code) | | |
isClusterSegment | public boolean isClusterSegment()(Code) | | |
isCreated | public boolean isCreated()(Code) | | |
isDeleted | public boolean isDeleted()(Code) | | |
isInDb | public boolean isInDb()(Code) | | |
isNew | public boolean isNew()(Code) | | |
loadSize | public void loadSize()(Code) | | |
newLocalSegmentInfo | public static SegmentInfo newLocalSegmentInfo(File file, boolean localStructuredStorage, String searchIndexDirectory)(Code) | | |
newSharedSegmentInfo | public static SegmentInfo newSharedSegmentInfo(String name, long version, boolean localStructuredStorage, String searchIndexDirectory)(Code) | | |
setCreated | public void setCreated()(Code) | | |
setDeleted | public void setDeleted()(Code) | | |
setInDb | public void setInDb(boolean b)(Code) | | |
setNew | public void setNew()(Code) | | |
setState | public void setState(int state)(Code) | | |
setTimeStamp | public void setTimeStamp(long l) throws IOException(Code) | | set the timestamp in the segment
Parameters: l - throws: IOException - |
setVersion | public void setVersion(long l)(Code) | | |
|
|