@Path(value="/reader") public class ReaderResouce extends Object
Constructor and Description |
---|
ReaderResouce() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
linkRead()
Get Link Reader response schema
|
javax.ws.rs.core.Response |
linkRead(ReaderConfig readerConf,
int nrows,
int start,
int end,
boolean count)
Read link object
|
javax.ws.rs.core.Response |
nodeRead()
Get schema of the Node object
|
javax.ws.rs.core.Response |
nodeRead(ReaderConfig readerConf,
int nrows,
int start,
int end,
boolean count)
Read Node object as stored in the Nutch Webgraph
|
javax.ws.rs.core.Response |
seqRead(ReaderConfig readerConf,
int nrows,
int start,
int end,
boolean count)
Read a sequence file
|
@Path(value="/sequence/read") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response seqRead(ReaderConfig readerConf, @DefaultValue(value="-1") @QueryParam(value="nrows") int nrows, @DefaultValue(value="-1") @QueryParam(value="start") int start, @QueryParam(value="end") int end, @QueryParam(value="count") boolean count)
readerConf
- nrows
- Number of rows to read. If not specified all rows will be readstart
- Specify a starting line number to read the file fromend
- The line number to read the file tillcount
- Boolean value. If true, this endpoint will return the number of lines in the line@Path(value="/link") @GET @Produces(value="application/json") public javax.ws.rs.core.Response linkRead()
@Path(value="/link/read") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response linkRead(ReaderConfig readerConf, @DefaultValue(value="-1") @QueryParam(value="nrows") int nrows, @DefaultValue(value="-1") @QueryParam(value="start") int start, @QueryParam(value="end") int end, @QueryParam(value="count") boolean count)
readerConf
- nrows
- start
- end
- count
- @Path(value="/node") @GET @Produces(value="application/json") public javax.ws.rs.core.Response nodeRead()
@Path(value="/node/read") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response nodeRead(ReaderConfig readerConf, @DefaultValue(value="-1") @QueryParam(value="nrows") int nrows, @DefaultValue(value="-1") @QueryParam(value="start") int start, @QueryParam(value="end") int end, @QueryParam(value="count") boolean count)
readerConf
- nrows
- start
- end
- count
- Copyright © 2021 The Apache Software Foundation