public class ObjectNodeIndexedDataObject extends Object implements IndexedDataObject
| Modifier and Type | Field and Description |
|---|---|
protected Long |
externalVersion |
protected String |
id |
protected String |
index |
protected com.fasterxml.jackson.databind.node.ObjectNode |
objectNode |
protected com.fasterxml.jackson.databind.node.ObjectNode |
scriptNode |
| Constructor and Description |
|---|
ObjectNodeIndexedDataObject(String index,
String id,
com.fasterxml.jackson.databind.node.ObjectNode objectNode,
Long externalVersion) |
ObjectNodeIndexedDataObject(String index,
String id,
com.fasterxml.jackson.databind.node.ObjectNode objectNode,
Long externalVersion,
com.fasterxml.jackson.databind.node.ObjectNode scriptNode) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.node.ObjectNode |
getData()
The json data, represented as
ObjectNode that will be indexed in the index. |
Long |
getExternalVersion()
External version of the data
|
String |
getId()
The id of this data object to be indexed.
|
String |
getIndex()
The index where the data will be indexed.
|
com.fasterxml.jackson.databind.node.ObjectNode |
getScript()
Update script
|
boolean |
hasExternalVersion()
Check if object has external version
|
protected String index
protected com.fasterxml.jackson.databind.node.ObjectNode objectNode
protected String id
protected Long externalVersion
protected com.fasterxml.jackson.databind.node.ObjectNode scriptNode
public ObjectNodeIndexedDataObject(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, Long externalVersion)
public String getIndex()
IndexedDataObjectgetIndex in interface IndexedDataObjectpublic String getId()
IndexedDataObjectgetId in interface IndexedDataObjectpublic com.fasterxml.jackson.databind.node.ObjectNode getData()
IndexedDataObjectObjectNode that will be indexed in the index.getData in interface IndexedDataObjectpublic boolean hasExternalVersion()
IndexedDataObjecthasExternalVersion in interface IndexedDataObjectpublic Long getExternalVersion()
IndexedDataObjectgetExternalVersion in interface IndexedDataObjectpublic com.fasterxml.jackson.databind.node.ObjectNode getScript()
IndexedDataObjectgetScript in interface IndexedDataObject