Interface SessionDetails
- All Known Implementing Classes:
DesktopProject
,LocalProject
,ShadowProject
public interface SessionDetails
Interface for session details extension for
Project
s-
Method Summary
Modifier and TypeMethodDescriptionlong
getSessionByteSize
(Session session) Returns the size on disk for the given session.long
getSessionByteSize
(String corpus, String session) Returns the size on disk for the given session.getSessionModificationTime
(Session session) Returns the modification date for the given sessiongetSessionModificationTime
(String corpus, String session) Returns the modification date for the specified session.int
numberOfRecordsInSession
(String corpus, String session) Returns the number of records in a session w/o opening the session.
-
Method Details
-
getSessionModificationTime
Returns the modification date for the given session- Parameters:
session
-- Returns:
- session modification date in system time zone
-
getSessionModificationTime
Returns the modification date for the specified session.- Parameters:
corpus
-session
-- Returns:
- session modification date in system time zone
-
getSessionByteSize
Returns the size on disk for the given session.- Parameters:
session
-- Returns:
- session size in bytes
-
getSessionByteSize
-
numberOfRecordsInSession
Returns the number of records in a session w/o opening the session. This method is faster than using openSession(corpus, session).numberOfRecords()- Parameters:
session
-- Returns:
- number of records in the session
- Throws:
IOException
-