org.apache.blur.store.blockcache_v2.cachevalue
Class ByteArrayCacheValue
java.lang.Object
org.apache.blur.store.blockcache_v2.cachevalue.BaseCacheValue
org.apache.blur.store.blockcache_v2.cachevalue.ByteArrayCacheValue
- All Implemented Interfaces:
- CacheValue
public class ByteArrayCacheValue
- extends BaseCacheValue
Method Summary |
void |
release()
Releases any underlying resources. |
CacheValue |
trim(int length)
This method may trim the existing CacheValue and produce
potentially a new CacheValue with the same data up to the length
provided. |
ByteArrayCacheValue
public ByteArrayCacheValue(int length)
release
public void release()
- Description copied from interface:
CacheValue
- Releases any underlying resources.
trim
public CacheValue trim(int length)
- Description copied from interface:
CacheValue
- This method may trim the existing
CacheValue
and produce
potentially a new CacheValue
with the same data up to the length
provided. Also if a new CacheValue
is produced then this method is
responsible to calling release on the old CacheValue
.
- Specified by:
trim
in interface CacheValue
- Overrides:
trim
in class BaseCacheValue
- Parameters:
length
- the valid amount of data in the CacheValue
.
- Returns:
- new trim
CacheValue
that has been trimmed if needed.
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.