GigaSpaces XAP 10.0.1 API

com.gigaspaces.query
Class CompoundResult

java.lang.Object
  extended by com.gigaspaces.query.CompoundResult
All Implemented Interfaces:
Externalizable, Serializable, Cloneable
Direct Known Subclasses:
GroupByKey, GroupByValue

public abstract class CompoundResult
extends Object
implements Externalizable, Cloneable

Since:
10.0
Author:
Niv Ingberg
See Also:
Serialized Form

Field Summary
protected  int hashCode
           
protected  Map<String,Integer> nameIndexMap
           
protected  Object[] values
           
 
Constructor Summary
CompoundResult()
          Required for Externalizable
CompoundResult(Object[] values, Map<String,Integer> nameIndexMap)
           
 
Method Summary
 CompoundResult clone()
           
 boolean equals(Object obj)
           
 Object get(int index)
           
 Object get(String name)
           
 Boolean getBoolean(int index)
           
 Boolean getBoolean(String name)
           
 Byte getByte(int index)
           
 Byte getByte(String name)
           
 Double getDouble(int index)
           
 Double getDouble(String name)
           
 Float getFloat(int index)
           
 Float getFloat(String name)
           
 Integer getInt(int index)
           
 Integer getInt(String name)
           
 Long getLong(int index)
           
 Long getLong(String name)
           
 Short getShort(int index)
           
 Short getShort(String name)
           
 String getString(int index)
           
 String getString(String name)
           
 int hashCode()
           
protected  int indexOf(String name)
           
protected  void printValues(StringBuilder sb, String prefix, String suffix)
           
 void readExternal(ObjectInput in)
           
 void set(int index, Object value)
           
 int size()
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

values

protected Object[] values

nameIndexMap

protected Map<String,Integer> nameIndexMap

hashCode

protected transient int hashCode
Constructor Detail

CompoundResult

public CompoundResult()
Required for Externalizable


CompoundResult

public CompoundResult(Object[] values,
                      Map<String,Integer> nameIndexMap)
Method Detail

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

printValues

protected void printValues(StringBuilder sb,
                           String prefix,
                           String suffix)

clone

public CompoundResult clone()
Overrides:
clone in class Object

indexOf

protected int indexOf(String name)

size

public int size()

get

public Object get(int index)

set

public void set(int index,
                Object value)

get

public Object get(String name)

getBoolean

public Boolean getBoolean(int index)

getBoolean

public Boolean getBoolean(String name)

getByte

public Byte getByte(int index)

getByte

public Byte getByte(String name)

getShort

public Short getShort(int index)

getShort

public Short getShort(String name)

getInt

public Integer getInt(int index)

getInt

public Integer getInt(String name)

getLong

public Long getLong(int index)

getLong

public Long getLong(String name)

getFloat

public Float getFloat(int index)

getFloat

public Float getFloat(String name)

getDouble

public Double getDouble(int index)

getDouble

public Double getDouble(String name)

getString

public String getString(int index)

getString

public String getString(String name)

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.