mirror of https://github.com/apache/lucene.git
LUCENE-3624: throw exception for MultiSortedSource instead of returning null
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1211542 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b89ded1448
commit
0bd1fcf488
|
@ -210,18 +210,18 @@ public abstract class IndexDocValues implements Closeable {
|
|||
|
||||
/**
|
||||
* Returns the internal array representation iff this {@link Source} uses an
|
||||
* array as its inner representation, otherwise <code>null</code>.
|
||||
* array as its inner representation, otherwise <code>UOE</code>.
|
||||
*/
|
||||
public Object getArray() {
|
||||
return null;
|
||||
throw new UnsupportedOperationException("getArray is not supported");
|
||||
}
|
||||
|
||||
/**
|
||||
* If this {@link Source} is sorted this method will return an instance of
|
||||
* {@link SortedSource} otherwise <code>null</code>
|
||||
* {@link SortedSource} otherwise <code>UOE</code>
|
||||
*/
|
||||
public SortedSource asSortedSource() {
|
||||
return null;
|
||||
throw new UnsupportedOperationException("asSortedSource is not supported");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue