com.maxifier.mxcache.impl.caches.batch.ValueStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mxcache-runtime Show documentation
Show all versions of mxcache-runtime Show documentation
Constains all classes necessary for launching a MxCache-instrumentated application
/*
* Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
*/
package com.maxifier.mxcache.impl.caches.batch;
/**
* @author Alexander Kochurov ([email protected])
*/
interface ValueStrategy {
void addUnknown(V knownValues, C composer, int i, KE k);
void addKnown(V knownValues, C composer, int i, KE k, VE v);
V createValue(Class valueType, int n);
C createComposer(int n);
V compose(V knownValue, V calculated, C composition);
VE get(V value, int index, KE key);
boolean requiresOrder();
}