-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the idea of complex operations (multi-row operations) Added system keyspaces StructuredSetOperation stores each of the keys Scan can now be filtered by keyspace (inefficiently!)
- Loading branch information
Showing
32 changed files
with
353 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
cloudata-keyvalue/src/main/java/com/cloudata/keyvalue/operation/KeyOperation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package com.cloudata.keyvalue.operation; | ||
|
||
import com.cloudata.btree.BtreeOperation; | ||
import com.cloudata.btree.operation.RowOperation; | ||
import com.cloudata.keyvalue.KeyValueProto.KvEntry; | ||
|
||
public interface KeyOperation<V> extends BtreeOperation<V> { | ||
public interface KeyOperation<V> extends RowOperation<V> { | ||
|
||
public abstract KvEntry.Builder serialize(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
cloudata-server-shared/src/main/java/com/cloudata/btree/BtreeOperation.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
cloudata-server-shared/src/main/java/com/cloudata/btree/KeyspaceFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.cloudata.btree; | ||
|
||
import java.nio.ByteBuffer; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import com.cloudata.values.Value; | ||
|
||
public class KeyspaceFilter implements EntryListener { | ||
private static final Logger log = LoggerFactory.getLogger(KeyspaceFilter.class); | ||
|
||
private final Keyspace keyspace; | ||
private final EntryListener inner; | ||
|
||
public KeyspaceFilter(Keyspace keyspace, EntryListener inner) { | ||
this.keyspace = keyspace; | ||
this.inner = inner; | ||
} | ||
|
||
@Override | ||
public boolean found(ByteBuffer key, Value value) { | ||
log.warn("KeyspaceFilter is stupid"); | ||
if (keyspace.contains(key)) { | ||
return inner.found(key, value); | ||
} | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
cloudata-server-shared/src/main/java/com/cloudata/btree/operation/BtreeOperation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.cloudata.btree.operation; | ||
|
||
public interface BtreeOperation<V> { | ||
public abstract V getResult(); | ||
} |
Oops, something went wrong.