org.objectweb.medor.eval.cache.lib

Class TupleCache

Implemented Interfaces:
CollectionCache

public class TupleCache
extends java.lang.Object
implements CollectionCache

This class

Constructor Summary

TupleCache(long size)

Method Summary

boolean
contains(int index)
void
destroy()
long
getCapacity()
Tuple
getTuple(int index)
void
initialize()
boolean
isCanInsert()
boolean
putTuple(int index, Tuple t)
void
setCanInsert(boolean canInsert)
void
setCapacity(int capacity)
Iterator
tupleIndexIterator()

Constructor Details

TupleCache

public TupleCache(long size)

Method Details

contains

public boolean contains(int index)
Specified by:
contains in interface CollectionCache


destroy

public void destroy()
Specified by:
destroy in interface CollectionCache


getCapacity

public long getCapacity()
Specified by:
getCapacity in interface CollectionCache


getTuple

public Tuple getTuple(int index)
            throws MedorException
Specified by:
getTuple in interface CollectionCache


initialize

public void initialize()
Specified by:
initialize in interface CollectionCache


isCanInsert

public boolean isCanInsert()
Specified by:
isCanInsert in interface CollectionCache


putTuple

public boolean putTuple(int index,
                        Tuple t)
            throws MedorException
Specified by:
putTuple in interface CollectionCache


setCanInsert

public void setCanInsert(boolean canInsert)
Specified by:
setCanInsert in interface CollectionCache


setCapacity

public void setCapacity(int capacity)


tupleIndexIterator

public Iterator tupleIndexIterator()
Specified by:
tupleIndexIterator in interface CollectionCache