Search in sources :

Example 1 with UnknownScanner

use of org.apache.accumulo.proxy.thrift.UnknownScanner in project accumulo by apache.

the class ProxyServer method getScanner.

private ScannerPlusIterator getScanner(String scanner) throws UnknownScanner {
    UUID uuid = null;
    try {
        uuid = UUID.fromString(scanner);
    } catch (IllegalArgumentException e) {
        throw new UnknownScanner(e.getMessage());
    }
    ScannerPlusIterator spi = scannerCache.getIfPresent(uuid);
    if (spi == null) {
        throw new UnknownScanner("Scanner never existed or no longer exists");
    }
    return spi;
}
Also used : UnknownScanner(org.apache.accumulo.proxy.thrift.UnknownScanner) UUID(java.util.UUID)

Aggregations

UUID (java.util.UUID)1 UnknownScanner (org.apache.accumulo.proxy.thrift.UnknownScanner)1