com.tectonica.kvs.Index Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tectonica-commons Show documentation
Show all versions of tectonica-commons Show documentation
Set of Java utility classes, all completely independent, to provide lightweight solutions for common situations
package com.tectonica.kvs;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import com.tectonica.kvs.KeyValueStore.KeyValue;
public interface Index
{
public static interface IndexMapper
{
public F getIndexedFieldOf(V value);
}
Iterator> iteratorOf(F f);
Iterator keyIteratorOf(F f);
Iterator valueIteratorOf(F f);
boolean containsKeyOf(F f);
Set keySetOf(F f);
List valuesOf(F f);
List> entriesOf(F f);
Iterable> asIterableOf(F f);
Iterable asKeyIterableOf(F f);
Iterable asValueIterableOf(F f);
KeyValue getFirstEntry(F f);
K getFirstKey(F f);
V getFirstValue(F f);
String getName();
}