/* Created on 27 mai 2005
$Id: ValueIndexKeyFactory.java 3457 2006-05-07 14:46:21Z wolfgang_m $ */
package org.exist.storage;

import org.exist.EXistException;

/** Factory for Keys for Value Indices;
 * provides through serialize() the persistant storage key. */
public interface ValueIndexKeyFactory extends Comparable {

	/** this is called from {@link NativeValueIndex} 
	 * @return the persistant storage key */
	public byte[] serialize(short collectionId, boolean caseSensitive) throws EXistException;
}
