Spring Data Solr

org.springframework.data.solr.core.query.result
Class SimpleFacetQueryEntry

java.lang.Object
  extended by org.springframework.data.solr.core.query.result.ValueCountEntry
      extended by org.springframework.data.solr.core.query.result.SimpleFacetQueryEntry
All Implemented Interfaces:
CountEntry, FacetEntry, FacetQueryEntry

public class SimpleFacetQueryEntry
extends ValueCountEntry
implements FacetQueryEntry

Trivial implementation of FacetQueryEntry

Author:
Christoph Strobl

Constructor Summary
SimpleFacetQueryEntry(String value, long count)
           
 
Method Summary
 String getKey()
          The key of the facetEntry
 FilterQuery getQuery()
          get the associated Query
 
Methods inherited from class org.springframework.data.solr.core.query.result.ValueCountEntry
getValue, getValueCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.data.solr.core.query.result.CountEntry
getValue, getValueCount
 

Constructor Detail

SimpleFacetQueryEntry

public SimpleFacetQueryEntry(String value,
                             long count)
Method Detail

getKey

public String getKey()
Description copied from interface: FacetEntry
The key of the facetEntry

Specified by:
getKey in interface FacetEntry
Specified by:
getKey in interface FacetQueryEntry
Returns:

getQuery

public FilterQuery getQuery()
Description copied from interface: FacetQueryEntry
get the associated Query

Specified by:
getQuery in interface FacetQueryEntry
Returns:

Spring Data Solr

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