public class FeatureRowCache extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CACHE_SIZE
Default max number of feature rows to retain in cache
|
| Constructor and Description |
|---|
FeatureRowCache()
Constructor, created with cache size of
DEFAULT_CACHE_SIZE |
FeatureRowCache(int size)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the cache
|
FeatureRow |
get(long featureId)
Get the cached feature row by feature id
|
FeatureRow |
put(FeatureRow featureRow)
Cache the feature row
|
FeatureRow |
remove(FeatureRow featureRow)
Remove the cached feature row
|
FeatureRow |
remove(long featureId)
Remove the cached feature row by id
|
void |
resize(int maxSize)
Resize the cache
|
public static final int DEFAULT_CACHE_SIZE
public FeatureRowCache()
DEFAULT_CACHE_SIZEpublic FeatureRowCache(int size)
size - max feature rows to retain in the cachepublic FeatureRow get(long featureId)
featureId - feature row idpublic FeatureRow put(FeatureRow featureRow)
featureRow - feature rowpublic FeatureRow remove(FeatureRow featureRow)
featureRow - feature rowpublic FeatureRow remove(long featureId)
featureId - feature row idpublic void clear()
public void resize(int maxSize)
maxSize - max size