|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Store
A Store is holds persistent containers
| Field Summary | |
|---|---|
static Marshaller |
BytesMarshaller
Byte Marshaller |
static Marshaller |
ObjectMarshaller
Object Marshaller |
static Marshaller |
StringMarshaller
String Marshaller |
| Method Summary | |
|---|---|
void |
clear()
empty all the contents of the store |
void |
close()
close the store |
boolean |
delete()
delete the store |
void |
deleteListContainer(java.lang.Object id)
delete a ListContainer from the default container |
void |
deleteListContainer(java.lang.Object id,
java.lang.String containerName)
delete a ListContainer from the named container |
void |
deleteMapContainer(java.lang.Object id)
delete a container from the default container |
void |
deleteMapContainer(java.lang.Object id,
java.lang.String containerName)
delete a MapContainer from the name container |
boolean |
doesListContainerExist(java.lang.Object id)
Checks if a ListContainer exists in the default container |
boolean |
doesListContainerExist(java.lang.Object id,
java.lang.String containerName)
Checks if a ListContainer exists in the named container |
boolean |
doesMapContainerExist(java.lang.Object id)
Checks if a MapContainer exists in the default container |
boolean |
doesMapContainerExist(java.lang.Object id,
java.lang.String containerName)
Checks if a MapContainer exists in the named container |
void |
force()
Force all writes to disk |
java.lang.String |
getIndexType()
|
ListContainer |
getListContainer(java.lang.Object id)
Get a ListContainer with the given id and creates it if it doesn't exist |
ListContainer |
getListContainer(java.lang.Object id,
java.lang.String containerName)
Get a ListContainer with the given id and creates it if it doesn't exist |
ListContainer |
getListContainer(java.lang.Object id,
java.lang.String containerName,
java.lang.String indexType)
Get a ListContainer with the given id and creates it if it doesn't exist |
java.util.Set |
getListContainerIds()
Get a Set of call ListContainer Ids |
MapContainer |
getMapContainer(java.lang.Object id)
Get a MapContainer with the given id - the MapContainer is created if needed |
MapContainer |
getMapContainer(java.lang.Object id,
java.lang.String containerName)
Get a MapContainer with the given id - the MapContainer is created if needed |
MapContainer |
getMapContainer(java.lang.Object id,
java.lang.String containerName,
java.lang.String indexType)
Get a MapContainer with the given id - the MapContainer is created if needed |
java.util.Set |
getMapContainerIds()
Get a Set of call MapContainer Ids |
long |
getMaxDataFileLength()
|
void |
setIndexType(java.lang.String type)
Set the default index type |
void |
setMaxDataFileLength(long maxDataFileLength)
|
| Field Detail |
|---|
static final Marshaller BytesMarshaller
static final Marshaller ObjectMarshaller
static final Marshaller StringMarshaller
| Method Detail |
|---|
void close()
throws java.io.IOException
java.io.IOException
void force()
throws java.io.IOException
java.io.IOException
void clear()
throws java.io.IOException
java.io.IOException
boolean delete()
throws java.io.IOException
java.io.IOException
boolean doesMapContainerExist(java.lang.Object id)
throws java.io.IOException
id -
java.io.IOException
boolean doesMapContainerExist(java.lang.Object id,
java.lang.String containerName)
throws java.io.IOException
id - containerName -
java.io.IOException
MapContainer getMapContainer(java.lang.Object id)
throws java.io.IOException
id -
java.io.IOException
MapContainer getMapContainer(java.lang.Object id,
java.lang.String containerName)
throws java.io.IOException
id - containerName -
java.io.IOException
MapContainer getMapContainer(java.lang.Object id,
java.lang.String containerName,
java.lang.String indexType)
throws java.io.IOException
id - containerName - indexType -
java.io.IOException
void deleteMapContainer(java.lang.Object id)
throws java.io.IOException
id -
java.io.IOException
void deleteMapContainer(java.lang.Object id,
java.lang.String containerName)
throws java.io.IOException
id - containerName -
java.io.IOException
java.util.Set getMapContainerIds()
throws java.io.IOException
java.io.IOException
boolean doesListContainerExist(java.lang.Object id)
throws java.io.IOException
id -
java.io.IOException
boolean doesListContainerExist(java.lang.Object id,
java.lang.String containerName)
throws java.io.IOException
id - containerName -
java.io.IOException
ListContainer getListContainer(java.lang.Object id)
throws java.io.IOException
id -
java.io.IOException
ListContainer getListContainer(java.lang.Object id,
java.lang.String containerName)
throws java.io.IOException
id - containerName -
java.io.IOException
ListContainer getListContainer(java.lang.Object id,
java.lang.String containerName,
java.lang.String indexType)
throws java.io.IOException
id - containerName - indexType -
java.io.IOException
void deleteListContainer(java.lang.Object id)
throws java.io.IOException
id -
java.io.IOException
void deleteListContainer(java.lang.Object id,
java.lang.String containerName)
throws java.io.IOException
id - containerName -
java.io.IOException
java.util.Set getListContainerIds()
throws java.io.IOException
java.io.IOExceptionlong getMaxDataFileLength()
void setMaxDataFileLength(long maxDataFileLength)
maxDataFileLength - the maxDataFileLength to setjava.lang.String getIndexType()
IndexTypesvoid setIndexType(java.lang.String type)
type - IndexTypes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||