SFAlterSoupLongOperation Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | SFAlterSoupLongOperation.h |
Overview
Use this class to configure and run alter soup “long” operations. Note that these operations can take a long time to complete.
soupName
Soup being altered.
@property (nonatomic, readonly, strong) NSString *soupNameDeclared In
SFAlterSoupLongOperation.h
soupTableName
Backing table for soup being altered.
@property (nonatomic, readonly, strong) NSString *soupTableNameDeclared In
SFAlterSoupLongOperation.h
afterStep
Last step completed.
@property (nonatomic, readonly, assign) SFAlterSoupStep afterStepDeclared In
SFAlterSoupLongOperation.h
soupSpec
New soup spec (optional).
@property (nonatomic, readonly, strong) SFSoupSpec *soupSpecDeclared In
SFAlterSoupLongOperation.h
oldSoupSpec
Old soup spec.
@property (nonatomic, readonly, strong) SFSoupSpec *oldSoupSpecDeclared In
SFAlterSoupLongOperation.h
indexSpecs
New index specs.
@property (nonatomic, readonly, strong) NSArray *indexSpecsDeclared In
SFAlterSoupLongOperation.h
oldIndexSpecs
Old index specs.
@property (nonatomic, readonly, strong) NSArray *oldIndexSpecsDeclared In
SFAlterSoupLongOperation.h
reIndexData
YES if soup elements should be brought to memory to be re-indexed.
@property (nonatomic, readonly, assign) BOOL reIndexDataDeclared In
SFAlterSoupLongOperation.h
store
Instance of SmartStore.
@property (nonatomic, readonly, strong) SFSmartStore *storeDeclared In
SFAlterSoupLongOperation.h
queue
Underlying database.
@property (nonatomic, readonly, strong) FMDatabaseQueue *queueDeclared In
SFAlterSoupLongOperation.h
rowId
Row ID for long_operations_status table.
@property (nonatomic, readonly, assign) long long rowIdDeclared In
SFAlterSoupLongOperation.h
– initWithStore:soupName:newIndexSpecs:reIndexData:
Initializer for starting the alter soup operation.
- (id)initWithStore:(SFSmartStore *)store soupName:(NSString *)soupName newIndexSpecs:(NSArray *)newIndexSpecs reIndexData:(BOOL)reIndexDataParameters
store |
SmartStore instance. |
|---|---|
soupName |
Soup name. |
newIndexSpecs |
New index specs. |
reIndexData |
YES to reindex. |
Return Value
The initialized self.
Declared In
SFAlterSoupLongOperation.h
– initWithStore:rowId:details:status:
Initializer for resuming an alter soup operation from the data stored in the long operations status table.
- (id)initWithStore:(SFSmartStore *)store rowId:(long)rowId details:(NSDictionary *)details status:(SFAlterSoupStep)statusParameters
store |
SmartStore instance. |
|---|---|
rowId |
Row ID. |
details |
Details. |
status |
Soup status. |
Return Value
The initialized self.
Declared In
SFAlterSoupLongOperation.h
– runToStep:
Run this operation up to a given step (used by tests).
- (void)runToStep:(SFAlterSoupStep)toStepParameters
toStep |
Target step. |
|---|
Declared In
SFAlterSoupLongOperation.h