Package org.aksw.commons.io.slice
Interface SliceMetaData
- All Superinterfaces:
Cloneable
Metadata for slices of data.
Holds information about
- the min/max number of known items
- loaded data ranges
- failed data ranges
- Author:
- raven
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.google.common.collect.RangeSet<Long>default long-1 If not exactly knowncom.google.common.collect.RangeSet<Long>longlongintA lock to control concurrent access to this objectdefault booleanWhether all data has been loaded.default booleandefault SliceMetaDatasetKnownSize(long size) setMaximumKnownSize(long size) setMinimumKnownSize(long size) default SliceMetaDataupdateMaximumKnownSize(long size) Updates the maximum known size iff the argument is less than the current known maximumdefault SliceMetaDataupdateMinimumKnownSize(long size) Updates the minimum known size iff the argument is graeter than the current known minimum
-
Method Details
-
getLoadedRanges
com.google.common.collect.RangeSet<Long> getLoadedRanges() -
getFailedRanges
-
getMinimumKnownSize
long getMinimumKnownSize() -
getMaximumKnownSize
long getMaximumKnownSize() -
setMinimumKnownSize
-
setMaximumKnownSize
-
getReadWriteLock
ReadWriteLock getReadWriteLock()A lock to control concurrent access to this object -
getHasDataCondition
Condition getHasDataCondition() -
getPageSize
int getPageSize() -
updateMaximumKnownSize
Updates the maximum known size iff the argument is less than the current known maximum -
updateMinimumKnownSize
Updates the minimum known size iff the argument is graeter than the current known minimum -
setKnownSize
-
getKnownSize
default long getKnownSize()-1 If not exactly known -
getGaps
-
isExactSizeKnown
default boolean isExactSizeKnown() -
isComplete
default boolean isComplete()Whether all data has been loaded. This is the case if the exact size is known and there is only a single range covering [0, maxSize)- Returns:
-