| Constructor and Description |
|---|
ObjectFleaDB(Class<E> clazz)
Creates an in-memory instance with a Schema determined by the specified
record class.
|
ObjectFleaDB(File indexFolder,
Class<E> clazz)
Opens an existing persistent database or creates a new one.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit() |
void |
delete(Query q) |
double |
getFacetValueMultiplicity(String facetName,
String facetValue,
Query q) |
List<FacetResponse> |
getFacetValues(Query q,
FacetMultiplicities facets) |
List<FacetResponse> |
getFacetValues(Query q,
int maxFacetValues) |
List<FacetResponse> |
getFacetValuesStartingWith(String facetName,
String prefix,
Query q,
int max) |
protected FleaDBInfo |
getFleaDBInfo() |
File |
getIndexFolder() |
int |
getNumFacetValues(Query q,
String facetName) |
Schema |
getSchema() |
E |
getSingleResult(Query q) |
void |
optimize() |
Paginator<E> |
query(Query q) |
Paginator<E> |
query(Query q,
Sort sort) |
void |
store(E entity) |
public ObjectFleaDB(Class<E> clazz) throws IOException
clazz - IOExceptionpublic ObjectFleaDB(File indexFolder, Class<E> clazz) throws IOException
indexFolder - clazz - IOExceptionpublic File getIndexFolder()
protected final FleaDBInfo getFleaDBInfo()
public E getSingleResult(Query q)
getSingleResult in interface FleaDB<E>public final List<FacetResponse> getFacetValues(Query q, int maxFacetValues)
getFacetValues in interface FleaDB<E>public final List<FacetResponse> getFacetValues(Query q, FacetMultiplicities facets)
getFacetValues in interface FleaDB<E>public int getNumFacetValues(Query q, String facetName)
getNumFacetValues in interface FleaDB<E>public final List<FacetResponse> getFacetValuesStartingWith(String facetName, String prefix, Query q, int max)
getFacetValuesStartingWith in interface FleaDB<E>public final double getFacetValueMultiplicity(String facetName, String facetValue, Query q)
getFacetValueMultiplicity in interface FleaDB<E>public void optimize()
throws IOException
IOExceptionCopyright © 2010–2015. All rights reserved.