Class Result
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.driver.Result
 
- 
- 
Constructor SummaryConstructors Constructor Description Result(Object responseData)Constructs a "result" from data found inResponseResult.getData().
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tget(Class<? extends T> clazz)Gets the result item by casting it to the specifiedClass.booleangetBoolean()Gets the result item by coercing it to anboolean.bytegetByte()Gets the result item by coercing it to anbyte.doublegetDouble()Gets the result item by coercing it to andouble.EdgegetEdge()Gets the result item by casting it to anEdge.ElementgetElement()Gets the result item by casting it to anElement.floatgetFloat()Gets the result item by coercing it to anfloat.intgetInt()Gets the result item by coercing it to anint.longgetLong()Gets the result item by coercing it to anlong.ObjectgetObject()Gets the result item.PathgetPath()Gets the result item by casting it to aPath.<V> Property<V>getProperty()Gets the result item by casting it to aProperty.shortgetShort()Gets the result item by coercing it to anshort.StringgetString()Gets the result item by coercing it to aStringviatoString().VertexgetVertex()Gets the result item by casting it to aVertex.<V> VertexProperty<V>getVertexProperty()Gets the result item by casting it to aVertexProperty.booleanisNull()Determines if the result item is null or not.StringtoString()
 
- 
- 
- 
Constructor Detail- 
Resultpublic Result(Object responseData) Constructs a "result" from data found inResponseResult.getData().
 
- 
 - 
Method Detail- 
getStringpublic String getString() Gets the result item by coercing it to aStringviatoString().
 - 
getIntpublic int getInt() Gets the result item by coercing it to anint.- Throws:
- NumberFormatException- if the value is not parsable as an- int.
 
 - 
getBytepublic byte getByte() Gets the result item by coercing it to anbyte.- Throws:
- NumberFormatException- if the value is not parsable as an- byte.
 
 - 
getShortpublic short getShort() Gets the result item by coercing it to anshort.- Throws:
- NumberFormatException- if the value is not parsable as an- short.
 
 - 
getLongpublic long getLong() Gets the result item by coercing it to anlong.- Throws:
- NumberFormatException- if the value is not parsable as an- long.
 
 - 
getFloatpublic float getFloat() Gets the result item by coercing it to anfloat.- Throws:
- NumberFormatException- if the value is not parsable as an- float.
 
 - 
getDoublepublic double getDouble() Gets the result item by coercing it to andouble.- Throws:
- NumberFormatException- if the value is not parsable as an- double.
 
 - 
getBooleanpublic boolean getBoolean() Gets the result item by coercing it to anboolean.- Throws:
- NumberFormatException- if the value is not parsable as an- boolean.
 
 - 
isNullpublic boolean isNull() Determines if the result item is null or not. This is often a good check prior to calling other methods to get the object as they could throw an unexpectedNullPointerExceptionif the result item isnull.
 - 
getVertexPropertypublic <V> VertexProperty<V> getVertexProperty() Gets the result item by casting it to aVertexProperty.
 - 
getpublic <T> T get(Class<? extends T> clazz) Gets the result item by casting it to the specifiedClass.
 - 
getObjectpublic Object getObject() Gets the result item.
 
- 
 
-