Package org.apache.druid.data.input.impl
Interface CloudObjectSplitWidget
-
public interface CloudObjectSplitWidget
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCloudObjectSplitWidget.LocationWithSizeReturned bygetDescriptorIteratorForPrefixes(List).
-
Field Summary
Fields Modifier and Type Field Description static longUNKNOWN_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.longgetObjectSize(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.LocationWithSizeare set if the information is naturally available as part of listing the cloud object prefix. Otherwise, they are set toUNKNOWN_SIZEand 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
-
-