Package org.terrier.restclient
Class RestClientManagerBuilder
- java.lang.Object
-
- org.terrier.restclient.RestClientManagerBuilder
-
- All Implemented Interfaces:
ManagerFactory.Builder
public class RestClientManagerBuilder extends java.lang.Object implements ManagerFactory.Builder
This class facilitates a Manager to be obtained for a remote HTTP REST index reference. There is NO NEED to refer to the class directly - It is sufficient that terrier-rest-client is included in the classpath.IndexRef ref = IndexRef.of("http://server:8080/"); Manager m = ManagerFactory.from(ref);
- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description RestClientManagerBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Manager
fromIndex(IndexRef ref)
boolean
supports(IndexRef ref)
-
-
-
Method Detail
-
supports
public boolean supports(IndexRef ref)
- Specified by:
supports
in interfaceManagerFactory.Builder
-
fromIndex
public Manager fromIndex(IndexRef ref)
- Specified by:
fromIndex
in interfaceManagerFactory.Builder
-
-