public static class FileSetService.FileSetHandler extends AbstractHttpServiceHandler
| Constructor and Description |
|---|
FileSetHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(HttpServiceRequest request,
HttpServiceResponder responder,
String set,
String clone)
Create a new file set.
|
void |
drop(HttpServiceRequest request,
HttpServiceResponder responder,
String set)
Drop an existing file set.
|
void |
properties(HttpServiceRequest request,
HttpServiceResponder responder,
String set)
Responds with the properties of an existing file set.
|
void |
read(HttpServiceRequest request,
HttpServiceResponder responder,
String set,
String filePath)
Responds with the content of the file specified by the request.
|
void |
truncate(HttpServiceRequest request,
HttpServiceResponder responder,
String set)
Truncate an existing file set.
|
void |
update(HttpServiceRequest request,
HttpServiceResponder responder,
String set)
Update the properties of a file set.
|
HttpContentConsumer |
write(HttpServiceRequest request,
HttpServiceResponder responder,
String set,
String filePath)
Upload the content for a new file at the location specified by thee request.
|
configure, configure, destroy, getConfigurer, getContext, initialize, setPropertiesusePlugin, usePlugin, usePluginClass, usePluginClassaddDatasetModule, addDatasetType, addStream, addStream, createDataset, createDataset, createDataset, createDataset@GET
@Path(value="{fileset}")
public void read(HttpServiceRequest request,
HttpServiceResponder responder,
@PathParam(value="fileset")
String set,
@QueryParam(value="path")
String filePath)
set - the name of the file setfilePath - the relative path within the file set@PUT
@Path(value="{fileset}")
public HttpContentConsumer write(HttpServiceRequest request,
HttpServiceResponder responder,
@PathParam(value="fileset")
String set,
@QueryParam(value="path")
String filePath)
set - the name of the file setfilePath - the relative path within the file set@POST
@Path(value="{fileset}/create")
public void create(HttpServiceRequest request,
HttpServiceResponder responder,
@PathParam(value="fileset")
String set,
@Nullable @QueryParam(value="clone")
String clone)
throws DatasetManagementException
set - the name of the file setclone - the name of an existing dataset. If present, its properties are used for the new dataset.DatasetManagementException@POST
@Path(value="{fileset}/update")
public void update(HttpServiceRequest request,
HttpServiceResponder responder,
@PathParam(value="fileset")
String set)
throws DatasetManagementException
set - the name of the file setDatasetManagementException@POST
@Path(value="{fileset}/drop")
public void drop(HttpServiceRequest request,
HttpServiceResponder responder,
@PathParam(value="fileset")
String set)
throws DatasetManagementException
set - the name of the file set to dropDatasetManagementException@POST
@Path(value="{fileset}/truncate")
public void truncate(HttpServiceRequest request,
HttpServiceResponder responder,
@PathParam(value="fileset")
String set)
throws DatasetManagementException
set - the name of the file set to truncateDatasetManagementException@POST
@Path(value="{fileset}/properties")
public void properties(HttpServiceRequest request,
HttpServiceResponder responder,
@PathParam(value="fileset")
String set)
throws DatasetManagementException
set - the name of the file setDatasetManagementExceptionCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.