Revision 55757
Added by Claudio Atzori almost 5 years ago
modules/dnet-index-solr-common/trunk/src/main/java/eu/dnetlib/functionality/index/solr/feed/StreamingInputDocumentFactory.java | ||
---|---|---|
70 | 70 |
} |
71 | 71 |
}; |
72 | 72 |
|
73 |
/** |
|
74 |
* {@inheritDoc} |
|
75 |
* |
|
76 |
* @see eu.dnetlib.functionality.index.solr.feed.InputDocumentFactory#parseDocument(eu.dnetlib.functionality.index.solr.feed.IndexDocument, |
|
77 |
* java.lang.String) |
|
78 |
*/ |
|
79 | 73 |
@Override |
80 | 74 |
public SolrInputDocument parseDocument(final String version, final String inputDocument, final String dsId, final String resultName) |
81 | 75 |
throws XMLStreamException { |
82 | 76 |
return parseDocument(version, inputDocument, dsId, resultName, null); |
83 | 77 |
} |
84 | 78 |
|
85 |
/** |
|
86 |
* {@inheritDoc} |
|
87 |
* |
|
88 |
* @see eu.dnetlib.functionality.index.solr.feed.InputDocumentFactory#parseDocument(eu.dnetlib.functionality.index.solr.feed.IndexDocument, |
|
89 |
* java.lang.String, com.google.common.base.Function) |
|
90 |
*/ |
|
91 | 79 |
@Override |
92 | 80 |
public SolrInputDocument parseDocument(final String version, |
93 | 81 |
final String inputDocument, |
... | ... | |
253 | 241 |
* Helper used to get the string from a text element. |
254 | 242 |
* |
255 | 243 |
* @param text |
256 |
* @return |
|
244 |
* @return the element text value
|
|
257 | 245 |
*/ |
258 | 246 |
protected final String getText(final XMLEvent text) { |
259 | 247 |
if (text.isEndElement()) // log.warn("skipping because isEndOfElement " + text.asEndElement().getName().getLocalPart()); |
modules/dnet-index-solr-common/trunk/src/main/java/eu/dnetlib/functionality/index/solr/feed/InputDocumentFactory.java | ||
---|---|---|
47 | 47 |
* method return a solr-compatible string representation of a date |
48 | 48 |
* |
49 | 49 |
* @param date |
50 |
* @return |
|
50 |
* @return the formatted date string
|
|
51 | 51 |
* @throws DocumentException |
52 | 52 |
* @throws ParseException |
53 | 53 |
*/ |
Also available in: Unified diff
javadoc