Spring Data Solr

org.springframework.data.solr.repository.query
Class SolrParametersParameterAccessor

java.lang.Object
  extended by org.springframework.data.solr.repository.query.SolrParametersParameterAccessor
All Implemented Interfaces:
Iterable<Object>, ParameterAccessor, SolrParameterAccessor

public class SolrParametersParameterAccessor
extends Object
implements SolrParameterAccessor

Implementation of SolrParameterAccessor

Author:
Christoph Strobl

Nested Class Summary
 class SolrParametersParameterAccessor.BindableSolrParameterIterator
           
 
Constructor Summary
SolrParametersParameterAccessor(SolrQueryMethod solrQueryMethod, Object[] values)
           
 
Method Summary
 Object getBindableValue(int index)
           
 float getBoost(int index)
          Get boost value for element at index if defined
 Pageable getPageable()
           
 Sort getSort()
           
 boolean hasBindableNullValue()
           
 Iterator<Object> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrParametersParameterAccessor

public SolrParametersParameterAccessor(SolrQueryMethod solrQueryMethod,
                                       Object[] values)
Method Detail

getBoost

public float getBoost(int index)
Description copied from interface: SolrParameterAccessor
Get boost value for element at index if defined

Specified by:
getBoost in interface SolrParameterAccessor
Parameters:
index - bindable parameter index
Returns:
Float.NaN as default

getPageable

public Pageable getPageable()
Specified by:
getPageable in interface ParameterAccessor

getSort

public Sort getSort()
Specified by:
getSort in interface ParameterAccessor

getBindableValue

public Object getBindableValue(int index)
Specified by:
getBindableValue in interface ParameterAccessor

hasBindableNullValue

public boolean hasBindableNullValue()
Specified by:
hasBindableNullValue in interface ParameterAccessor

iterator

public Iterator<Object> iterator()
Specified by:
iterator in interface Iterable<Object>
Specified by:
iterator in interface ParameterAccessor

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.