public class PersistentEntityStoreImpl extends java.lang.Object implements jetbrains.exodus.entitystore.PersistentEntityStore, FlushLog.Member
| Constructor and Description |
|---|
PersistentEntityStoreImpl(@NotNull jetbrains.exodus.env.Environment environment,
@Nullable jetbrains.exodus.entitystore.BlobVault blobVault,
@NotNull java.lang.String name) |
PersistentEntityStoreImpl(@NotNull jetbrains.exodus.env.Environment environment,
@NotNull java.lang.String name) |
PersistentEntityStoreImpl(@NotNull jetbrains.exodus.entitystore.PersistentEntityStoreConfig config,
@NotNull jetbrains.exodus.env.Environment environment,
@Nullable jetbrains.exodus.entitystore.BlobVault blobVault,
@NotNull java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull jetbrains.exodus.entitystore.StoreTransaction |
beginExclusiveTransaction() |
@NotNull PersistentStoreTransaction |
beginReadonlyTransaction() |
@NotNull PersistentStoreTransaction |
beginTransaction() |
PersistentStoreTransaction |
beginTransactionAt(long highAddress) |
long |
blobFileCount(@NotNull PersistentStoreTransaction txn) |
void |
clear() |
void |
clearBlobs(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity) |
void |
clearProperties(@NotNull PersistentStoreTransaction txn,
@NotNull jetbrains.exodus.entitystore.Entity entity)
Clears all properties of specified entity.
|
void |
close() |
<T> T |
computeInExclusiveTransaction(@NotNull jetbrains.exodus.entitystore.StoreTransactionalComputable<T> computable) |
<T> T |
computeInReadonlyTransaction(@NotNull jetbrains.exodus.entitystore.StoreTransactionalComputable<T> computable) |
<T> T |
computeInTransaction(@NotNull jetbrains.exodus.entitystore.StoreTransactionalComputable<T> computable) |
boolean |
deleteBlob(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity,
@NotNull java.lang.String blobName) |
void |
deleteEntityType(@NotNull java.lang.String entityTypeName) |
void |
deleteLinkName(@NotNull PersistentStoreTransaction txn,
@NotNull java.lang.String linkName) |
boolean |
deleteProperty(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity,
@NotNull java.lang.String propertyName) |
void |
executeInExclusiveTransaction(@NotNull jetbrains.exodus.entitystore.StoreTransactionalExecutable executable) |
void |
executeInReadonlyTransaction(@NotNull jetbrains.exodus.entitystore.StoreTransactionalExecutable executable) |
void |
executeInTransaction(@NotNull jetbrains.exodus.entitystore.StoreTransactionalExecutable executable) |
java.util.List<java.lang.String> |
getAllLinkNames(@NotNull PersistentStoreTransaction txn) |
java.util.List<PersistentSequence> |
getAllSequences() |
@NotNull PersistentStoreTransaction |
getAndCheckCurrentTransaction() |
@NotNull EntityStoreSharedAsyncProcessor |
getAsyncProcessor() |
@NotNull jetbrains.exodus.backup.BackupStrategy |
getBackupStrategy() |
@Nullable java.io.InputStream |
getBlob(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity,
@NotNull java.lang.String blobName) |
java.lang.Long |
getBlobFileLength(long blobHandle,
jetbrains.exodus.env.Transaction txn) |
java.lang.Iterable<jetbrains.exodus.core.dataStructures.Pair<java.lang.Long,java.lang.Long>> |
getBlobFileLengths(@NotNull PersistentStoreTransaction txn) |
java.lang.Iterable<jetbrains.exodus.core.dataStructures.Pair<java.lang.Long,java.lang.Long>> |
getBlobFileLengths(@NotNull PersistentStoreTransaction txn,
long fromHandle) |
@NotNull java.util.List<java.lang.String> |
getBlobNames(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity) |
@NotNull java.util.List<jetbrains.exodus.core.dataStructures.Pair<java.lang.String,java.lang.Long>> |
getBlobs(@NotNull PersistentStoreTransaction txn,
@NotNull jetbrains.exodus.entitystore.Entity entity) |
long |
getBlobSize(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity,
@NotNull java.lang.String blobName) |
@NotNull BlobsTable |
getBlobsTable(@NotNull PersistentStoreTransaction txn,
int entityTypeId) |
@Nullable java.lang.String |
getBlobString(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity,
@NotNull java.lang.String blobName) |
@NotNull jetbrains.exodus.entitystore.BlobVault |
getBlobVault() |
@NotNull jetbrains.exodus.entitystore.PersistentEntityStoreConfig |
getConfig() |
@Nullable PersistentStoreTransaction |
getCurrentTransaction() |
@NotNull jetbrains.exodus.env.BitmapIterator |
getEntitiesBitmapIterator(@NotNull PersistentStoreTransaction txn,
int entityTypeId) |
@NotNull jetbrains.exodus.env.BitmapIterator |
getEntitiesBitmapReverseIterator(@NotNull PersistentStoreTransaction txn,
int entityTypeId) |
@NotNull jetbrains.exodus.env.BitmapImpl |
getEntitiesBitmapTable(@NotNull PersistentStoreTransaction txn,
int entityTypeId) |
long |
getEntitiesCount(@NotNull PersistentStoreTransaction txn,
int entityTypeId) |
@NotNull jetbrains.exodus.env.Cursor |
getEntitiesIndexCursor(@NotNull PersistentStoreTransaction txn,
int entityTypeId)
Deprecated.
|
@NotNull jetbrains.exodus.env.Store |
getEntitiesTable(@NotNull PersistentStoreTransaction txn,
int entityTypeId)
Deprecated.
|
PersistentEntity |
getEntity(@NotNull jetbrains.exodus.entitystore.EntityId id) |
@NotNull jetbrains.exodus.entitystore.EntityIterableCache |
getEntityIterableCache() |
@NotNull java.lang.String |
getEntityType(int entityTypeId)
Gets type name of the entity type id.
|
@NotNull java.lang.String |
getEntityType(@NotNull PersistentStoreTransaction txn,
int entityTypeId) |
@NotNull java.lang.String |
getEntityType(@NotNull TxnProvider txnProvider,
int entityTypeId) |
int |
getEntityTypeId(@NotNull PersistentStoreTransaction txn,
@NotNull java.lang.String entityType,
boolean allowCreate) |
int |
getEntityTypeId(@NotNull java.lang.String entityType) |
int |
getEntityTypeId(@NotNull java.lang.String entityType,
boolean allowCreate)
Deprecated.
|
int |
getEntityTypeId(@NotNull TxnProvider txnProvider,
@NotNull java.lang.String entityType,
boolean allowCreate) |
@NotNull java.util.List<java.lang.String> |
getEntityTypes(@NotNull PersistentStoreTransaction txn) |
@NotNull TwoColumnTable |
getEntityTypesTable() |
@NotNull java.lang.Iterable<jetbrains.exodus.core.dataStructures.Pair<java.lang.Integer,java.lang.Long>> |
getEntityWithBlobIterable(@NotNull PersistentStoreTransaction txn,
int entityTypeId,
int blobId) |
@NotNull java.lang.Iterable<jetbrains.exodus.core.dataStructures.Pair<java.lang.Integer,java.lang.Long>> |
getEntityWithLinkIterable(@NotNull PersistentStoreTransaction txn,
int entityTypeId,
int linkId) |
@NotNull java.lang.Iterable<jetbrains.exodus.core.dataStructures.Pair<java.lang.Integer,java.lang.Long>> |
getEntityWithPropIterable(@NotNull PersistentStoreTransaction txn,
int entityTypeId,
int propertyId) |
@NotNull jetbrains.exodus.env.Environment |
getEnvironment() |
Explainer |
getExplainer() |
int |
getLastVersion(@NotNull jetbrains.exodus.entitystore.EntityId id)
Deprecated.
|
int |
getLastVersion(@NotNull PersistentStoreTransaction txn,
@NotNull jetbrains.exodus.entitystore.EntityId id) |
@Nullable PersistentEntityId |
getLinkAsEntityId(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity from,
int linkId) |
int |
getLinkId(@NotNull PersistentStoreTransaction txn,
@NotNull java.lang.String linkName,
boolean allowCreate)
Gets id of a link and creates the new one if necessary.
|
int |
getLinkId(@NotNull java.lang.String linkName,
boolean allowCreate)
Deprecated.
|
int |
getLinkId(@NotNull TxnProvider txnProvider,
@NotNull java.lang.String linkName,
boolean allowCreate) |
@Nullable java.lang.String |
getLinkName(@NotNull PersistentStoreTransaction txn,
int linkId) |
@NotNull java.util.List<java.lang.String> |
getLinkNames(@NotNull PersistentStoreTransaction txn,
@NotNull jetbrains.exodus.entitystore.Entity entity) |
@NotNull java.util.List<jetbrains.exodus.core.dataStructures.Pair<java.lang.String,jetbrains.exodus.entitystore.EntityId>> |
getLinks(@NotNull PersistentStoreTransaction txn,
@NotNull jetbrains.exodus.entitystore.Entity entity) |
@NotNull jetbrains.exodus.env.Cursor |
getLinksFirstIndexCursor(@NotNull PersistentStoreTransaction txn,
int entityTypeId) |
@NotNull jetbrains.exodus.env.Cursor |
getLinksSecondIndexCursor(@NotNull PersistentStoreTransaction txn,
int entityTypeId) |
@NotNull LinksTable |
getLinksTable(@NotNull PersistentStoreTransaction txn,
int entityTypeId) |
@NotNull java.lang.String |
getLocation() |
@NotNull java.lang.String |
getName() |
@NotNull jetbrains.exodus.env.Cursor |
getPrimaryPropertyIndexCursor(@NotNull PersistentStoreTransaction txn,
int entityTypeId) |
@NotNull jetbrains.exodus.env.Cursor |
getPrimaryPropertyIndexCursor(@NotNull PersistentStoreTransaction txn,
@NotNull PropertiesTable properties) |
@NotNull java.util.List<jetbrains.exodus.core.dataStructures.Pair<java.lang.String,java.lang.Comparable>> |
getProperties(@NotNull PersistentStoreTransaction txn,
@NotNull jetbrains.exodus.entitystore.Entity entity) |
@NotNull PropertiesTable |
getPropertiesTable(@NotNull PersistentStoreTransaction txn,
int entityTypeId) |
@Nullable java.lang.Comparable |
getProperty(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity,
@NotNull java.lang.String propertyName) |
int |
getPropertyId(@NotNull PersistentStoreTransaction txn,
@NotNull java.lang.String propertyName,
boolean allowCreate)
Gets id of a property and creates the new one if necessary.
|
int |
getPropertyId(@NotNull java.lang.String propertyName,
boolean allowCreate)
Deprecated.
|
int |
getPropertyId(@NotNull TxnProvider txnProvider,
@NotNull java.lang.String propertyName,
boolean allowCreate) |
@Nullable java.lang.String |
getPropertyName(@NotNull PersistentStoreTransaction txn,
int propertyId) |
@NotNull java.util.List<java.lang.String> |
getPropertyNames(@NotNull PersistentStoreTransaction txn,
@NotNull jetbrains.exodus.entitystore.Entity entity) |
@NotNull PropertyTypes |
getPropertyTypes() |
@Nullable PropertyValue |
getPropertyValue(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity,
int propertyId) |
@Nullable jetbrains.exodus.env.Cursor |
getPropertyValuesIndexCursor(@NotNull PersistentStoreTransaction txn,
int entityTypeId,
int propertyId) |
@Nullable PersistentEntityId |
getRawLinkAsEntityId(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntityId fromId,
int linkId) |
@Nullable jetbrains.exodus.ByteIterable |
getRawProperty(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntityId entityId,
int propertyId) |
@NotNull PersistentSequence |
getSequence(@NotNull PersistentStoreTransaction txn,
@NotNull java.lang.String sequenceName) |
@NotNull PersistentSequence |
getSequence(@NotNull PersistentStoreTransaction txn,
@NotNull java.lang.String sequenceName,
long initialValue) |
@NotNull jetbrains.exodus.management.Statistics |
getStatistics() |
long |
getUsableSpace() |
int |
hashCode() |
static void |
loggerDebug(@NotNull java.lang.String message) |
static void |
loggerDebug(@NotNull java.lang.String message,
@NotNull java.lang.Throwable t) |
static void |
loggerWarn(@NotNull java.lang.String message) |
static void |
loggerWarn(@NotNull java.lang.String message,
@NotNull java.lang.Throwable t) |
void |
logOperations(jetbrains.exodus.env.Transaction txn,
FlushLog flushLog) |
void |
registerCustomPropertyType(@NotNull jetbrains.exodus.entitystore.StoreTransaction txn,
@NotNull java.lang.Class<? extends java.lang.Comparable> clazz,
@NotNull jetbrains.exodus.bindings.ComparableBinding binding) |
void |
registerTransaction(@NotNull PersistentStoreTransaction txn) |
void |
renameEntityType(@NotNull java.lang.String oldEntityTypeName,
@NotNull java.lang.String newEntityTypeName) |
void |
setBlob(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity,
@NotNull java.lang.String blobName,
@NotNull java.io.File file) |
void |
setBlob(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity,
@NotNull java.lang.String blobName,
@NotNull java.io.InputStream stream) |
void |
setBlobString(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity,
@NotNull java.lang.String blobName,
@NotNull java.lang.String blobString) |
void |
setCloseEnvironment(boolean closeEnvironment) |
boolean |
setProperty(@NotNull PersistentStoreTransaction txn,
@NotNull PersistentEntity entity,
@NotNull java.lang.String propertyName,
@NotNull java.lang.Comparable value) |
void |
trackTableCreation(@NotNull jetbrains.exodus.env.Store table,
@NotNull PersistentStoreTransaction txn) |
void |
unregisterTransaction(@NotNull PersistentStoreTransaction txn) |
boolean |
useVersion1Format() |
public PersistentEntityStoreImpl(@NotNull
@NotNull jetbrains.exodus.env.Environment environment,
@NotNull
@NotNull java.lang.String name)
public PersistentEntityStoreImpl(@NotNull
@NotNull jetbrains.exodus.env.Environment environment,
@Nullable
@Nullable jetbrains.exodus.entitystore.BlobVault blobVault,
@NotNull
@NotNull java.lang.String name)
public PersistentEntityStoreImpl(@NotNull
@NotNull jetbrains.exodus.entitystore.PersistentEntityStoreConfig config,
@NotNull
@NotNull jetbrains.exodus.env.Environment environment,
@Nullable
@Nullable jetbrains.exodus.entitystore.BlobVault blobVault,
@NotNull
@NotNull java.lang.String name)
public int hashCode()
hashCode in class java.lang.Object@NotNull public @NotNull PersistentStoreTransaction beginTransaction()
beginTransaction in interface jetbrains.exodus.entitystore.EntityStore@NotNull public @NotNull jetbrains.exodus.entitystore.StoreTransaction beginExclusiveTransaction()
beginExclusiveTransaction in interface jetbrains.exodus.entitystore.EntityStore@NotNull public @NotNull PersistentStoreTransaction beginReadonlyTransaction()
beginReadonlyTransaction in interface jetbrains.exodus.entitystore.EntityStore@Nullable public @Nullable PersistentStoreTransaction getCurrentTransaction()
getCurrentTransaction in interface jetbrains.exodus.entitystore.EntityStore@NotNull public @NotNull PersistentStoreTransaction getAndCheckCurrentTransaction()
public PersistentStoreTransaction beginTransactionAt(long highAddress)
public void registerTransaction(@NotNull
@NotNull PersistentStoreTransaction txn)
public void unregisterTransaction(@NotNull
@NotNull PersistentStoreTransaction txn)
public void clear()
clear in interface jetbrains.exodus.entitystore.PersistentEntityStore@NotNull public @NotNull java.lang.String getName()
getName in interface jetbrains.exodus.entitystore.EntityStore@NotNull public @NotNull jetbrains.exodus.entitystore.PersistentEntityStoreConfig getConfig()
getConfig in interface jetbrains.exodus.entitystore.PersistentEntityStore@NotNull public @NotNull java.lang.String getLocation()
getLocation in interface jetbrains.exodus.entitystore.EntityStore@NotNull public @NotNull jetbrains.exodus.env.Environment getEnvironment()
getEnvironment in interface jetbrains.exodus.entitystore.PersistentEntityStore@NotNull public @NotNull PersistentSequence getSequence(@NotNull @NotNull PersistentStoreTransaction txn, @NotNull @NotNull java.lang.String sequenceName)
@NotNull public @NotNull PersistentSequence getSequence(@NotNull @NotNull PersistentStoreTransaction txn, @NotNull @NotNull java.lang.String sequenceName, long initialValue)
public java.util.List<PersistentSequence> getAllSequences()
public long getUsableSpace()
getUsableSpace in interface jetbrains.exodus.entitystore.PersistentEntityStore@NotNull public @NotNull jetbrains.exodus.entitystore.BlobVault getBlobVault()
getBlobVault in interface jetbrains.exodus.entitystore.PersistentEntityStorepublic void registerCustomPropertyType(@NotNull
@NotNull jetbrains.exodus.entitystore.StoreTransaction txn,
@NotNull
@NotNull java.lang.Class<? extends java.lang.Comparable> clazz,
@NotNull
@NotNull jetbrains.exodus.bindings.ComparableBinding binding)
registerCustomPropertyType in interface jetbrains.exodus.entitystore.PersistentEntityStorepublic void executeInTransaction(@NotNull
@NotNull jetbrains.exodus.entitystore.StoreTransactionalExecutable executable)
executeInTransaction in interface jetbrains.exodus.entitystore.PersistentEntityStorepublic void executeInExclusiveTransaction(@NotNull
@NotNull jetbrains.exodus.entitystore.StoreTransactionalExecutable executable)
executeInExclusiveTransaction in interface jetbrains.exodus.entitystore.PersistentEntityStorepublic void executeInReadonlyTransaction(@NotNull
@NotNull jetbrains.exodus.entitystore.StoreTransactionalExecutable executable)
executeInReadonlyTransaction in interface jetbrains.exodus.entitystore.PersistentEntityStorepublic <T> T computeInTransaction(@NotNull
@NotNull jetbrains.exodus.entitystore.StoreTransactionalComputable<T> computable)
computeInTransaction in interface jetbrains.exodus.entitystore.PersistentEntityStorepublic <T> T computeInExclusiveTransaction(@NotNull
@NotNull jetbrains.exodus.entitystore.StoreTransactionalComputable<T> computable)
computeInExclusiveTransaction in interface jetbrains.exodus.entitystore.PersistentEntityStorepublic <T> T computeInReadonlyTransaction(@NotNull
@NotNull jetbrains.exodus.entitystore.StoreTransactionalComputable<T> computable)
computeInReadonlyTransaction in interface jetbrains.exodus.entitystore.PersistentEntityStorepublic Explainer getExplainer()
@NotNull public @NotNull jetbrains.exodus.entitystore.EntityIterableCache getEntityIterableCache()
@Nullable
public @Nullable java.lang.Comparable getProperty(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntity entity,
@NotNull
@NotNull java.lang.String propertyName)
@Nullable public @Nullable PropertyValue getPropertyValue(@NotNull @NotNull PersistentStoreTransaction txn, @NotNull @NotNull PersistentEntity entity, int propertyId)
@Nullable
public @Nullable jetbrains.exodus.ByteIterable getRawProperty(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntityId entityId,
int propertyId)
public boolean setProperty(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntity entity,
@NotNull
@NotNull java.lang.String propertyName,
@NotNull
@NotNull java.lang.Comparable value)
public boolean deleteProperty(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntity entity,
@NotNull
@NotNull java.lang.String propertyName)
@NotNull
public @NotNull java.util.List<java.lang.String> getPropertyNames(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull jetbrains.exodus.entitystore.Entity entity)
@NotNull
public @NotNull java.util.List<jetbrains.exodus.core.dataStructures.Pair<java.lang.String,java.lang.Comparable>> getProperties(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull jetbrains.exodus.entitystore.Entity entity)
@NotNull
public @NotNull jetbrains.exodus.env.Cursor getPrimaryPropertyIndexCursor(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId)
@NotNull
public @NotNull jetbrains.exodus.env.Cursor getPrimaryPropertyIndexCursor(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PropertiesTable properties)
@Nullable
public @Nullable jetbrains.exodus.env.Cursor getPropertyValuesIndexCursor(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId,
int propertyId)
@NotNull
public @NotNull java.lang.Iterable<jetbrains.exodus.core.dataStructures.Pair<java.lang.Integer,java.lang.Long>> getEntityWithPropIterable(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId,
int propertyId)
@NotNull
public @NotNull java.lang.Iterable<jetbrains.exodus.core.dataStructures.Pair<java.lang.Integer,java.lang.Long>> getEntityWithBlobIterable(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId,
int blobId)
@NotNull
@Deprecated
public @NotNull jetbrains.exodus.env.Cursor getEntitiesIndexCursor(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId)
@NotNull
public @NotNull jetbrains.exodus.env.BitmapIterator getEntitiesBitmapIterator(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId)
@NotNull
public @NotNull jetbrains.exodus.env.BitmapIterator getEntitiesBitmapReverseIterator(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId)
@NotNull
public @NotNull jetbrains.exodus.env.Cursor getLinksFirstIndexCursor(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId)
@NotNull
public @NotNull jetbrains.exodus.env.Cursor getLinksSecondIndexCursor(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId)
@NotNull
public @NotNull java.lang.Iterable<jetbrains.exodus.core.dataStructures.Pair<java.lang.Integer,java.lang.Long>> getEntityWithLinkIterable(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId,
int linkId)
public void clearProperties(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull jetbrains.exodus.entitystore.Entity entity)
entity - to clear.public long getBlobSize(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntity entity,
@NotNull
@NotNull java.lang.String blobName)
throws java.io.IOException
java.io.IOException@Nullable
public @Nullable java.io.InputStream getBlob(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntity entity,
@NotNull
@NotNull java.lang.String blobName)
throws java.io.IOException
java.io.IOException@Nullable
public @Nullable java.lang.String getBlobString(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntity entity,
@NotNull
@NotNull java.lang.String blobName)
throws java.io.IOException
java.io.IOExceptionpublic void setBlob(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntity entity,
@NotNull
@NotNull java.lang.String blobName,
@NotNull
@NotNull java.io.InputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic void setBlob(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntity entity,
@NotNull
@NotNull java.lang.String blobName,
@NotNull
@NotNull java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic void setBlobString(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntity entity,
@NotNull
@NotNull java.lang.String blobName,
@NotNull
@NotNull java.lang.String blobString)
throws java.io.IOException
java.io.IOExceptionpublic boolean useVersion1Format()
public boolean deleteBlob(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntity entity,
@NotNull
@NotNull java.lang.String blobName)
public void clearBlobs(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntity entity)
@NotNull
public @NotNull java.util.List<java.lang.String> getBlobNames(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull PersistentEntity entity)
@NotNull
public @NotNull java.util.List<jetbrains.exodus.core.dataStructures.Pair<java.lang.String,java.lang.Long>> getBlobs(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull jetbrains.exodus.entitystore.Entity entity)
@Nullable public @Nullable PersistentEntityId getLinkAsEntityId(@NotNull @NotNull PersistentStoreTransaction txn, @NotNull @NotNull PersistentEntity from, int linkId)
@Nullable public @Nullable PersistentEntityId getRawLinkAsEntityId(@NotNull @NotNull PersistentStoreTransaction txn, @NotNull @NotNull PersistentEntityId fromId, int linkId)
@NotNull
public @NotNull java.util.List<java.lang.String> getLinkNames(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull jetbrains.exodus.entitystore.Entity entity)
@NotNull
public @NotNull java.util.List<jetbrains.exodus.core.dataStructures.Pair<java.lang.String,jetbrains.exodus.entitystore.EntityId>> getLinks(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull jetbrains.exodus.entitystore.Entity entity)
@Deprecated
public int getLastVersion(@NotNull
@NotNull jetbrains.exodus.entitystore.EntityId id)
public int getLastVersion(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull jetbrains.exodus.entitystore.EntityId id)
public PersistentEntity getEntity(@NotNull @NotNull jetbrains.exodus.entitystore.EntityId id)
getEntity in interface jetbrains.exodus.entitystore.PersistentEntityStorepublic int getEntityTypeId(@NotNull
@NotNull java.lang.String entityType)
getEntityTypeId in interface jetbrains.exodus.entitystore.PersistentEntityStore@Deprecated
public int getEntityTypeId(@NotNull
@NotNull java.lang.String entityType,
boolean allowCreate)
entityType - entity type name.allowCreate - if set to true and if there is no entity type like entityType,
create the new id for the entityType.public int getEntityTypeId(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull java.lang.String entityType,
boolean allowCreate)
public int getEntityTypeId(@NotNull
@NotNull TxnProvider txnProvider,
@NotNull
@NotNull java.lang.String entityType,
boolean allowCreate)
@NotNull public @NotNull java.lang.String getEntityType(int entityTypeId)
getEntityType in interface jetbrains.exodus.entitystore.PersistentEntityStoreentityTypeId - id of the entity type.@NotNull
public @NotNull java.lang.String getEntityType(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId)
@NotNull
public @NotNull java.lang.String getEntityType(@NotNull
@NotNull TxnProvider txnProvider,
int entityTypeId)
@NotNull
public @NotNull java.util.List<java.lang.String> getEntityTypes(@NotNull
@NotNull PersistentStoreTransaction txn)
public void renameEntityType(@NotNull
@NotNull java.lang.String oldEntityTypeName,
@NotNull
@NotNull java.lang.String newEntityTypeName)
renameEntityType in interface jetbrains.exodus.entitystore.PersistentEntityStorepublic void deleteEntityType(@NotNull
@NotNull java.lang.String entityTypeName)
@Deprecated
public int getPropertyId(@NotNull
@NotNull java.lang.String propertyName,
boolean allowCreate)
public int getPropertyId(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull java.lang.String propertyName,
boolean allowCreate)
txn - transactionpropertyName - name of the property.allowCreate - if set to true and if there is no property named as propertyName,
create the new id for the propertyName.< 0 if there is no such property and create=false, else id of the propertypublic int getPropertyId(@NotNull
@NotNull TxnProvider txnProvider,
@NotNull
@NotNull java.lang.String propertyName,
boolean allowCreate)
@Nullable
public @Nullable java.lang.String getPropertyName(@NotNull
@NotNull PersistentStoreTransaction txn,
int propertyId)
@Deprecated
public int getLinkId(@NotNull
@NotNull java.lang.String linkName,
boolean allowCreate)
public int getLinkId(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull java.lang.String linkName,
boolean allowCreate)
linkName - name of the link.allowCreate - if set to true and if there is no link named as linkName,
create the new id for the linkName.< 0 if there is no such link and create=false, else id of the linkpublic int getLinkId(@NotNull
@NotNull TxnProvider txnProvider,
@NotNull
@NotNull java.lang.String linkName,
boolean allowCreate)
public void deleteLinkName(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull java.lang.String linkName)
@Nullable
public @Nullable java.lang.String getLinkName(@NotNull
@NotNull PersistentStoreTransaction txn,
int linkId)
public java.util.List<java.lang.String> getAllLinkNames(@NotNull
@NotNull PersistentStoreTransaction txn)
public void trackTableCreation(@NotNull
@NotNull jetbrains.exodus.env.Store table,
@NotNull
@NotNull PersistentStoreTransaction txn)
public void logOperations(jetbrains.exodus.env.Transaction txn,
FlushLog flushLog)
logOperations in interface FlushLog.Member@NotNull public @NotNull TwoColumnTable getEntityTypesTable()
@NotNull public @NotNull PropertyTypes getPropertyTypes()
@NotNull
@Deprecated
public @NotNull jetbrains.exodus.env.Store getEntitiesTable(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId)
public long getEntitiesCount(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId)
@NotNull
public @NotNull jetbrains.exodus.env.BitmapImpl getEntitiesBitmapTable(@NotNull
@NotNull PersistentStoreTransaction txn,
int entityTypeId)
@NotNull public @NotNull PropertiesTable getPropertiesTable(@NotNull @NotNull PersistentStoreTransaction txn, int entityTypeId)
@NotNull public @NotNull LinksTable getLinksTable(@NotNull @NotNull PersistentStoreTransaction txn, int entityTypeId)
@NotNull public @NotNull BlobsTable getBlobsTable(@NotNull @NotNull PersistentStoreTransaction txn, int entityTypeId)
public java.lang.Long getBlobFileLength(long blobHandle,
jetbrains.exodus.env.Transaction txn)
public long blobFileCount(@NotNull
@NotNull PersistentStoreTransaction txn)
public java.lang.Iterable<jetbrains.exodus.core.dataStructures.Pair<java.lang.Long,java.lang.Long>> getBlobFileLengths(@NotNull
@NotNull PersistentStoreTransaction txn)
public java.lang.Iterable<jetbrains.exodus.core.dataStructures.Pair<java.lang.Long,java.lang.Long>> getBlobFileLengths(@NotNull
@NotNull PersistentStoreTransaction txn,
long fromHandle)
@NotNull public @NotNull EntityStoreSharedAsyncProcessor getAsyncProcessor()
getAsyncProcessor in interface jetbrains.exodus.entitystore.PersistentEntityStore@NotNull public @NotNull jetbrains.exodus.management.Statistics getStatistics()
getStatistics in interface jetbrains.exodus.entitystore.PersistentEntityStorepublic void setCloseEnvironment(boolean closeEnvironment)
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface jetbrains.exodus.entitystore.EntityStore@NotNull public @NotNull jetbrains.exodus.backup.BackupStrategy getBackupStrategy()
getBackupStrategy in interface jetbrains.exodus.backup.Backupablepublic static void loggerWarn(@NotNull
@NotNull java.lang.String message)
public static void loggerWarn(@NotNull
@NotNull java.lang.String message,
@NotNull
@NotNull java.lang.Throwable t)
public static void loggerDebug(@NotNull
@NotNull java.lang.String message)
public static void loggerDebug(@NotNull
@NotNull java.lang.String message,
@NotNull
@NotNull java.lang.Throwable t)