Spring Data Solr

org.springframework.data.solr.core.query
Class SimplePivotField

java.lang.Object
  extended by org.springframework.data.solr.core.query.SimplePivotField
All Implemented Interfaces:
Field, PivotField

public class SimplePivotField
extends Object
implements PivotField

The most trivial implementation of PivotField.

Author:
Francisco Spaeth, Christoph Strobl

Constructor Summary
SimplePivotField(List<Field> fields)
           
SimplePivotField(String... fieldnames)
          Create new SimplePivotField
 
Method Summary
 boolean equals(Object obj)
           
 List<Field> getFields()
          Get the fields for this pivot.
 String getName()
          Get the name of the field used in schema.xml of solr server
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimplePivotField

public SimplePivotField(String... fieldnames)
Create new SimplePivotField

Parameters:
fieldnames - must consist of at least 2 fieldname eg. "field_1", "field_2" or a single String with comma separated fieldnames like "field_1,field_2"

SimplePivotField

public SimplePivotField(List<Field> fields)
Parameters:
fields - must consist of a least 2 Fields.
Method Detail

getFields

public List<Field> getFields()
Description copied from interface: PivotField
Get the fields for this pivot.

Specified by:
getFields in interface PivotField
Returns:

getName

public String getName()
Description copied from interface: Field
Get the name of the field used in schema.xml of solr server

Specified by:
getName in interface Field
Returns:

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Spring Data Solr

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