|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.usergrid.persistence.cassandra.QueryProcessor
public class QueryProcessor
Nested Class Summary | |
---|---|
static class |
QueryProcessor.CursorCache
Internal cursor parsing |
Constructor Summary | |
---|---|
QueryProcessor(Query query,
CollectionInfo collectionInfo)
|
Method Summary | |
---|---|
void |
applyCursorAndSort(QuerySlice slice)
Apply cursor position and sort order to this slice. |
SliceNode |
generateSorts()
Generate a slice node with scan ranges for all the properties in our sort cache |
String |
getCursor()
Get the cursor as a string. |
QueryNode |
getFirstNode()
|
List<Entity> |
sort(List<Entity> entities)
Perform an in memory sort of the entities |
void |
updateCursor(QuerySlice slice,
ByteBuffer value)
Update the cursor for the slice with the new value |
void |
updateCursor(QuerySlice slice,
String cursorValue)
Update the cursor cache with the new cursor value for the given slice and value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryProcessor(Query query, CollectionInfo collectionInfo) throws PersistenceException
PersistenceException
Method Detail |
---|
public QueryNode getFirstNode()
public List<Entity> sort(List<Entity> entities)
entities
-
public void applyCursorAndSort(QuerySlice slice)
slice
- public void updateCursor(QuerySlice slice, ByteBuffer value)
slice
- public String getCursor()
public void updateCursor(QuerySlice slice, String cursorValue)
slice
- cursorValue
- public SliceNode generateSorts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |