read
public javax.ws.rs.core.Response read(@Context
javax.servlet.ServletContext servletContext,
@Context
javax.ws.rs.core.HttpHeaders headers)
throws java.lang.Exception
Used to be HDFSReader. Creates a bridge instance and iterates over its
records, printing it out to outgoing stream. Outputs GPDBWritable or
Text.
Parameters come through HTTP header.
- Parameters:
servletContext
- Servlet context contains attributes required by
SecuredHDFS
headers
- Holds HTTP headers from request
- Returns:
- response object containing stream that will output records
- Throws:
java.lang.Exception
- in case of wrong request parameters, or failure to
initialize bridge