-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User/ohbitton/add file options (#212)
* add raw data size compression size * Move compression to a new package * revert * fixed bad merge * fmt * b * fix test * fix * fix test * tests and change source->ingestoptions * fmt * fix * fix * revert --------- Co-authored-by: Ohad Bitton <[email protected]>
- Loading branch information
Showing
11 changed files
with
220 additions
and
110 deletions.
There are no files selected for viewing
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
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
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,27 @@ | ||
package ingestoptions | ||
|
||
// CompressionType is a file's compression type. | ||
type CompressionType int8 | ||
|
||
// String implements fmt.Stringer. | ||
func (c CompressionType) String() string { | ||
switch c { | ||
case GZIP: | ||
return "gzip" | ||
case ZIP: | ||
return "zip" | ||
} | ||
return "unknown compression type" | ||
} | ||
|
||
//goland:noinspection GoUnusedConst - Part of the API | ||
const ( | ||
// CTUnknown indicates that that the compression type was unset. | ||
CTUnknown CompressionType = 0 | ||
// CTNone indicates that the file was not compressed. | ||
CTNone CompressionType = 1 | ||
// GZIP indicates that the file is GZIP compressed. | ||
GZIP CompressionType = 2 | ||
// ZIP indicates that the file is ZIP compressed. | ||
ZIP CompressionType = 3 | ||
) |
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
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
Oops, something went wrong.