Package org.apache.druid.data.input.impl
Interface CloudObjectSplitWidget
-
public interface CloudObjectSplitWidget
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
CloudObjectSplitWidget.LocationWithSize
Returned bygetDescriptorIteratorForPrefixes(List)
.
-
Field Summary
Fields Modifier and Type Field Description static long
UNKNOWN_SIZE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<CloudObjectSplitWidget.LocationWithSize>
getDescriptorIteratorForPrefixes(List<URI> prefixes)
Iterator of descriptors that match a list of prefixes.long
getObjectSize(CloudObjectLocation descriptor)
Size of an object.
-
-
-
Field Detail
-
UNKNOWN_SIZE
static final long UNKNOWN_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptorIteratorForPrefixes
Iterator<CloudObjectSplitWidget.LocationWithSize> getDescriptorIteratorForPrefixes(List<URI> prefixes)
Iterator of descriptors that match a list of prefixes. Used ifCloudObjectInputSource.getPrefixes()
is set. Sizes inCloudObjectSplitWidget.LocationWithSize
are set if the information is naturally available as part of listing the cloud object prefix. Otherwise, they are set toUNKNOWN_SIZE
and filled in later.
-
getObjectSize
long getObjectSize(CloudObjectLocation descriptor) throws IOException
Size of an object. May use a cached size, if available, or may issue a network call.- Throws:
IOException
-
-