Interface PartitionMetaStorage<T extends Storable>
-
- All Known Implementing Classes:
PartitionMetaStorageImpl
public interface PartitionMetaStorage<T extends Storable>Provides a way to associate anyStorableimplementation as partition metadata.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinsertDataRow(T row, IoStatisticsHolder statHolder)longmetaPageId()byte[]readRow(long link)Read row data by link as byte array.voidremoveDataRowByLink(long link, IoStatisticsHolder statHolder)voidsaveMetadata(IoStatisticsHolder statHolder)Saves storage metadata.
-
-
-
Method Detail
-
readRow
byte[] readRow(long link) throws IgniteCheckedExceptionRead row data by link as byte array.- Parameters:
link- Link.- Throws:
IgniteCheckedException- If failed.
-
insertDataRow
void insertDataRow(T row, IoStatisticsHolder statHolder) throws IgniteCheckedException
- Parameters:
row- Row.statHolder- Stat holder.- Throws:
IgniteCheckedException
-
removeDataRowByLink
void removeDataRowByLink(long link, IoStatisticsHolder statHolder) throws IgniteCheckedException- Parameters:
link- Row link.- Throws:
IgniteCheckedException- If failed.
-
saveMetadata
void saveMetadata(IoStatisticsHolder statHolder) throws IgniteCheckedException
Saves storage metadata.- Throws:
IgniteCheckedException
-
metaPageId
long metaPageId()
- Returns:
- Meta page id of partition meta storage.
-
-