public class HiveFileContext extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
HiveFileContext.ExtraHiveFileInfo<T> |
| Modifier and Type | Field and Description |
|---|---|
static HiveFileContext |
DEFAULT_HIVE_FILE_CONTEXT |
| Constructor and Description |
|---|
HiveFileContext(boolean cacheable,
CacheQuota cacheQuota,
Optional<HiveFileContext.ExtraHiveFileInfo<?>> extraFileInfo,
OptionalLong fileSize,
OptionalLong startOffset,
OptionalLong length,
long modificationTime,
boolean verboseRuntimeStatsEnabled) |
| Modifier and Type | Method and Description |
|---|---|
CacheQuota |
getCacheQuota() |
Optional<HiveFileContext.ExtraHiveFileInfo<?>> |
getExtraFileInfo()
For file opener
|
OptionalLong |
getFileSize() |
OptionalLong |
getLength() |
long |
getModificationTime() |
OptionalLong |
getStartOffset() |
RuntimeStats |
getStats() |
void |
incrementCounter(String name,
RuntimeUnit unit,
long value) |
boolean |
isCacheable()
Decide whether the current file is eligible for local cache
|
public static final HiveFileContext DEFAULT_HIVE_FILE_CONTEXT
public HiveFileContext(boolean cacheable,
CacheQuota cacheQuota,
Optional<HiveFileContext.ExtraHiveFileInfo<?>> extraFileInfo,
OptionalLong fileSize,
OptionalLong startOffset,
OptionalLong length,
long modificationTime,
boolean verboseRuntimeStatsEnabled)
public boolean isCacheable()
public CacheQuota getCacheQuota()
public long getModificationTime()
public Optional<HiveFileContext.ExtraHiveFileInfo<?>> getExtraFileInfo()
public OptionalLong getFileSize()
public OptionalLong getStartOffset()
public OptionalLong getLength()
public void incrementCounter(String name, RuntimeUnit unit, long value)
public RuntimeStats getStats()
Copyright © 2012–2022. All rights reserved.