Class ObjectNodeIndexedDataObject

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Long externalVersion  
      protected java.lang.String id  
      protected java.lang.String index  
      protected com.fasterxml.jackson.databind.node.ObjectNode objectNode  
      protected com.fasterxml.jackson.databind.node.ObjectNode scriptNode  
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectNodeIndexedDataObject​(java.lang.String index, java.lang.String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, java.lang.Long externalVersion)  
      ObjectNodeIndexedDataObject​(java.lang.String index, java.lang.String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, java.lang.Long externalVersion, com.fasterxml.jackson.databind.node.ObjectNode scriptNode)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.fasterxml.jackson.databind.node.ObjectNode getData()
      The json data, represented as ObjectNode that will be indexed in the index.
      java.lang.Long getExternalVersion()
      External version of the data
      java.lang.String getId()
      The id of this data object to be indexed.
      java.lang.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • index

        protected java.lang.String index
      • objectNode

        protected com.fasterxml.jackson.databind.node.ObjectNode objectNode
      • id

        protected java.lang.String id
      • externalVersion

        protected java.lang.Long externalVersion
      • scriptNode

        protected com.fasterxml.jackson.databind.node.ObjectNode scriptNode
    • Constructor Detail

      • ObjectNodeIndexedDataObject

        public ObjectNodeIndexedDataObject​(java.lang.String index,
                                           java.lang.String id,
                                           com.fasterxml.jackson.databind.node.ObjectNode objectNode,
                                           java.lang.Long externalVersion)
      • ObjectNodeIndexedDataObject

        public ObjectNodeIndexedDataObject​(java.lang.String index,
                                           java.lang.String id,
                                           com.fasterxml.jackson.databind.node.ObjectNode objectNode,
                                           java.lang.Long externalVersion,
                                           com.fasterxml.jackson.databind.node.ObjectNode scriptNode)
    • Method Detail

      • getId

        public java.lang.String getId()
        Description copied from interface: IndexedDataObject
        The id of this data object to be indexed. This id is used for indexing and retrieval by id, so make sure it is unique at least within the index it is used.
        Specified by:
        getId in interface IndexedDataObject
        Returns:
        the id of this indexed data object, which must be unique within at least the index it is used
      • getData

        public com.fasterxml.jackson.databind.node.ObjectNode getData()
        Description copied from interface: IndexedDataObject
        The json data, represented as ObjectNode that will be indexed in the index.
        Specified by:
        getData in interface IndexedDataObject