EmptyQueryResult.java
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* javax.jcr.NodeIterator
* javax.jcr.RepositoryException
* javax.jcr.query.QueryResult
* javax.jcr.query.RowIterator
* org.apache.jackrabbit.commons.iterator.NodeIteratorAdapter
* org.apache.jackrabbit.commons.iterator.RowIteratorAdapter
*/
package com.day.cq.search.impl.builder;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import javax.jcr.NodeIterator;
import javax.jcr.RepositoryException;
import javax.jcr.query.QueryResult;
import javax.jcr.query.RowIterator;
import org.apache.jackrabbit.commons.iterator.NodeIteratorAdapter;
import org.apache.jackrabbit.commons.iterator.RowIteratorAdapter;
public final class EmptyQueryResult
implements QueryResult {
public static final QueryResult INSTANCE = new EmptyQueryResult();
public String[] getColumnNames() throws RepositoryException {
return new String[0];
}
public RowIterator getRows() throws RepositoryException {
return new RowIteratorAdapter((Collection)Collections.EMPTY_LIST);
}
public NodeIterator getNodes() throws RepositoryException {
return new NodeIteratorAdapter((Collection)Collections.EMPTY_LIST);
}
public String[] getSelectorNames() throws RepositoryException {
return new String[0];
}
}