Java Code Examples for org.apache.commons.collections.IteratorUtils#toArray()

The following examples show how to use org.apache.commons.collections.IteratorUtils#toArray() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XJoinQParserPlugin.java    From BioSolr with Apache License 2.0 4 votes vote down vote up
@Override
Query makeQuery(String fname, Iterator<BytesRef> it) {
  return new DocValuesTermsQuery(fname, (BytesRef[])IteratorUtils.toArray(it, BytesRef.class));
}
 
Example 2
Source File: XJoinQParserPlugin.java    From BioSolr with Apache License 2.0 4 votes vote down vote up
@Override
Query makeQuery(String fname, Iterator<BytesRef> it) {
  return new DocValuesTermsQuery(fname, (BytesRef[])IteratorUtils.toArray(it, BytesRef.class));
}
 
Example 3
Source File: XJoinQParserPlugin.java    From BioSolr with Apache License 2.0 4 votes vote down vote up
@Override
Filter makeFilter(String fname, Iterator<BytesRef> it) {
  return new FieldCacheTermsFilter(fname, (BytesRef[])IteratorUtils.toArray(it, BytesRef.class));
}