Search in sources :

Example 1 with Serializer

use of org.teiid.common.buffer.Serializer in project teiid by teiid.

the class TestBufferFrontedFileStoreCache method get.

private static CacheEntry get(BufferFrontedFileStoreCache cache, Long oid, Serializer<Integer> s) throws TeiidComponentException {
    PhysicalInfo o = cache.lockForLoad(oid, s);
    CacheEntry ce = cache.get(o, oid, new WeakReference<Serializer<?>>(s));
    cache.unlockForLoad(o);
    return ce;
}
Also used : CacheEntry(org.teiid.common.buffer.CacheEntry) Serializer(org.teiid.common.buffer.Serializer)

Aggregations

CacheEntry (org.teiid.common.buffer.CacheEntry)1 Serializer (org.teiid.common.buffer.Serializer)1