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()
IndexedDataObject
getIndex
in interface IndexedDataObject
public String getId()
IndexedDataObject
getId
in interface IndexedDataObject
public com.fasterxml.jackson.databind.node.ObjectNode getData()
IndexedDataObject
ObjectNode
that will be indexed in the index.getData
in interface IndexedDataObject
public boolean hasExternalVersion()
IndexedDataObject
hasExternalVersion
in interface IndexedDataObject
public Long getExternalVersion()
IndexedDataObject
getExternalVersion
in interface IndexedDataObject
public com.fasterxml.jackson.databind.node.ObjectNode getScript()
IndexedDataObject
getScript
in interface IndexedDataObject