Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
D
E
G
H
I
K
L
M
O
P
R
S
T
V
A
add(Object, Object)
- Method in class org.space4j.indexing.
IndexManager
Insert an object in this IndexManager.
add(Object)
- Method in class org.space4j.indexing.
Key
Add a new value for this key.
C
check(Object)
- Method in class org.space4j.implementation.
SimpleSpace
check(Object)
- Method in interface org.space4j.
Space
Checks whehter an object exists with the following key.
checkIndex(String)
- Method in class org.space4j.indexing.
IndexManager
Check if an index with that name already exists.
Command
- Class in
org.space4j
A command representing an update to the Space4J database of objects in RAM.
Command()
- Constructor for class org.space4j.
Command
CommandException
- Exception in
org.space4j
This exception may be thrown when there is a problem while executing a Command.
CommandException()
- Constructor for exception org.space4j.
CommandException
CommandException(String)
- Constructor for exception org.space4j.
CommandException
compare(Key, Key)
- Method in class org.space4j.indexing.
KeyComparator
compareDates(Date, Date)
- Method in class org.space4j.indexing.
KeyComparator
compareNumbers(Number, Number)
- Method in class org.space4j.indexing.
KeyComparator
compareObjects(Object, Object)
- Method in class org.space4j.indexing.
KeyComparator
compareStrings(String, String)
- Method in class org.space4j.indexing.
KeyComparator
CreateCollectionCmd
<
V
> - Class in
org.space4j.command
CreateCollectionCmd(Object)
- Constructor for class org.space4j.command.
CreateCollectionCmd
CreateCollectionCmd(Object, Collection<V>)
- Constructor for class org.space4j.command.
CreateCollectionCmd
createIndex(Index, Space4J)
- Method in class org.space4j.indexing.
IndexManager
Create an index in the system.
CreateMapCmd
<
K
,
V
> - Class in
org.space4j.command
CreateMapCmd(Object)
- Constructor for class org.space4j.command.
CreateMapCmd
CreateMapCmd(Object, Map<K, V>)
- Constructor for class org.space4j.command.
CreateMapCmd
CreateObjectCmd
- Class in
org.space4j.command
CreateObjectCmd(Object, Object)
- Constructor for class org.space4j.command.
CreateObjectCmd
CreateSequenceCmd
- Class in
org.space4j.command
CreateSequenceCmd(Object)
- Constructor for class org.space4j.command.
CreateSequenceCmd
CreateSequenceCmd(Object, int)
- Constructor for class org.space4j.command.
CreateSequenceCmd
D
dirname
- Variable in class org.space4j.implementation.
SimpleSpace4J
dropIndex(Index, Space4J)
- Method in class org.space4j.indexing.
IndexManager
Drop an index from the system.
DropObjectCmd
- Class in
org.space4j.command
DropObjectCmd(Object)
- Constructor for class org.space4j.command.
DropObjectCmd
DropSequenceCmd
- Class in
org.space4j.command
DropSequenceCmd(Object)
- Constructor for class org.space4j.command.
DropSequenceCmd
E
equals(Object)
- Method in class org.space4j.indexing.
Index
equals(Object)
- Method in class org.space4j.indexing.
Key
exec(Command, boolean)
- Method in class org.space4j.implementation.
MasterSpace4J
exec(Command)
- Method in class org.space4j.implementation.
SimpleSpace4J
Execute a command and log it.
exec(Command, boolean)
- Method in class org.space4j.implementation.
SimpleSpace4J
exec(Command)
- Method in class org.space4j.implementation.
SlaveSpace4J
exec(Command)
- Method in interface org.space4j.
Space4J
Executes a command on the underlying Space.
execute(Space)
- Method in class org.space4j.command.
CreateCollectionCmd
execute(Space)
- Method in class org.space4j.command.
CreateMapCmd
execute(Space)
- Method in class org.space4j.command.
CreateObjectCmd
execute(Space)
- Method in class org.space4j.command.
CreateSequenceCmd
execute(Space)
- Method in class org.space4j.command.
DropObjectCmd
execute(Space)
- Method in class org.space4j.command.
DropSequenceCmd
execute(Space)
- Method in class org.space4j.
Command
This method accesses the Space and its objects to do any modifications it wants.
execute(Space)
- Method in class org.space4j.command.
IncrementSeqCmd
execute(Space)
- Method in class org.space4j.command.
PutCmd
execute(Space)
- Method in class org.space4j.command.
RemoveCmd
executeSnapshot()
- Method in class org.space4j.implementation.
SimpleSpace4J
executeSnapshot()
- Method in class org.space4j.implementation.
SlaveSpace4J
executeSnapshot()
- Method in interface org.space4j.
Space4J
Take a snapshot of the Space to disk.
executeSQL(Connection)
- Method in class org.space4j.
Command
This method will let you replicate your data in a relational database, so you can continue creating your reports and using data data warehousing tools with SQL.
G
get(Object)
- Method in class org.space4j.implementation.
SimpleSpace
get(int)
- Method in class org.space4j.indexing.
Key
get(Object)
- Method in class org.space4j.indexing.
MultiMap
get(Object...)
- Method in class org.space4j.indexing.
MultiMap
get(Object)
- Method in class org.space4j.indexing.
MultiSortedMap
get(Object...)
- Method in class org.space4j.indexing.
MultiSortedMap
get(Object)
- Method in interface org.space4j.
Space
Gets the Object stored in this Space with this key.
getAttributes()
- Method in class org.space4j.indexing.
Index
Return the attributes of this index.
getClassName()
- Method in class org.space4j.indexing.
Index
Return the name of the class of this index.
getComparator()
- Method in class org.space4j.indexing.
Index
getDirName()
- Method in class org.space4j.implementation.
SimpleSpace4J
getIndex(String)
- Method in class org.space4j.indexing.
IndexManager
Return an index with that name.
getIndexManager()
- Method in class org.space4j.implementation.
SimpleSpace
getIndexManager()
- Method in interface org.space4j.
Space
Returns the IndexManager in this space.
getIterator(Object)
- Method in class org.space4j.implementation.
SimpleSpace
getIterator(Object)
- Method in interface org.space4j.
Space
Returns an iterator of the underlying collection or map object.
getKey(Object)
- Method in class org.space4j.indexing.
Index
Get a key to be used by this index for a given object.
getKeyIterator(Object)
- Method in class org.space4j.implementation.
SimpleSpace
getKeyIterator(Object)
- Method in interface org.space4j.
Space
Returns an iterator of the keys of the underlying map object.
getLogNumber()
- Method in class org.space4j.
Command
This method is important when Space4J is replicated.
getLogNumber()
- Method in class org.space4j.implementation.
SimpleLogger
getLogNumber()
- Method in interface org.space4j.
Logger
Get the current log number.
getMap()
- Method in class org.space4j.indexing.
Index
getMap(Index.TYPE, Comparator<Key>)
- Method in class org.space4j.indexing.
Index
getName()
- Method in class org.space4j.indexing.
Index
Return the name of this index.
getReplicaId()
- Method in class org.space4j.
Command
This method is important when Space4J is replicated.
getSource()
- Method in class org.space4j.indexing.
Index
getSpace()
- Method in class org.space4j.implementation.
SimpleSpace4J
getSpace()
- Method in interface org.space4j.
Space4J
Returns the Space where the Objects are stored, so the client can direct access them.
getType()
- Method in class org.space4j.indexing.
Index
getTypeName(Index.TYPE)
- Method in class org.space4j.indexing.
Index
H
hasAttribute(String)
- Method in class org.space4j.indexing.
Index
Check if this index contains a given attribute.
hashCode()
- Method in class org.space4j.indexing.
Index
hashCode()
- Method in class org.space4j.indexing.
Key
I
im
- Variable in class org.space4j.implementation.
SimpleSpace4J
IncrementSeqCmd
- Class in
org.space4j.command
IncrementSeqCmd(Object)
- Constructor for class org.space4j.command.
IncrementSeqCmd
Index
- Class in
org.space4j.indexing
An object representing an Index in the system.
Index(String, Object, Index.TYPE, Class<? extends Object>, String...)
- Constructor for class org.space4j.indexing.
Index
Create a new Index.
Index(String, Object, Index.TYPE, Comparator<Key>, Class<? extends Object>, String...)
- Constructor for class org.space4j.indexing.
Index
Index.TYPE
- Enum in
org.space4j.indexing
IndexManager
- Class in
org.space4j.indexing
IndexManager will control all indexes for your space.
IndexManager()
- Constructor for class org.space4j.indexing.
IndexManager
K
KEY
- Static variable in class org.space4j.indexing.
IndexManager
Key
- Class in
org.space4j.indexing
A key to be used by the Maps of the IndexManager.
Key()
- Constructor for class org.space4j.indexing.
Key
Creates a new Key.
Key(String...)
- Constructor for class org.space4j.indexing.
Key
Key(int, String)
- Constructor for class org.space4j.indexing.
Key
Creates a new Compound Key (int + String)
Key(int)
- Constructor for class org.space4j.indexing.
Key
Creates a new Key (int)
Key(String)
- Constructor for class org.space4j.indexing.
Key
Creates a new Key (String)
Key(Object)
- Constructor for class org.space4j.indexing.
Key
Key(Object...)
- Constructor for class org.space4j.indexing.
Key
KeyComparator
- Class in
org.space4j.indexing
KeyComparator()
- Constructor for class org.space4j.indexing.
KeyComparator
L
logCommand(Command)
- Method in class org.space4j.implementation.
SimpleLogger
logCommand(Command)
- Method in interface org.space4j.
Logger
Log a command to a log file on disk.
logger
- Variable in class org.space4j.implementation.
SimpleSpace4J
Logger
- Interface in
org.space4j
An interface defining how a Logger Object should work.
LoggerException
- Exception in
org.space4j
This exception may be thrown when there was a problem with a Logger operation.
LoggerException()
- Constructor for exception org.space4j.
LoggerException
LoggerException(String)
- Constructor for exception org.space4j.
LoggerException
M
MasterSpace4J
- Class in
org.space4j.implementation
The master space4j in the center of the replication ring.
MasterSpace4J(String)
- Constructor for class org.space4j.implementation.
MasterSpace4J
Initializes the MasterSpace4J.
MasterSpace4J(String, long)
- Constructor for class org.space4j.implementation.
MasterSpace4J
MasterSpace4J(String, long, int, int)
- Constructor for class org.space4j.implementation.
MasterSpace4J
Initializes the MasterSpace4J.
MasterSpace4J(String, int, int)
- Constructor for class org.space4j.implementation.
MasterSpace4J
MultiMap
- Class in
org.space4j.indexing
MultiMap()
- Constructor for class org.space4j.indexing.
MultiMap
MultiSortedMap
- Class in
org.space4j.indexing
MultiSortedMap(Comparator<Key>)
- Constructor for class org.space4j.indexing.
MultiSortedMap
O
org.space4j
- package org.space4j
org.space4j.command
- package org.space4j.command
org.space4j.implementation
- package org.space4j.implementation
org.space4j.indexing
- package org.space4j.indexing
P
put(Object, Object)
- Method in class org.space4j.implementation.
SimpleSpace
put(Object, Object)
- Method in interface org.space4j.
Space
Puts an Object in this Space with this key.
PutCmd
- Class in
org.space4j.command
PutCmd(Object, Object, Object)
- Constructor for class org.space4j.command.
PutCmd
PutCmd(Object, Object)
- Constructor for class org.space4j.command.
PutCmd
putObject(Key, Object)
- Method in class org.space4j.indexing.
MultiMap
putObject(Key, Object)
- Method in class org.space4j.indexing.
MultiSortedMap
R
readSnapshot()
- Method in class org.space4j.implementation.
SimpleLogger
readSnapshot()
- Method in class org.space4j.implementation.
SimpleSpace4J
readSnapshot()
- Method in interface org.space4j.
Logger
Recover the last snapshot from disk and recreate a Space from it.
reapply(Command)
- Method in class org.space4j.implementation.
SimpleSpace4J
reapply(Command)
- Method in interface org.space4j.
Space4J
Re-apply a command on the underlying Space.
reapplyCommandsFromLog(Space4J)
- Method in class org.space4j.implementation.
SimpleLogger
reapplyCommandsFromLog()
- Method in class org.space4j.implementation.
SimpleSpace4J
reapplyCommandsFromLog(Space4J)
- Method in interface org.space4j.
Logger
Read the last commands from the log and re-apply them to this Space4J.
remove(Object)
- Method in class org.space4j.implementation.
SimpleSpace
remove(Object, Object)
- Method in class org.space4j.indexing.
IndexManager
Remove an object from this IndexManager.
remove(Object)
- Method in class org.space4j.indexing.
MultiMap
remove(Object)
- Method in class org.space4j.indexing.
MultiSortedMap
remove(Object)
- Method in interface org.space4j.
Space
Removes an Object from this Space with this key.
RemoveCmd
- Class in
org.space4j.command
RemoveCmd(Object, Object)
- Constructor for class org.space4j.command.
RemoveCmd
removeObject(Key, Object)
- Method in class org.space4j.indexing.
MultiMap
removeObject(Key, Object)
- Method in class org.space4j.indexing.
MultiSortedMap
run()
- Method in class org.space4j.implementation.
MasterSpace4J
run()
- Method in class org.space4j.implementation.
SimpleSpace4J
run()
- Method in class org.space4j.implementation.
SlaveSpace4J
S
setLogNumber(long)
- Method in class org.space4j.
Command
Sets the log number where this command is stored.
setReplicaId(long)
- Method in class org.space4j.
Command
Sets the number of the replica this commands belongs to.
setSequence(int)
- Method in class org.space4j.command.
IncrementSeqCmd
SimpleLogger
- Class in
org.space4j.implementation
SimpleLogger(String)
- Constructor for class org.space4j.implementation.
SimpleLogger
Initializes this SimpleLogger.
SimpleSpace
- Class in
org.space4j.implementation
A trivial implementation of Space, in other words, our space just use a Map.
SimpleSpace()
- Constructor for class org.space4j.implementation.
SimpleSpace
Initializes the SimpleSpace.
SimpleSpace(Map<Object, Object>)
- Constructor for class org.space4j.implementation.
SimpleSpace
Initializes the SimpleSpace with a Map.
SimpleSpace4J
- Class in
org.space4j.implementation
The simplest possible implementation of a Space4J.
SimpleSpace4J(String, long)
- Constructor for class org.space4j.implementation.
SimpleSpace4J
Initializes the SimpleSpace4J, initializes the Logger, recover the Space from disk if there is a snapshot saved and reapply the commands to the Space.
SimpleSpace4J(String)
- Constructor for class org.space4j.implementation.
SimpleSpace4J
size()
- Method in class org.space4j.indexing.
Key
SlaveSpace4J
- Class in
org.space4j.implementation
This is complex, but it works.
SlaveSpace4J(String, long, String)
- Constructor for class org.space4j.implementation.
SlaveSpace4J
Initializes the SlaveSpace4J.
SlaveSpace4J(String, String)
- Constructor for class org.space4j.implementation.
SlaveSpace4J
SlaveSpace4J(String, long, String, int, int)
- Constructor for class org.space4j.implementation.
SlaveSpace4J
Initializes the SlaveSpace4J.
SlaveSpace4J(String, String, int, int)
- Constructor for class org.space4j.implementation.
SlaveSpace4J
snapTime
- Variable in class org.space4j.implementation.
SimpleSpace4J
space
- Variable in class org.space4j.implementation.
SimpleSpace4J
Space
- Interface in
org.space4j
The Space where the objects will be stored in memory.
Space4J
- Interface in
org.space4j
Our Java database of objects.
start()
- Method in class org.space4j.implementation.
MasterSpace4J
Start listening for slaves.
start()
- Method in class org.space4j.implementation.
SimpleSpace4J
start()
- Method in class org.space4j.implementation.
SlaveSpace4J
start()
- Method in interface org.space4j.
Space4J
Starts the Space4J.
T
takeSnapshot(Space)
- Method in class org.space4j.implementation.
SimpleLogger
takeSnapshot(Space, long)
- Method in class org.space4j.implementation.
SimpleLogger
takeSnapshot(Space)
- Method in interface org.space4j.
Logger
Take a snapshot of the Space to disk.
takeSnapshot(Space, long)
- Method in interface org.space4j.
Logger
Take a snapshot of the Space to disk.
thread
- Variable in class org.space4j.implementation.
SimpleSpace4J
toString()
- Method in class org.space4j.indexing.
Index
V
valueOf(String)
- Static method in enum org.space4j.indexing.
Index.TYPE
Returns the enum constant of this type with the specified name.
values()
- Static method in enum org.space4j.indexing.
Index.TYPE
Returns an array containing the constants of this enum type, in the order they are declared.
A
C
D
E
G
H
I
K
L
M
O
P
R
S
T
V
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2005 Space4J Team. All Rights Reserved.