-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport to branch(3.10) : Add data import enums (#2433)
Co-authored-by: inv-jishnu <[email protected]> Co-authored-by: Peckstadt Yves <[email protected]>
- Loading branch information
1 parent
0c8aeff
commit 2f0c09e
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
data-loader/core/src/main/java/com/scalar/db/dataloader/core/dataimport/ImportMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.scalar.db.dataloader.core.dataimport; | ||
|
||
/** Represents the way to be imported data is handled */ | ||
public enum ImportMode { | ||
INSERT, | ||
UPDATE, | ||
UPSERT | ||
} |
11 changes: 11 additions & 0 deletions
11
...java/com/scalar/db/dataloader/core/dataimport/controlfile/ControlFileValidationLevel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.scalar.db.dataloader.core.dataimport.controlfile; | ||
|
||
/** Control file validation level */ | ||
public enum ControlFileValidationLevel { | ||
/* All columns need to be mapped */ | ||
FULL, | ||
/* All partition key and clustering key columns need to be mapped */ | ||
KEYS, | ||
/* Only validate the columns that are mapped */ | ||
MAPPED | ||
} |