
public class OSingleFileSegment extends Object
| Modifier and Type | Field and Description |
|---|---|
protected OStorageFileConfiguration |
config |
protected OFile |
file |
protected OLocalPaginatedStorage |
storage |
| Constructor and Description |
|---|
OSingleFileSegment(OLocalPaginatedStorage iStorage,
OStorageFileConfiguration iConfig) |
OSingleFileSegment(OLocalPaginatedStorage iStorage,
OStorageFileConfiguration iConfig,
String iType) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
create(int iStartSize) |
void |
delete() |
boolean |
exists() |
OStorageFileConfiguration |
getConfig() |
OFile |
getFile() |
long |
getFilledUpTo() |
long |
getSize() |
void |
open() |
void |
rename(String iOldName,
String iNewName) |
void |
setSoftlyClosed(boolean softlyClosed) |
void |
synch() |
void |
truncate() |
boolean |
wasSoftlyClosedAtPreviousTime() |
protected OLocalPaginatedStorage storage
protected OFile file
protected OStorageFileConfiguration config
public OSingleFileSegment(OLocalPaginatedStorage iStorage, OStorageFileConfiguration iConfig) throws IOException
IOExceptionpublic OSingleFileSegment(OLocalPaginatedStorage iStorage, OStorageFileConfiguration iConfig, String iType) throws IOException
IOExceptionpublic void open()
throws IOException
IOExceptionpublic void create(int iStartSize)
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void delete()
throws IOException
IOExceptionpublic void truncate()
throws IOException
IOExceptionpublic boolean exists()
public long getSize()
public long getFilledUpTo()
public OStorageFileConfiguration getConfig()
public OFile getFile()
public void synch()
throws IOException
IOExceptionpublic void setSoftlyClosed(boolean softlyClosed)
throws IOException
IOExceptionpublic boolean wasSoftlyClosedAtPreviousTime()
public void rename(String iOldName, String iNewName) throws IOException
IOExceptionCopyright © 2009–2025 OrientDB. All rights reserved.