public class LuceneTestSerializer extends java.lang.Object implements LuceneSerializer
Modifier and Type | Field and Description |
---|---|
protected java.util.Properties |
props |
Constructor and Description |
---|
LuceneTestSerializer() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Properties |
getProperties() |
int |
hashCode() |
void |
init(java.util.Properties props)
Initializes a user-defined object using the given properties.
|
java.util.Collection<Document> |
toDocuments(LuceneIndex index,
java.lang.Object value)
Add the fields of the given value to a set of documents
Added fields should be marked with
Field.Store.NO . |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
initialize
public void init(java.util.Properties props)
Declarable
Cache
initialization to fail.init
in interface Declarable
props
- Contains the parameters declared in the declarative xml file.public java.util.Properties getProperties()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Collection<Document> toDocuments(LuceneIndex index, java.lang.Object value)
LuceneSerializer
Field.Store.NO
. These
fields are only used for searches. When doing a query, geode will return the value from the
region, not any fields that are stored on the returned Documents.toDocuments
in interface LuceneSerializer
index
- lucene indexvalue
- user object to be serialized into index