org.usergrid.persistence.query.ir
Class QuerySlice

java.lang.Object
  extended by org.usergrid.persistence.query.ir.QuerySlice

public class QuerySlice
extends Object

Node that represents a query slice operation

Author:
tnine

Nested Class Summary
static class QuerySlice.RangeValue
           
 
Constructor Summary
QuerySlice(String propertyName, int nodeId)
           
 
Method Summary
 boolean equals(Object obj)
           
 ByteBuffer getCursor()
           
 QuerySlice.RangeValue getFinish()
           
 String getPropertyName()
           
 QuerySlice.RangeValue getStart()
           
 int hashCode()
           
 boolean isComplete()
          Return true if we have a cursor and it's empty.
 boolean isEquals()
          True if this slice represents an equals operation
 boolean isReversed()
           
 void setCursor(ByteBuffer cursor)
           
 void setFinish(QuerySlice.RangeValue finish)
           
 void setPropertyName(String propertyName)
           
 void setReversed(boolean reversed)
           
 void setStart(QuerySlice.RangeValue start)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuerySlice

public QuerySlice(String propertyName,
                  int nodeId)
Parameters:
propertyName -
nodeId -
Method Detail

getPropertyName

public String getPropertyName()

setPropertyName

public void setPropertyName(String propertyName)

getStart

public QuerySlice.RangeValue getStart()

setStart

public void setStart(QuerySlice.RangeValue start)

getFinish

public QuerySlice.RangeValue getFinish()

setFinish

public void setFinish(QuerySlice.RangeValue finish)

getCursor

public ByteBuffer getCursor()

setCursor

public void setCursor(ByteBuffer cursor)

isReversed

public boolean isReversed()

setReversed

public void setReversed(boolean reversed)

isComplete

public boolean isComplete()
Return true if we have a cursor and it's empty. This means that we've already returned all possible values from this slice range with our existing data in a previous invocation of search

Returns:

isEquals

public boolean isEquals()
True if this slice represents an equals operation

Returns:
the equals

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.