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,
Optional<Long> fileSize,
long modificationTime,
boolean verboseRuntimeStatsEnabled) |
| Modifier and Type | Method and Description |
|---|---|
CacheQuota |
getCacheQuota() |
Optional<HiveFileContext.ExtraHiveFileInfo<?>> |
getExtraFileInfo()
For file opener
|
Optional<Long> |
getFileSize() |
long |
getModificationTime() |
RuntimeStats |
getStats() |
void |
incrementCounter(String name,
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,
Optional<Long> fileSize,
long modificationTime,
boolean verboseRuntimeStatsEnabled)
public boolean isCacheable()
public CacheQuota getCacheQuota()
public long getModificationTime()
public Optional<HiveFileContext.ExtraHiveFileInfo<?>> getExtraFileInfo()
public void incrementCounter(String name, long value)
public RuntimeStats getStats()
Copyright © 2012–2022. All rights reserved.