com.factual.driver
Class SchemaResponse
java.lang.Object
com.factual.driver.Response
com.factual.driver.SchemaResponse
- All Implemented Interfaces:
- Tabular
public class SchemaResponse
- extends Response
- implements Tabular
Represents the response from running a schema request against Factual.
- Author:
- aaron
SchemaResponse
public SchemaResponse(String json)
- Constructor, parses from a JSON response String.
- Parameters:
json - the JSON response String returned by Factual.
getTitle
public String getTitle()
getDescription
public String getDescription()
isSearchEnabled
public boolean isSearchEnabled()
isGeoEnabled
public boolean isGeoEnabled()
getJson
public String getJson()
- Description copied from class:
Response
- Subclasses of Response must provide access to the original JSON
representation of Factual's response.
- Specified by:
getJson in class Response
- Returns:
- The full JSON response from Factual
size
public int size()
- Returns:
- the size of the schema (that is, the number of columns in the
table)
getColumnSchemas
public Map<String,ColumnSchema> getColumnSchemas()
getColumnSchema
public ColumnSchema getColumnSchema(String columnName)
getData
public List<Map<String,Object>> getData()
- Specified by:
getData in interface Tabular
Copyright © 2012. All Rights Reserved.