Class HeaderImpl
- java.lang.Object
-
- com.redislabs.redisgraph.impl.resultset.HeaderImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.redislabs.redisgraph.Header
Header.ResultSetColumnTypes
-
-
Constructor Summary
Constructors Constructor Description HeaderImpl(List<List<Object>> raw)
Parameterized constructor A raw representation of a header (query response schema) is a list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<String>
getSchemaNames()
List<Header.ResultSetColumnTypes>
getSchemaTypes()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
HeaderImpl
public HeaderImpl(List<List<Object>> raw)
Parameterized constructor A raw representation of a header (query response schema) is a list. Each entry in the list is a tuple (list of size 2). tuple[0] represents the type of the column, and tuple[1] represents the name of the column.- Parameters:
raw
- - raw representation of a header
-
-
Method Detail
-
getSchemaNames
public List<String> getSchemaNames()
- Specified by:
getSchemaNames
in interfaceHeader
- Returns:
- a list of column names, ordered by they appearance in the query
-
getSchemaTypes
public List<Header.ResultSetColumnTypes> getSchemaTypes()
- Specified by:
getSchemaTypes
in interfaceHeader
- Returns:
- a list of column types, ordered by they appearance in the query
-
-