|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.IndexableMap
public class IndexableMap
Provides a combination of a document key and a map of field value pairs.
Field Summary | |
---|---|
protected java.lang.String |
key
The key for the document represented by this map. |
protected java.util.Map<java.lang.String,java.lang.Object> |
map
The map from field names to field values. |
Constructor Summary | |
---|---|
IndexableMap(java.lang.String key)
Creates an indexable map, suitable for passing to an indexing queue in a search engine. |
|
IndexableMap(java.lang.String key,
java.util.Map<java.lang.String,java.lang.Object> map)
Creates an indexable map, suitable for passing to an indexing queue in a search engine. |
Method Summary | |
---|---|
java.lang.String |
getKey()
Gets the key for this document. |
java.util.Map<java.lang.String,java.lang.Object> |
getMap()
Gets the map from field names to field values |
void |
put(java.lang.String name,
java.lang.Object value)
Puts a field name and value pair into our map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String key
protected java.util.Map<java.lang.String,java.lang.Object> map
Constructor Detail |
---|
public IndexableMap(java.lang.String key)
key
- a unique key for the document represented by this map.put(String, Object)
public IndexableMap(java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> map)
key
- a unique key for the document represented by this map.map
- a map from field names to field values. An implementation of
map that retains the order in which elements are added is the best thing
to use.Method Detail |
---|
public void put(java.lang.String name, java.lang.Object value)
name
- the name of the fieldvalue
- a value for the field.public java.lang.String getKey()
getKey
in interface Indexable
public java.util.Map<java.lang.String,java.lang.Object> getMap()
getMap
in interface Indexable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |