-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Preview] Implementing footer caching with introducing single cache o…
…ption. (#35) Implements initial footer prefetching and caching. --------- Co-authored-by: Ilya Isaev <[email protected]>
- Loading branch information
Showing
22 changed files
with
842 additions
and
244 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
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
24 changes: 24 additions & 0 deletions
24
input-stream/src/main/java/com/amazon/connector/s3/io/logical/LogicalIOConfiguration.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,24 @@ | ||
package com.amazon.connector.s3.io.logical; | ||
|
||
import static com.amazon.connector.s3.util.Constants.DEFAULT_FOOTER_PRECACHING_SIZE; | ||
import static com.amazon.connector.s3.util.Constants.DEFAULT_SMALL_OBJECT_SIZE_THRESHOLD; | ||
|
||
import lombok.Builder; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
|
||
/** Configuration for {@link LogicalIO} */ | ||
@Getter | ||
@Builder | ||
@EqualsAndHashCode | ||
public class LogicalIOConfiguration { | ||
@Builder.Default private boolean FooterPrecachingEnabled = true; | ||
|
||
@Builder.Default private long FooterPrecachingSize = DEFAULT_FOOTER_PRECACHING_SIZE; | ||
|
||
@Builder.Default private boolean SmallObjectsPrefetchingEnabled = true; | ||
|
||
@Builder.Default private long SmallObjectSizeThreshold = DEFAULT_SMALL_OBJECT_SIZE_THRESHOLD; | ||
|
||
public static LogicalIOConfiguration DEFAULT = LogicalIOConfiguration.builder().build(); | ||
} |
13 changes: 13 additions & 0 deletions
13
input-stream/src/main/java/com/amazon/connector/s3/io/logical/ObjectStatus.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,13 @@ | ||
package com.amazon.connector.s3.io.logical; | ||
|
||
import com.amazon.connector.s3.object.ObjectMetadata; | ||
import com.amazon.connector.s3.util.S3URI; | ||
import java.util.concurrent.CompletableFuture; | ||
import lombok.Data; | ||
|
||
/** ObjectStatus contains the metadata of the object and the S3URI of the object. */ | ||
@Data | ||
public class ObjectStatus { | ||
private final CompletableFuture<ObjectMetadata> objectMetadata; | ||
private final S3URI s3URI; | ||
} |
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.