Class G2ConfigJNI

    • Constructor Summary

      Constructors 
      Constructor Description
      G2ConfigJNI()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int addAttributeV2​(long configHandle, String inputJson, StringBuffer response)
      Adds the attribute described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addConfigSectionFieldV2​(long configHandle, String inputJson)
      Adds a config section field described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addConfigSectionV2​(long configHandle, String inputJson)
      Adds a config section described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addDataSource​(long configHandle, String code)
      Adds a single data source with the specified data source code to the in-memory configuration associated with the specified config handle.
      int addDataSourceV2​(long configHandle, String inputJson, StringBuffer response)
      Adds a data source described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addDataSourceWithID​(long configHandle, String code, int id)
      Adds a single data source with the specified data source code and data source ID to the in-memory configuration associated with the specified config handle.
      int addElementToFeatureV2​(long configHandle, String inputJson)
      Adds an element to the feature described by the specified JSON in the in-memory configuration associated with the specified config handle.
      int addEntityClassV2​(long configHandle, String inputJson, StringBuffer response)
      Adds an entity class described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addEntityTypeV2​(long configHandle, String inputJson, StringBuffer response)
      Adds an entity type described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureComparisonFunctionCallElementV2​(long configHandle, String inputJson)
      Adds an element to the feature comparison function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureComparisonFunctionCallV2​(long configHandle, String inputJson, StringBuffer response)
      Registers the feature comparison function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureComparisonFunctionReturnCodeV2​(long configHandle, String inputJson, StringBuffer response)
      Adds a feature comparison function return code described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureComparisonFunctionV2​(long configHandle, String inputJson, StringBuffer response)
      Adds a feature comparison function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureDistinctFunctionCallElementV2​(long configHandle, String inputJson)
      Adds an element to the feature distinct function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureDistinctFunctionCallV2​(long configHandle, String inputJson, StringBuffer response)
      Registers the feature distinct function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureDistinctFunctionV2​(long configHandle, String inputJson, StringBuffer response)
      Adds a feature distinct function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureElementV2​(long configHandle, String inputJson, StringBuffer response)
      Adds the feature element described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureExpressionFunctionCallElementV2​(long configHandle, String inputJson)
      Adds an element to the feature expression function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureExpressionFunctionCallV2​(long configHandle, String inputJson, StringBuffer response)
      Registers the feature expression function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureExpressionFunctionV2​(long configHandle, String inputJson, StringBuffer response)
      Adds a feature expression function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureStandardizationFunctionCallV2​(long configHandle, String inputJson, StringBuffer response)
      Registers the feature standardization function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureStandardizationFunctionV2​(long configHandle, String inputJson, StringBuffer response)
      Adds a feature standardization function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addFeatureV2​(long configHandle, String inputJson, StringBuffer response)
      Adds the feature described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addRuleFragmentV2​(long configHandle, String inputJson, StringBuffer response)
      Adds the resolution rule fragment described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int addRuleV2​(long configHandle, String inputJson, StringBuffer response)
      Adds the resolution rule described by the specified JSON to the in-memory configuration associated with the specified config handle.
      void clearLastException()
      Clears the information about the last error the system received.
      void close​(long configHandle)
      Closes the in-memory configuration associated with the specified config handle and cleans up system resources.
      long create()
      Creates a new in-memory configuration using the default template and returns the config handle for working with it.
      int deleteAttributeV2​(long configHandle, String inputJson)
      Deletes the attribute described by the specified JSON from the in-memory configuration associated with the specified config handle.
      int deleteDataSourceV2​(long configHandle, String inputJson)
      Deletes the data source described by the specified JSON from the in-memory configuration associated with the specified config handle.
      int deleteElementFromFeatureV2​(long configHandle, String inputJson)
      Deletes an element from the feature described by the specified JSON in the in-memory configuration associated with the specified config handle.
      int deleteEntityClassV2​(long configHandle, String inputJson)
      Deletes the entity class described by the specified JSON from the in-memory configuration associated with the specified config handle.
      int deleteEntityTypeV2​(long configHandle, String inputJson)
      Deletes the entity type described by the specified JSON from the in-memory configuration associated with the specified config handle.
      int deleteFeatureComparisonFunctionCallElementV2​(long configHandle, String inputJson)
      Deletes an element from the feature comparison function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int deleteFeatureComparisonFunctionCallV2​(long configHandle, String inputJson)
      Deletes/unregisters the feature comparison function described by the specified JSON from the in-memory configuration associated with the specified config handle.
      int deleteFeatureDistinctFunctionCallElementV2​(long configHandle, String inputJson)
      Deletes an element from the feature distinct function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int deleteFeatureDistinctFunctionCallV2​(long configHandle, String inputJson)
      Deletes/unregisters the feature distinct function described by the specified JSON from the in-memory configuration associated with the specified config handle.
      int deleteFeatureElementV2​(long configHandle, String inputJson)
      Deletes the feature element described by the specified JSON from the in-memory configuration associated with the specified config handle.
      int deleteFeatureExpressionFunctionCallElementV2​(long configHandle, String inputJson)
      Deletes an element from the feature expression function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int deleteFeatureExpressionFunctionCallV2​(long configHandle, String inputJson)
      Deletes/unregisters the feature expression function described by the specified JSON from the in-memory configuration associated with the specified config handle.
      int deleteFeatureStandardizationFunctionCallV2​(long configHandle, String inputJson)
      Deletes/unregisters the feature standardization function described by the specified JSON from the in-memory configuration associated with the specified config handle.
      int deleteFeatureV2​(long configHandle, String inputJson)
      Deletes the feature described by the specified JSON from the in-memory configuration associated with the specified config handle.
      int deleteRuleFragmentV2​(long configHandle, String inputJson)
      Deletes the resolution rule fragment described by the specified JSON from the in-memory configuration associated with the specified config handle.
      int deleteRuleV2​(long configHandle, String inputJson)
      Deletes the resolution rule described by the specified JSON from the in-memory configuration associated with the specified config handle.
      int destroy()
      Uninitializes the G2 config API and cleans up system resources.
      int getAttributeV2​(long configHandle, String inputJson, StringBuffer response)
      Extracts a single attribute that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the attribute details.
      int getCompatibilityVersionV2​(long configHandle, StringBuffer response)
      Gets the config compatibility version from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the compatibility version.
      int getFeatureComparisonFunctionCallV2​(long configHandle, String inputJson, StringBuffer response)
      Extracts a single feature comparison function call that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the feature comparison function details.
      int getFeatureDistinctFunctionCallV2​(long configHandle, String inputJson, StringBuffer response)
      Extracts a single feature distinct function call that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the feature distinct function details.
      int getFeatureElementV2​(long configHandle, String inputJson, StringBuffer response)
      Extracts a single feature element that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the feature element details.
      int getFeatureExpressionFunctionCallV2​(long configHandle, String inputJson, StringBuffer response)
      Extracts a single feature expression function call that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the feature expression function details.
      int getFeatureStandardizationFunctionCallV2​(long configHandle, String inputJson, StringBuffer response)
      Extracts a single feature standardization function call that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the feature standardization function details.
      int getFeatureV2​(long configHandle, String inputJson, StringBuffer response)
      Extracts a single feature that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the feature element details.
      String getLastException()
      Returns a string about the last error the system received.
      int getLastExceptionCode()
      Returns the exception code of the last error the system received.
      int getRuleFragmentV2​(long configHandle, String inputJson, StringBuffer response)
      Extracts a single resolution rule fragment that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the resolution rule fragment details.
      int getRuleV2​(long configHandle, String inputJson, StringBuffer response)
      Extracts a single resolution rule that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the resolution rule details.
      int initV2​(String moduleName, String iniParams, boolean verboseLogging)
      Initializes the G2 config API with the specified module name, init parameters and flag indicating verbose logging.
      int listAttributeClassesV2​(long configHandle, StringBuffer response)
      Extracts the attribute classes from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the attribute classes from the configuration.
      int listAttributesV2​(long configHandle, StringBuffer response)
      Extracts the data sources from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the data sources from the configuration.
      int listDataSources​(long configHandle, StringBuffer response)
      Deprecated, for removal: This API element is subject to removal in a future version.
      int listDataSourcesV2​(long configHandle, StringBuffer response)
      Extracts the data sources from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the data sources from the configuration.
      int listEntityClassesV2​(long configHandle, StringBuffer response)
      Extracts the entity classes from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the entity classes from the configuration.
      int listEntityTypesV2​(long configHandle, StringBuffer response)
      Extracts the entity types from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the entity types from the configuration.
      int listFeatureClassesV2​(long configHandle, StringBuffer response)
      Extracts the feature classes from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature classes from the configuration.
      int listFeatureComparisonFunctionCallsV2​(long configHandle, StringBuffer response)
      Extracts the registered feature comparison functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature comparison functions from the configuration.
      int listFeatureComparisonFunctionsV2​(long configHandle, StringBuffer response)
      Extracts the feature comparison functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature comparison functions from the configuration.
      int listFeatureDistinctFunctionCallsV2​(long configHandle, StringBuffer response)
      Extracts the registered feature distinct functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature distinct functions from the configuration.
      int listFeatureDistinctFunctionsV2​(long configHandle, StringBuffer response)
      Extracts the feature distinct functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature distinct functions from the configuration.
      int listFeatureElementsV2​(long configHandle, StringBuffer response)
      Extracts the feature elements from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature elements from the configuration.
      int listFeatureExpressionFunctionCallsV2​(long configHandle, StringBuffer response)
      Extracts the registered feature expression functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature expression functions from the configuration.
      int listFeatureExpressionFunctionsV2​(long configHandle, StringBuffer response)
      Extracts the feature expression functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature expression functions from the configuration.
      int listFeatureStandardizationFunctionCallsV2​(long configHandle, StringBuffer response)
      Extracts the feature standardization function calls from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature standardization function calls from the configuration.
      int listFeatureStandardizationFunctionsV2​(long configHandle, StringBuffer response)
      Extracts the feature standardization functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature standardization functions from the configuration.
      int listFeaturesV2​(long configHandle, StringBuffer response)
      Extracts the features from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the features from the configuration.
      int listRuleFragmentsV2​(long configHandle, StringBuffer response)
      Extracts the resolution rule fragments from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the resolution rule fragments from the configuration.
      int listRulesV2​(long configHandle, StringBuffer response)
      Extracts the resolution rules from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the resolution rules from the configuration.
      long load​(String jsonConfig)
      Creates a new in-memory configuration using the specified JSON text and returns the config handle for working with it.
      int modifyCompatibilityVersionV2​(long configHandle, String inputJson)
      Sets the config compatibility version in the in-memory configuration associated with the specified config handle to the compatibility version described in the specified JSON.
      int modifyElementForFeatureV2​(long configHandle, String inputJson)
      Modifies an element for the feature described by the specified JSON in the in-memory configuration associated with the specified config handle.
      int modifyFeatureExpressionFunctionV2​(long configHandle, String inputJson)
      Modifies the feature expression function described by the specified JSON to the in-memory configuration associated with the specified config handle.
      int modifyFeatureV2​(long configHandle, String inputJson)
      Modifies the feature described by the specified JSON in the in-memory configuration associated with the specified config handle.
      int save​(long configHandle, StringBuffer response)
      Writes the JSON text for the configuration associated with the specified configuration handle to the specified StringBuffer.
    • Constructor Detail

      • G2ConfigJNI

        public G2ConfigJNI()
    • Method Detail

      • initV2

        public int initV2​(String moduleName,
                          String iniParams,
                          boolean verboseLogging)
        Initializes the G2 config API with the specified module name, init parameters and flag indicating verbose logging.
        Specified by:
        initV2 in interface G2Config
        Parameters:
        moduleName - A short name given to this instance of the diagnostic object.
        iniParams - A JSON string containing configuration parameters.
        verboseLogging - Enable diagnostic logging which will print a massive amount of information to stdout.
        Returns:
        Zero (0) on success and non-zero on failure.
      • destroy

        public int destroy()
        Uninitializes the G2 config API and cleans up system resources.
        Specified by:
        destroy in interface G2Config
        Returns:
        Zero (0) on success and non-zero on failure.
      • create

        public long create()
        Creates a new in-memory configuration using the default template and returns the config handle for working with it.
        Specified by:
        create in interface G2Config
        Returns:
        The configuration handle or a negative number of an error occurs.
      • load

        public long load​(String jsonConfig)
        Creates a new in-memory configuration using the specified JSON text and returns the config handle for working with it.
        Specified by:
        load in interface G2Config
        Parameters:
        jsonConfig - The JSON text for the config.
        Returns:
        The configuration handle or a negative number of an error occurs.
      • save

        public int save​(long configHandle,
                        StringBuffer response)
        Writes the JSON text for the configuration associated with the specified configuration handle to the specified StringBuffer.
        Specified by:
        save in interface G2Config
        Parameters:
        configHandle - The configuration handle to export the JSON text from.
        response - The StringBuffer to write the JSON text to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • close

        public void close​(long configHandle)
        Closes the in-memory configuration associated with the specified config handle and cleans up system resources. After calling this method, the configuration handle can no longer be used and becomes invalid.
        Specified by:
        close in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
      • addDataSource

        public int addDataSource​(long configHandle,
                                 String code)
        Adds a single data source with the specified data source code to the in-memory configuration associated with the specified config handle. The data source ID will be automatically set to the next data source ID.
        Specified by:
        addDataSource in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        code - The data source code for the new data source.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addDataSourceWithID

        public int addDataSourceWithID​(long configHandle,
                                       String code,
                                       int id)
        Adds a single data source with the specified data source code and data source ID to the in-memory configuration associated with the specified config handle.
        Specified by:
        addDataSourceWithID in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        code - The data source code for the new data source.
        id - The data source ID for the new data source.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listDataSources

        @Deprecated(since="2.9.0",
                    forRemoval=true)
        public int listDataSources​(long configHandle,
                                   StringBuffer response)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Extracts the data sources from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the data sources from the configuration. The format of the JSON response is as follows:
         {
                "DSRC_CODE": [
                        "TEST",
                        "SEARCH",
                        "DSRC-789",
                        "DSRC-456"
                ]
         }
         
        Specified by:
        listDataSources in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listDataSourcesV2

        public int listDataSourcesV2​(long configHandle,
                                     StringBuffer response)
        Extracts the data sources from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the data sources from the configuration. The format of the JSON response is as follows:
         {
                "DATA_SOURCES": [
            {
                                "DSRC_ID": 1,
                                "DSRC_CODE": "TEST"
            },
            {
                                "DSRC_ID": 2,
                                "DSRC_CODE": "SEARCH"
            }
                ]
         }
         
        Specified by:
        listDataSourcesV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addDataSourceV2

        public int addDataSourceV2​(long configHandle,
                                   String inputJson,
                                   StringBuffer response)
        Adds a data source described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
           {
             "DSRC_CODE": "CUSTOMERS"
           }
         
        Optionally, you can specify the data source ID:
           {
             "DSRC_CODE": "CUSTOMERS",
             "DSRC_ID": 410
           }
         

        The response JSON provides the data source ID of the created data source, which is especially useful if the data source ID was not specified in the input:

           {
             "DSRC_ID": 410
           }
         
        Specified by:
        addDataSourceV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the data source to create.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteDataSourceV2

        public int deleteDataSourceV2​(long configHandle,
                                      String inputJson)
        Deletes the data source described by the specified JSON from the in-memory configuration associated with the specified config handle. The input JSON has the following format:
           {
             "DSRC_CODE": "CUSTOMERS"
           }
         
        Specified by:
        deleteDataSourceV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the data source to delete.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listEntityClassesV2

        public int listEntityClassesV2​(long configHandle,
                                       StringBuffer response)
        Extracts the entity classes from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the entity classes from the configuration. The format of the JSON response is as follows:
         {
                "ENTITY_CLASSES": [
            {
                                "ECLASS_ID": 1,
                                "ECLASS_CODE": "ACTOR",
                          "RESOLVE": "Yes"
            }
                ]
         }
         
        Specified by:
        listEntityClassesV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addEntityClassV2

        public int addEntityClassV2​(long configHandle,
                                    String inputJson,
                                    StringBuffer response)
        Adds an entity class described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
                "ENTITY_CLASSES": [
            {
                                "ECLASS_CODE": "OBJECT",
                          "RESOLVE": "Yes"
            }
                ]
         }
         
        Optionally, you can specify the entity class ID:
           {
                                "ECLASS_CODE": "OBJECT",
                          "RESOLVE": "Yes",
                                "ECLASS_ID": 2,
           }
         

        The response JSON provides the entity class ID of the created entity class, which is especially useful if the entity class ID was not specified in the input:

           {
             "ECLASS_ID": 2
           }
         
        Specified by:
        addEntityClassV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the entity class to create.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteEntityClassV2

        public int deleteEntityClassV2​(long configHandle,
                                       String inputJson)
        Deletes the entity class described by the specified JSON from the in-memory configuration associated with the specified config handle. The input JSON has the following format:
           {
             "ECLASS_CODE": "MY_ENTITY_CLASS"
           }
         
        Specified by:
        deleteEntityClassV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the entity class to delete.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listEntityTypesV2

        public int listEntityTypesV2​(long configHandle,
                                     StringBuffer response)
        Extracts the entity types from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the entity types from the configuration. The format of the JSON response is as follows:
         {
                "ENTITY_TYPES": [
            {
                                "ETYPE_ID": 1,
                                "ETYPE_CODE": "TEST",
                          "ECLASS_CODE": "ACTOR"
            },
            {
                                "ETYPE_ID": 3,
                                "ETYPE_CODE": "GENERIC",
                          "ECLASS_CODE": "ACTOR"
            },
                ]
         }
         
        Specified by:
        listEntityTypesV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addEntityTypeV2

        public int addEntityTypeV2​(long configHandle,
                                   String inputJson,
                                   StringBuffer response)
        Adds an entity type described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
           {
             "ETYPE_CODE": "ORGANIZATION",
             "ECLASS_CODE": "ACTOR"
           }
         
        Optionally, you can specify the data source ID:
           {
             "ETYPE_CODE": "ORGANIZATION",
             "ECLASS_CODE": "ACTOR",
             "ETYPE_ID": 789
           }
         

        The response JSON provides the entity type ID of the created data source, which is especially useful if the entity type ID was not specified in the input:

           {
             "ETYPE_ID": 789
           }
         
        Specified by:
        addEntityTypeV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the entity type to create.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteEntityTypeV2

        public int deleteEntityTypeV2​(long configHandle,
                                      String inputJson)
        Deletes the entity type described by the specified JSON from the in-memory configuration associated with the specified config handle. The input JSON has the following format:
           {
             "ETYPE_CODE": "ORGANIZATION"
           }
         
        Specified by:
        deleteEntityTypeV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the entity type to delete.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listFeatureElementsV2

        public int listFeatureElementsV2​(long configHandle,
                                         StringBuffer response)
        Extracts the feature elements from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature elements from the configuration. The format of the JSON response is as follows:
         {
                "FEATURE_ELEMENTS": [
            {
                                "FELEM_ID": 2,
                                "FELEM_CODE": "FULL_NAME"
            },
            {
                                "FELEM_ID": 3,
                                "FELEM_CODE": "ORG_NAME"
            },
            . . .
                ]
         }
         
        Specified by:
        listFeatureElementsV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • getFeatureElementV2

        public int getFeatureElementV2​(long configHandle,
                                       String inputJson,
                                       StringBuffer response)
        Extracts a single feature element that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the feature element details. The format of the input JSON is as follows:
         {
           "FELEM_CODE": "GIVEN_NAME"
         }
         

        The format of the JSON response is as follows:

         {
           "FELEM_ID": 5,
           "FELEM_CODE", "GIVEN_NAME",
           "TOKENIZE": "No",
           "DATA_TYPE": "string"
         }
         
        Specified by:
        getFeatureElementV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature element to retrieve.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureElementV2

        public int addFeatureElementV2​(long configHandle,
                                       String inputJson,
                                       StringBuffer response)
        Adds the feature element described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
           {
             "FELEM_CODE": "FAVORITE_COLOR",
             "TOKENIZE": 1,
             "DATA_TYPE": "string"
           }
         
        Optionally, you can specify the feature element ID.
           {
             "FELEM_CODE": "FAVORITE_COLOR",
             "TOKENIZE": 1,
             "DATA_TYPE": "string",
             "FELEM_ID": 789
           }
         

        The response JSON provides the feature element ID of the created feature element, which is especially useful if the feature element ID was not specified in the input:

           {
             "FELEM_ID": 789
           }
         
        Specified by:
        addFeatureElementV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature element to create.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteFeatureElementV2

        public int deleteFeatureElementV2​(long configHandle,
                                          String inputJson)
        Deletes the feature element described by the specified JSON from the in-memory configuration associated with the specified config handle. The input JSON has the following format:
           {
             "FELEM_CODE": "FAVORITE_COLOR"
           }
         
        Specified by:
        deleteFeatureElementV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature element to delete.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listFeatureClassesV2

        public int listFeatureClassesV2​(long configHandle,
                                        StringBuffer response)
        Extracts the feature classes from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature classes from the configuration. The format of the JSON response is as follows:
         {
                "FEATURE_CLASSES": [
            {
                                "FCLASS_ID": 1,
                                "FCLASS_CODE": "NAME"
            },
            {
                                "FCLASS_ID": 2,
                                "FCLASS_CODE": "BIO_DATE"
            },
            . . .
                ]
         }
         
        Specified by:
        listFeatureClassesV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listFeaturesV2

        public int listFeaturesV2​(long configHandle,
                                  StringBuffer response)
        Extracts the features from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the features from the configuration. The format of the JSON response is as follows:
         {
                "FEATURE_TYPES": [
            {
                                "FTYPE_ID": 1,
                                "FTYPE_CODE": "NAME"
            },
            {
                                "FTYPE_ID": 2,
                                "FTYPE_CODE": "DOB"
            },
            . . .
                ]
         }
         
        Specified by:
        listFeaturesV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • getFeatureV2

        public int getFeatureV2​(long configHandle,
                                String inputJson,
                                StringBuffer response)
        Extracts a single feature that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the feature element details. The format of the input JSON is as follows:
         {
           "FTYPE_CODE": "NAME"
         }
         

        The format of the JSON response is as follows:

         {
           "FTYPE_ID": 1,
           "FTYPE_CODE", "NAME",
           "FCLASS_CODE": "NAME",
           "BEHAVIOR": "NAME",
           "USED_FOR_CAND": "No",
           "RTYPE_CODE": "",
           "ANONYMIZE": "No",
           "VERSION": 2,
           "FEATURE_ELEMENTS": [
             { "FELEM_CODE": "FULL_NAME" },
             { "FELEM_CODE": "ORG_NAME" },
             { "FELEM_CODE": "SUR_NAME" },
             { "FELEM_CODE": "GIVEN_NAME" },
             { "FELEM_CODE": "MIDDLE_NAME" },
             { "FELEM_CODE": "NAME_PREFIX" },
             . . .
           ],
           "ATTRIBUTES": [
             { "ATTR_CODE": "NAME_TYPE" },
             { "ATTR_CODE": "NAME_FULL" },
             { "ATTR_CODE": "NAME_ORG" },
             . . .
           ],
           "STANDARDIZE_FUNCS": [
             {
               "SFCALL_ID": 1,
               "SFUNC_CODE": "PARSE_NAME",
               "FTYPE_CODE": "NAME",
               "FELEM_CODE": "",
               "EXEC_ORDER": 1
             },
             {
               "SFCALL_ID": 20,
               "SFUNC_CODE": "TOKENIZE_NAME",
               "FTYPE_CODE": "NAME",
               "FELEM_CODE": "",
               "EXEC_ORDER": 50
             }
           ],
           "EXPRESSION_FUNCS": [
             {
               "EFCALL_ID": 7,
               "EFUNC_CODE": "NAME_HASHER",
               "FTYPE_CODE": "NAME",
               "FELEM_CODE": "",
               "EXEC_ORDER": 2
             }
           ],
           "COMPARISON_FUNCS": [
             {
               "CFCALL_ID": 1,
               "CFUNC_CODE": "GNR_COMP"
             }
           ],
           "DISTINCT_FUNCS": [
             {
               "DFCALL_ID": 1,
               "DFUNC_CODE": "PARTIAL_NAMES"
             }
           ]
         }
         
        Specified by:
        getFeatureV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature to retrieve.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureV2

        public int addFeatureV2​(long configHandle,
                                String inputJson,
                                StringBuffer response)
        Adds the feature described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
           {
             "FTYPE_CODE": "MY_FEATURE",
             "FTYPE_ID": 789,
             "FCLASS_CODE": "ELECTED_ID",
             "FTYPE_FREQ": "FF",
             "FEATURE_ELEMENTS": [
               {
                 "FELEM_CODE": "expression"
               }
             ]
           }
         

        The response JSON provides the feature type ID of the created feature:

           {
             "FTYPE_ID": 789
           }
         
        Specified by:
        addFeatureV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature to create.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • modifyFeatureV2

        public int modifyFeatureV2​(long configHandle,
                                   String inputJson)
        Modifies the feature described by the specified JSON in the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "FTYPE_CODE": "MY_FEATURE",
           "FCLASS_CODE": "PARTIAL_ID",
           "RTYPE_CODE": "POSSIBLY_SAME",
           "FTYPE_FREQ": "FM",
           "FTYPE_EXCL": "Y",
           "FTYPE_STAB": "Y",
           "USED_FOR_CAND": "Y",
           "DERIVED": "Y",
           "ANONYMIZE": "Y",
           "VERSION": "17"
         }
         
        Specified by:
        modifyFeatureV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature to modify.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteFeatureV2

        public int deleteFeatureV2​(long configHandle,
                                   String inputJson)
        Deletes the feature described by the specified JSON from the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "FTYPE_CODE": "MY_FEATURE"
         }
         
        Specified by:
        deleteFeatureV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature to delete.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addElementToFeatureV2

        public int addElementToFeatureV2​(long configHandle,
                                         String inputJson)
        Adds an element to the feature described by the specified JSON in the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "FTYPE_CODE": "MY_FEATURE",
           "FELEM_CODE": "addr4",
           "EXEC_ORDER": 4
         }
         
        Specified by:
        addElementToFeatureV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature element to add.
        Returns:
        Zero (0) on success and non-zero on failure.
      • modifyElementForFeatureV2

        public int modifyElementForFeatureV2​(long configHandle,
                                             String inputJson)
        Modifies an element for the feature described by the specified JSON in the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "FTYPE_CODE": "MY_FEATURE",
           "FELEM_CODE": "addr6",
           "EXEC_ORDER": 2134,
           "DERIVED": "N",
           "DISPLAY_LEVEL": 19
         }
         
        Specified by:
        modifyElementForFeatureV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature element to modify.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteElementFromFeatureV2

        public int deleteElementFromFeatureV2​(long configHandle,
                                              String inputJson)
        Deletes an element from the feature described by the specified JSON in the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "FTYPE_CODE": "MY_FEATURE",
           "FELEM_CODE": "addr5"
         }
         
        Specified by:
        deleteElementFromFeatureV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature element to modify.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listFeatureStandardizationFunctionsV2

        public int listFeatureStandardizationFunctionsV2​(long configHandle,
                                                         StringBuffer response)
        Extracts the feature standardization functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature standardization functions from the configuration. The format of the JSON response is as follows:
         {
           "FEATURE_STANDARDIZATION_FUNCTIONS": [
             { "SFUNC_ID": 1, "SFUNC_CODE": "PARSE_NAME" },
             { "SFUNC_ID": 2, "SFUNC_CODE": "PARSE_DOB" },
             { "SFUNC_ID": 4, "SFUNC_CODE": "FORMAT_SSN" },
             . . .
           ]
         }
         
        Specified by:
        listFeatureStandardizationFunctionsV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureStandardizationFunctionV2

        public int addFeatureStandardizationFunctionV2​(long configHandle,
                                                       String inputJson,
                                                       StringBuffer response)
        Adds a feature standardization function described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
           {
             "SFUNC_CODE": "MY_SFUNC_2",
             "CONNECT_STR": "MyConnectStr2"
           }
         

        The response JSON provides the standardization function ID of the registered function:

           {
             "SFUNC_ID": 1001
           }
         
        Specified by:
        addFeatureStandardizationFunctionV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the standardization function to register.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listFeatureExpressionFunctionsV2

        public int listFeatureExpressionFunctionsV2​(long configHandle,
                                                    StringBuffer response)
        Extracts the feature expression functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature expression functions from the configuration. The format of the JSON response is as follows:
         {
           "FEATURE_EXPRESSION_FUNCTIONS" : [
             { "EFUNC_ID": 1, "EFUNC_CODE": "EXPRESS_BOM" },
             { "EFUNC_ID": 2, "EFUNC_CODE": "NAME_HASHER" },
             { "EFUNC_ID": 3, "EFUNC_CODE": "ADDR_HASHER" },
             { "EFUNC_ID": 4, "EFUNC_CODE": "PHONE_HASHER" },
             { "EFUNC_ID": 5, "EFUNC_CODE": "EXPRESS_ID" },
             { "EFUNC_ID": 6, "EFUNC_CODE": "STB_HASHER" },
             { "EFUNC_ID": 7, "EFUNC_CODE": "FEAT_BUILDER"}
           ]
         }
         
        Specified by:
        listFeatureExpressionFunctionsV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureExpressionFunctionV2

        public int addFeatureExpressionFunctionV2​(long configHandle,
                                                  String inputJson,
                                                  StringBuffer response)
        Adds a feature expression function described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
           "EFUNC_ID": 789,
           "EFUNC_CODE": "MY_EFUNC_1",
           "FUNC_LIB": "MyFuncLib",
           "FUNC_VER": 28,
           "CONNECT_STR": "MyConnectStr1"
         }
         

        The response JSON provides the expression function ID of the registered function:

           {
             "EFUNC_ID": 789
           }
         
        Specified by:
        addFeatureExpressionFunctionV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the expression function to register.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • modifyFeatureExpressionFunctionV2

        public int modifyFeatureExpressionFunctionV2​(long configHandle,
                                                     String inputJson)
        Modifies the feature expression function described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
           "EFUNC_CODE": "MY_EFUNC_1",
           "FUNC_LIB": "MyFuncLib",
           "FUNC_VER": 28,
           "CONNECT_STR": "MyConnectStr1"
         }
         
        Specified by:
        modifyFeatureExpressionFunctionV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the expression function to modify.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listFeatureComparisonFunctionsV2

        public int listFeatureComparisonFunctionsV2​(long configHandle,
                                                    StringBuffer response)
        Extracts the feature comparison functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature comparison functions from the configuration. The format of the JSON response is as follows:
         {
           "FEATURE_COMPARISON_FUNCTIONS": [
             { "CFUNC_ID": 1, "CFUNC_CODE": "STR_COMP" },
             { "CFUNC_ID": 2, "CFUNC_CODE": "GNR_COMP" },
             { "CFUNC_ID": 3, "CFUNC_CODE": "EXACT_COMP" },
             { "CFUNC_ID": 4, "CFUNC_CODE": "ADDR_COMP" },
             { "CFUNC_ID": 5, "CFUNC_CODE": "DOB_COMP" },
             { "CFUNC_ID": 7, "CFUNC_CODE": "PHONE_COMP" },
             { "CFUNC_ID": 8, "CFUNC_CODE": "SSN_COMP" },
             { "CFUNC_ID": 9, "CFUNC_CODE": "ID_COMP" },
             { "CFUNC_ID": 10, "CFUNC_CODE": "GEOLOC_COMP" },
             { "CFUNC_ID": 11, "CFUNC_CODE": "EXACT_DOMAIN_COMP" },
             { "CFUNC_ID": 12, "CFUNC_CODE": "GROUP_ASSOCIATION_COMP" },
             { "CFUNC_ID": 13, "CFUNC_CODE": "EMAIL_COMP" }
           ]
         }
         
        Specified by:
        listFeatureComparisonFunctionsV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureComparisonFunctionV2

        public int addFeatureComparisonFunctionV2​(long configHandle,
                                                  String inputJson,
                                                  StringBuffer response)
        Adds a feature comparison function described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
           "CFUNC_ID": 789,
           "CFUNC_CODE": "MY_CFUNC_1",
           "FUNC_LIB": "MyFuncLib",
           "FUNC_VER": 28,
           "CONNECT_STR": "MyConnectStr1",
           "ANON_SUPPORT": "N"
         }
         

        The response JSON provides the comparison function ID of the registered function:

           {
             "EFUNC_ID": 789
           }
         
        Specified by:
        addFeatureComparisonFunctionV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the comparison function to register.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureComparisonFunctionReturnCodeV2

        public int addFeatureComparisonFunctionReturnCodeV2​(long configHandle,
                                                            String inputJson,
                                                            StringBuffer response)
        Adds a feature comparison function return code described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
           "CFRTN_ID": 7890,
           "CFUNC_CODE": "MY_CFUNC_2",
           "CFUNC_RTNVAL": "MY_SCORE_1",
           "EXEC_ORDER": 345,
           "SAME_SCORE": 29,
           "CLOSE_SCORE": 28,
           "LIKELY_SCORE": 27,
           "PLAUSIBLE_SCORE": 26,
           "UN_LIKELY_SCORE": 25
         }
         

        The response JSON provides the comparison function return code ID of the registered function:

           {
             "CFRTN_ID": 789
           }
         
        Specified by:
        addFeatureComparisonFunctionReturnCodeV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the comparison function return code to register.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listFeatureDistinctFunctionsV2

        public int listFeatureDistinctFunctionsV2​(long configHandle,
                                                  StringBuffer response)
        Extracts the feature distinct functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature distinct functions from the configuration. The format of the JSON response is as follows:
         {
           "FEATURE_DISTINCT_FUNCTIONS": [
             { "DFUNC_ID": 1, "DFUNC_CODE": "FELEM_STRICT_SUBSET" },
             { "DFUNC_ID": 2, "DFUNC_CODE": "TOKEN_STRICT_SUBSET" },
             { "DFUNC_ID": 3, "DFUNC_CODE": "FELEM_NORM_STRICT_SUBSET" },
             { "DFUNC_ID": 4, "DFUNC_CODE": "PARTIAL_DATES" },
             { "DFUNC_ID": 5, "DFUNC_CODE": "PARTIAL_NAMES" },
             { "DFUNC_ID": 6, "DFUNC_CODE": "PARTIAL_ADDRESSES" }
           ]
         }
         
        Specified by:
        listFeatureDistinctFunctionsV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureDistinctFunctionV2

        public int addFeatureDistinctFunctionV2​(long configHandle,
                                                String inputJson,
                                                StringBuffer response)
        Adds a feature distinct function described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
           "DFUNC_ID": 789,
           "DFUNC_CODE": "MY_DFUNC_1",
           "FUNC_LIB": "MyFuncLib",
           "FUNC_VER": 28,
           "CONNECT_STR": "MyConnectStr1",
           "ANON_SUPPORT": "N"
         }
         

        The response JSON provides the feature distinct function ID of the registered function:

           {
             "DFUNC_ID": 789
           }
         
        Specified by:
        addFeatureDistinctFunctionV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the expression function to register.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listFeatureStandardizationFunctionCallsV2

        public int listFeatureStandardizationFunctionCallsV2​(long configHandle,
                                                             StringBuffer response)
        Extracts the feature standardization function calls from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature standardization function calls from the configuration. The format of the JSON response is as follows:
         {
           "FEATURE_STANDARDIZATION_FUNCTION_CALLS": [
             {
               "SFCALL_ID": 1,
               "SFUNC_CODE": "PARSE_NAME",
               "FTYPE_CODE": "NAME",
               "FELEM_CODE": ""
             },
             {
               "SFCALL_ID": 2,
               "SFUNC_CODE": "PARSE_DOB",
               "FTYPE_CODE": "DOB",
               "FELEM_CODE": ""
             },
             {
               "SFCALL_ID": 3,
               "SFUNC_CODE": "PARSE_ADDR",
               "FTYPE_CODE": "ADDRESS",
               "FELEM_CODE": ""
             },
             . . .
           ]
         }
         
        Specified by:
        listFeatureStandardizationFunctionCallsV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • getFeatureStandardizationFunctionCallV2

        public int getFeatureStandardizationFunctionCallV2​(long configHandle,
                                                           String inputJson,
                                                           StringBuffer response)
        Extracts a single feature standardization function call that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the feature standardization function details. The format of the input JSON is as follows:
         {
           "SFCALL_ID": 1
         }
         

        The format of the JSON response is as follows:

         {
           "SFCALL_ID": 1,
           "SFUNC_CODE": "PARSE_NAME",
           "FTYPE_CODE": "NAME",
           "FELEM_CODE": "",
           "EXEC_ORDER": 1
         }
         
        Specified by:
        getFeatureStandardizationFunctionCallV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature element to retrieve.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureStandardizationFunctionCallV2

        public int addFeatureStandardizationFunctionCallV2​(long configHandle,
                                                           String inputJson,
                                                           StringBuffer response)
        Registers the feature standardization function described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
           "FTYPE_CODE": "veh_vin",
           "SFCALL_ID": 789,
           "SFUNC_CODE": "PARSE_ID",
           "EXEC_ORDER": 15
         }
         

        The response JSON provides the standardization function ID of the registered feature standardization function:

           {
             "SFCALL_ID": 789
           }
         
        Specified by:
        addFeatureStandardizationFunctionCallV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature standardization function to be registered.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteFeatureStandardizationFunctionCallV2

        public int deleteFeatureStandardizationFunctionCallV2​(long configHandle,
                                                              String inputJson)
        Deletes/unregisters the feature standardization function described by the specified JSON from the in-memory configuration associated with the specified config handle. The input JSON has the following format:
           {
             "SFCALL_ID": 1004
           }
         
        Specified by:
        deleteFeatureStandardizationFunctionCallV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text identifying the feature standardization function.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listFeatureExpressionFunctionCallsV2

        public int listFeatureExpressionFunctionCallsV2​(long configHandle,
                                                        StringBuffer response)
        Extracts the registered feature expression functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature expression functions from the configuration. The format of the JSON response is as follows:
         {
           "FEATURE_EXPRESSION_FUNCTIONS": [
             { "EFUNC_ID": 1, "EFUNC_CODE": "EXPRESS_BOM" },
             { "EFUNC_ID": 2, "EFUNC_CODE": "NAME_HASHER" },
             { "EFUNC_ID": 3, "EFUNC_CODE": "ADDR_HASHER" },
             { "EFUNC_ID": 4, "EFUNC_CODE": "PHONE_HASHER" },
             { "EFUNC_ID": 5, "EFUNC_CODE": "EXPRESS_ID" },
             { "EFUNC_ID": 6, "EFUNC_CODE": "STB_HASHER" },
             { "EFUNC_ID": 7, "EFUNC_CODE": "FEAT_BUILDER" }
           ]
         }
         
        Specified by:
        listFeatureExpressionFunctionCallsV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • getFeatureExpressionFunctionCallV2

        public int getFeatureExpressionFunctionCallV2​(long configHandle,
                                                      String inputJson,
                                                      StringBuffer response)
        Extracts a single feature expression function call that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the feature expression function details. The format of the input JSON is as follows:
         {
           "EFCALL_ID": 1
         }
         

        The format of the JSON response is as follows:

         {
           "EFCALL_ID": 1,
           "EFUNC_CODE": "PHONE_HASHER",
           "FTYPE_CODE": "PHONE",
           "FELEM_CODE": "",
           "EXEC_ORDER": 1,
           "EFEAT_FTYPE_CODE": "",
           "IS_VIRTUAL": "No",
           "BOM_ELEMENTS": [
             {
               "EXEC_ORDER": 1,
               "FTYPE_CODE": "PHONE",
               "FELEM_CODE": "PHONE_LAST_10",
               "FTYPE_LINK": "",
               "FELEM_REQ": "Yes"
             }
           ]
         }
         
        Specified by:
        getFeatureExpressionFunctionCallV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature expression function to retrieve.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureExpressionFunctionCallV2

        public int addFeatureExpressionFunctionCallV2​(long configHandle,
                                                      String inputJson,
                                                      StringBuffer response)
        Registers the feature expression function described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
           "FTYPE_CODE": "veh_vin",
           "EFCALL_ID": 789,
           "EFUNC_CODE": "EXPRESS_ID",
           "EXEC_ORDER": 15,
           "BOM_ELEMENTS": [
             {
               "FTYPE_CODE": "veh_vin",
               "FELEM_CODE": "id_num",
               "REQUIRED": "Yes"
             }
           ]
         }
         

        The response JSON provides the expression function ID of the registered feature expression function:

           {
             "EFCALL_ID": 789
           }
         
        Specified by:
        addFeatureExpressionFunctionCallV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature expression function to be registered.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteFeatureExpressionFunctionCallV2

        public int deleteFeatureExpressionFunctionCallV2​(long configHandle,
                                                         String inputJson)
        Deletes/unregisters the feature expression function described by the specified JSON from the in-memory configuration associated with the specified config handle. The input JSON has the following format:
           {
             "EFCALL_ID": 1004
           }
         
        Specified by:
        deleteFeatureExpressionFunctionCallV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text identifying the feature expression function.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureExpressionFunctionCallElementV2

        public int addFeatureExpressionFunctionCallElementV2​(long configHandle,
                                                             String inputJson)
        Adds an element to the feature expression function described by the specified JSON to the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "EFCALL_ID": 1002,
           "FELEM_CODE": "ADDR4",
           "REQUIRED": "Yes",
           "EXEC_ORDER": 4
         }
         
        Specified by:
        addFeatureExpressionFunctionCallElementV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature expression function element to be added.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteFeatureExpressionFunctionCallElementV2

        public int deleteFeatureExpressionFunctionCallElementV2​(long configHandle,
                                                                String inputJson)
        Deletes an element from the feature expression function described by the specified JSON to the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "EFCALL_ID": 1002,
           "FELEM_CODE": "ADDR4"
         }
         
        Specified by:
        deleteFeatureExpressionFunctionCallElementV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature expression function element to be deleted.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listFeatureComparisonFunctionCallsV2

        public int listFeatureComparisonFunctionCallsV2​(long configHandle,
                                                        StringBuffer response)
        Extracts the registered feature comparison functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature comparison functions from the configuration. The format of the JSON response is as follows:
         {
           "FEATURE_COMPARISON_FUNCTIONS": [
             { "CFUNC_ID": 1, "CFUNC_CODE": "STR_COMP" },
             { "CFUNC_ID": 2, "CFUNC_CODE": "GNR_COMP" },
             { "CFUNC_ID": 3, "CFUNC_CODE": "EXACT_COMP" },
             { "CFUNC_ID": 4, "CFUNC_CODE": "ADDR_COMP" },
             { "CFUNC_ID": 5, "CFUNC_CODE": "DOB_COMP" },
             { "CFUNC_ID": 7, "CFUNC_CODE": "PHONE_COMP" },
             { "CFUNC_ID": 8, "CFUNC_CODE": "SSN_COMP" },
             { "CFUNC_ID": 9, "CFUNC_CODE": "ID_COMP" },
             { "CFUNC_ID": 10, "CFUNC_CODE": "GEOLOC_COMP" },
             { "CFUNC_ID": 11, "CFUNC_CODE": "EXACT_DOMAIN_COMP" },
             { "CFUNC_ID": 12, "CFUNC_CODE": "GROUP_ASSOCIATION_COMP" },
             { "CFUNC_ID": 13, "CFUNC_CODE": "EMAIL_COMP" }
           ]
         }
         
        Specified by:
        listFeatureComparisonFunctionCallsV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • getFeatureComparisonFunctionCallV2

        public int getFeatureComparisonFunctionCallV2​(long configHandle,
                                                      String inputJson,
                                                      StringBuffer response)
        Extracts a single feature comparison function call that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the feature comparison function details. The format of the input JSON is as follows:
         {
           "CFCALL_ID": 1
         }
         

        The format of the JSON response is as follows:

         {
           "CFCALL_ID": 1,
           "CFUNC_CODE": "GNR_COMP",
           "FTYPE_CODE": "NAME",
           "BOM_ELEMENTS": [
             { "EXEC_ORDER": 1, "FELEM_CODE": "FULL_NAME" },
             { "EXEC_ORDER": 2, "FELEM_CODE": "ORG_NAME" },
             { "EXEC_ORDER": 3, "FELEM_CODE": "SUR_NAME" },
             { "EXEC_ORDER": 4, "FELEM_CODE": "GIVEN_NAME" },
             { "EXEC_ORDER": 5, "FELEM_CODE": "MIDDLE_NAME" },
             { "EXEC_ORDER": 6, "FELEM_CODE": "NAME_PREFIX" },
             { "EXEC_ORDER": 7, "FELEM_CODE": "NAME_SUFFIX" },
             { "EXEC_ORDER": 8, "FELEM_CODE": "NAME_GEN" },
             { "EXEC_ORDER": 9, "FELEM_CODE": "CULTURE" },
             { "EXEC_ORDER": 10, "FELEM_CODE": "SCRIPT" },
             { "EXEC_ORDER": 11, "FELEM_CODE": "CATEGORY" },
             { "EXEC_ORDER": 12, "FELEM_CODE": "ORIG_GN" },
             { "EXEC_ORDER": 13, "FELEM_CODE": "META_GN" },
             { "EXEC_ORDER": 14, "FELEM_CODE": "ORIG_SN" },
             { "EXEC_ORDER": 15, "FELEM_CODE": "META_SN" },
             { "EXEC_ORDER": 16, "FELEM_CODE": "ORIG_ON" },
             { "EXEC_ORDER": 17, "FELEM_CODE": "META_ON" },
             { "EXEC_ORDER": 18, "FELEM_CODE": "STD_PRE" },
             { "EXEC_ORDER": 19, "FELEM_CODE": "STD_SUF" },
             { "EXEC_ORDER": 20, "FELEM_CODE": "STD_GEN" },
             { "EXEC_ORDER": 21, "FELEM_CODE": "ORIG_FN" },
             { "EXEC_ORDER": 22, "FELEM_CODE": "META_FN" }
           ]
         }
         
        Specified by:
        getFeatureComparisonFunctionCallV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature comparison function to retrieve.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureComparisonFunctionCallV2

        public int addFeatureComparisonFunctionCallV2​(long configHandle,
                                                      String inputJson,
                                                      StringBuffer response)
        Registers the feature comparison function described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
           "FTYPE_CODE": "name_key",
           "CFCALL_ID": 789,
           "CFUNC_CODE": "ID_COMP",
           "EXEC_ORDER": 15,
           "BOM_ELEMENTS": [
             { "FELEM_CODE": "expression" }
           ]
         }
         

        The response JSON provides the comparison function ID of the registered feature comparison function:

           {
             "CFCALL_ID": 789
           }
         
        Specified by:
        addFeatureComparisonFunctionCallV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature comparison function to be registered.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteFeatureComparisonFunctionCallV2

        public int deleteFeatureComparisonFunctionCallV2​(long configHandle,
                                                         String inputJson)
        Deletes/unregisters the feature comparison function described by the specified JSON from the in-memory configuration associated with the specified config handle. The input JSON can identify the comparison function to delete by function ID as follows:
           {
             "CFCALL_ID": 1004
           }
         
        Alternatively, it can be identified by the feature type code:
           {
             "FTYPE_CODE": "phone_key"
           }
         
        Specified by:
        deleteFeatureComparisonFunctionCallV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text identifying the feature comparison function.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureComparisonFunctionCallElementV2

        public int addFeatureComparisonFunctionCallElementV2​(long configHandle,
                                                             String inputJson)
        Adds an element to the feature comparison function described by the specified JSON to the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "FTYPE_CODE": "address",
           "FELEM_CODE": "ADDR4",
           "EXEC_ORDER": 34
         }
         
        Alternatively, instead of the feature type code the function can be identified by its function ID:
         {
           "CFCALL_ID": 5,
           "FELEM_CODE": "ADDR4",
           "EXEC_ORDER": 34
         }
         
        Specified by:
        addFeatureComparisonFunctionCallElementV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature comparison function element to be added.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteFeatureComparisonFunctionCallElementV2

        public int deleteFeatureComparisonFunctionCallElementV2​(long configHandle,
                                                                String inputJson)
        Deletes an element from the feature comparison function described by the specified JSON to the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "FTYPE_CODE": "address",
           "FELEM_CODE": "ADDR5"
         }
         
        Alternatively, instead of the feature type code the function can be identified by its function ID:
         {
           "CFCALL_ID": 5,
           "FELEM_CODE": "ADDR5"
         }
         
        Specified by:
        deleteFeatureComparisonFunctionCallElementV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature comparison function element to be deleted.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listFeatureDistinctFunctionCallsV2

        public int listFeatureDistinctFunctionCallsV2​(long configHandle,
                                                      StringBuffer response)
        Extracts the registered feature distinct functions from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the feature distinct functions from the configuration. The format of the JSON response is as follows:
         {
           "FEATURE_DISTINCT_FUNCTIONS": [
             { "DFUNC_ID": 1, "DFUNC_CODE": "FELEM_STRICT_SUBSET" },
             { "DFUNC_ID": 2, "DFUNC_CODE": "TOKEN_STRICT_SUBSET" },
             { "DFUNC_ID": 3, "DFUNC_CODE": "FELEM_NORM_STRICT_SUBSET" },
             { "DFUNC_ID": 4, "DFUNC_CODE": "PARTIAL_DATES" },
             { "DFUNC_ID": 5, "DFUNC_CODE": "PARTIAL_NAMES" },
             { "DFUNC_ID": 6, "DFUNC_CODE": "PARTIAL_ADDRESSES" }
           ]
         }
         
        Specified by:
        listFeatureDistinctFunctionCallsV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • getFeatureDistinctFunctionCallV2

        public int getFeatureDistinctFunctionCallV2​(long configHandle,
                                                    String inputJson,
                                                    StringBuffer response)
        Extracts a single feature distinct function call that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the feature distinct function details. The format of the input JSON is as follows:
         {
           "DFCALL_ID": 1
         }
         

        The format of the JSON response is as follows:

         {
           "DFCALL_ID": 1,
           "DFUNC_CODE": "PARTIAL_NAMES",
           "FTYPE_CODE": "NAME",
           "BOM_ELEMENTS": [
             { "EXEC_ORDER": 1, "FELEM_CODE": "FULL_NAME" },
             { "EXEC_ORDER": 2, "FELEM_CODE": "ORG_NAME" },
             { "EXEC_ORDER": 3, "FELEM_CODE": "SUR_NAME" },
             { "EXEC_ORDER": 4, "FELEM_CODE": "GIVEN_NAME" },
             { "EXEC_ORDER": 5, "FELEM_CODE": "MIDDLE_NAME" },
             { "EXEC_ORDER": 6, "FELEM_CODE": "NAME_PREFIX" },
             { "EXEC_ORDER": 7, "FELEM_CODE": "NAME_SUFFIX" },
             { "EXEC_ORDER": 8, "FELEM_CODE": "NAME_GEN" },
             { "EXEC_ORDER": 10, "FELEM_CODE": "SCRIPT" },
             { "EXEC_ORDER": 11, "FELEM_CODE": "CATEGORY" },
             { "EXEC_ORDER": 12, "FELEM_CODE": "ALL_NM" },
             { "EXEC_ORDER": 13, "FELEM_CODE": "ALL_META" },
             { "EXEC_ORDER": 14, "FELEM_CODE": "NM_PAIR" },
             { "EXEC_ORDER": 15, "FELEM_CODE": "ORIG_GN" },
             { "EXEC_ORDER": 16, "FELEM_CODE": "META_GN" },
             { "EXEC_ORDER": 17, "FELEM_CODE": "ORIG_SN" },
             { "EXEC_ORDER": 18, "FELEM_CODE": "META_SN" },
             { "EXEC_ORDER": 19, "FELEM_CODE": "ORIG_ON" },
             { "EXEC_ORDER": 20, "FELEM_CODE": "META_ON" },
             { "EXEC_ORDER": 21, "FELEM_CODE": "STD_PRE" },
             { "EXEC_ORDER": 22, "FELEM_CODE": "STD_SUF" },
             { "EXEC_ORDER": 23, "FELEM_CODE": "STD_GEN" },
             { "EXEC_ORDER": 24, "FELEM_CODE": "ORIG_FN" },
             { "EXEC_ORDER": 25, "FELEM_CODE": "META_FN" }
           ]
         }
         
        Specified by:
        getFeatureDistinctFunctionCallV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature distinct function to retrieve.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureDistinctFunctionCallV2

        public int addFeatureDistinctFunctionCallV2​(long configHandle,
                                                    String inputJson,
                                                    StringBuffer response)
        Registers the feature distinct function described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
           "FTYPE_CODE": "name_key",
           "DFCALL_ID": 789,
           "DFUNC_CODE": "FELEM_STRICT_SUBSET",
           "EXEC_ORDER": 15,
           "BOM_ELEMENTS": [
             { "FELEM_CODE": "expression" }
           ]
         }
         

        The response JSON provides the comparison function ID of the registered feature comparison function:

           {
             "DFCALL_ID": 789
           }
         
        Specified by:
        addFeatureDistinctFunctionCallV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature distinct function to be registered.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteFeatureDistinctFunctionCallV2

        public int deleteFeatureDistinctFunctionCallV2​(long configHandle,
                                                       String inputJson)
        Deletes/unregisters the feature distinct function described by the specified JSON from the in-memory configuration associated with the specified config handle. The input JSON can identify the distinct function to delete by function ID as follows:
           {
             "DFCALL_ID": 1004
           }
         
        Alternatively, it can be identified by the feature type code:
           {
             "FTYPE_CODE": "phone_key"
           }
         
        Specified by:
        deleteFeatureDistinctFunctionCallV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text identifying the feature distinct function.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addFeatureDistinctFunctionCallElementV2

        public int addFeatureDistinctFunctionCallElementV2​(long configHandle,
                                                           String inputJson)
        Adds an element to the feature distinct function described by the specified JSON to the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "FTYPE_CODE": "address",
           "FELEM_CODE": "ADDR4",
           "EXEC_ORDER": 34
         }
         
        Alternatively, instead of the feature type code the function can be identified by its function ID:
         {
           "DFCALL_ID": 5,
           "FELEM_CODE": "ADDR4",
           "EXEC_ORDER": 34
         }
         
        Specified by:
        addFeatureDistinctFunctionCallElementV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature distinct function element to be added.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteFeatureDistinctFunctionCallElementV2

        public int deleteFeatureDistinctFunctionCallElementV2​(long configHandle,
                                                              String inputJson)
        Deletes an element from the feature distinct function described by the specified JSON to the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
            "FTYPE_CODE": "address",
            "FELEM_CODE": "ADDR5"
         }
         
        Alternatively, instead of the feature type code the function can be identified by its function ID:
         {
           "DFCALL_ID": 5,
           "FELEM_CODE": "ADDR5"
         }
         
        Specified by:
        deleteFeatureDistinctFunctionCallElementV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the feature distinct function element to be deleted.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listAttributeClassesV2

        public int listAttributeClassesV2​(long configHandle,
                                          StringBuffer response)
        Extracts the attribute classes from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the attribute classes from the configuration. The format of the JSON response is as follows:
         {
           "ATTRIBUTE_CLASSES": [
             { "ATTR_CLASS": "ADDRESS" },
             { "ATTR_CLASS": "ATTRIBUTE" },
             { "ATTR_CLASS": "IDENTIFIER" },
             { "ATTR_CLASS": "NAME" },
             { "ATTR_CLASS": "OBSERVATION" },
             { "ATTR_CLASS": "OTHER" },
             { "ATTR_CLASS": "PHONE" },
             { "ATTR_CLASS": "RELATIONSHIP" }
           ]
         }
         
        Specified by:
        listAttributeClassesV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listAttributesV2

        public int listAttributesV2​(long configHandle,
                                    StringBuffer response)
        Extracts the data sources from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the data sources from the configuration. The format of the JSON response is as follows:
         {
           "ATTRIBUTES": [
             { "ATTR_ID": 1001, "ATTR_CODE": "DATA_SOURCE" },
             { "ATTR_ID": 1002, "ATTR_CODE": "ROUTE_CODE" },
             {\"ATTR_ID\":1003,\"ATTR_CODE\":\"RECORD_ID\"},
             {\"ATTR_ID\":1004,\"ATTR_CODE\":\"ENTITY_TYPE\"},
             {\"ATTR_ID\":1005,\"ATTR_CODE\":\"ENTITY_KEY\"},
             {\"ATTR_ID\":1006,\"ATTR_CODE\":\"LOAD_ID\"},
             {\"ATTR_ID\":1007,\"ATTR_CODE\":\"DSRC_ACTION\"},
             {\"ATTR_ID\":1101,\"ATTR_CODE\":\"NAME_TYPE\"},
             {\"ATTR_ID\":1102,\"ATTR_CODE\":\"NAME_FULL\"},
             {\"ATTR_ID\":1103,\"ATTR_CODE\":\"NAME_ORG\"},
             {\"ATTR_ID\":1104,\"ATTR_CODE\":\"NAME_LAST\"},
             {\"ATTR_ID\":1105,\"ATTR_CODE\":\"NAME_FIRST\"},
             {\"ATTR_ID\":1106,\"ATTR_CODE\":\"NAME_MIDDLE\"},
             . . .
           ]
         }
         
        Specified by:
        listAttributesV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • getAttributeV2

        public int getAttributeV2​(long configHandle,
                                  String inputJson,
                                  StringBuffer response)
        Extracts a single attribute that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the attribute details. The format of the input JSON is as follows:
         {
           "ATTR_CODE": "NAME_FIRST"
         }
         

        The format of the JSON response is as follows:

         {
           "ATTR_ID": 1105,
           "ATTR_CODE": "NAME_FIRST",
           "ATTR_CLASS": "NAME",
           "FTYPE_CODE": "NAME",
           "FELEM_CODE": "GIVEN_NAME",
           "FELEM_REQ": "Any",
           "DEFAULT_VALUE": "",
           "ADVANCED": "No",
           "INTERNAL": "No"
         }
         
        Specified by:
        getAttributeV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the attribute to retrieve.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addAttributeV2

        public int addAttributeV2​(long configHandle,
                                  String inputJson,
                                  StringBuffer response)
        Adds the attribute described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
           "ATTR_CODE": "attr-789",
           "ATTR_ID": 789,
           "ATTR_CLASS": "attribute",
           "FTYPE_CODE": "name",
           "FELEM_CODE": "latitude",
           "FELEM_REQ": "myReqValue",
           "DEFAULT_VALUE": "myDefault",
           "ADVANCED": "Y",
           "INTERNAL": 1
         }
         

        The response JSON provides the attribute ID of the created attribute:

         {
           "ATTR_ID": 789
         }
         
        Specified by:
        addAttributeV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the attribute to create.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteAttributeV2

        public int deleteAttributeV2​(long configHandle,
                                     String inputJson)
        Deletes the attribute described by the specified JSON from the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "ATTR_CODE": "attr-789"
         }
         
        Specified by:
        deleteAttributeV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the attribute to delete.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listRulesV2

        public int listRulesV2​(long configHandle,
                               StringBuffer response)
        Extracts the resolution rules from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the resolution rules from the configuration. The format of the JSON response is as follows:
         {
           "RULES": [
             { "ERRULE_ID": 99, "ERRULE_CODE": "GROUPER_KEY" },
             { "ERRULE_ID": 100, "ERRULE_CODE": "SAME_A1" },
             { "ERRULE_ID": 108, "ERRULE_CODE": "SF1_SNAME_CFF_CSTAB" },
             { "ERRULE_ID": 110, "ERRULE_CODE": "SF1_PNAME_CFF_CSTAB" },
             { "ERRULE_ID": 111, "ERRULE_CODE": "SF1_SNAME_CFF_CSTAB_DEXCL" },
             { "ERRULE_ID": 112, "ERRULE_CODE": "SF1_PNAME_CFF_OLD" },
             . . .
           ]
         }
         
        Specified by:
        listRulesV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • getRuleV2

        public int getRuleV2​(long configHandle,
                             String inputJson,
                             StringBuffer response)
        Extracts a single resolution rule that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the resolution rule details. The format of the input JSON is as follows:
         {
           "ERRULE_CODE": "RULE-789"
         }
         

        The format of the JSON response is as follows:

         {
           "ERRULE_ID": 789,
           "ERRULE_CODE": "RULE-789",
           "ERRULE_TIER": 56,
           "RESOLVE": "Yes",
           "RELATE": "Yes",
           "REF_SCORE": 27,
           "QUAL_ERFRAG_CODE": "CLOSE_FFES",
           "DISQ_ERFRAG_CODE": "NO_FF",
           "RTYPE_CODE": "POSSIBLY_SAME"
         }
         
        Specified by:
        getRuleV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the resolution rule to retrieve.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addRuleV2

        public int addRuleV2​(long configHandle,
                             String inputJson,
                             StringBuffer response)
        Adds the resolution rule described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
           "ERRULE_CODE": "rule-88",
           "RESOLVE": "N",
           "RELATE": "N",
           "REF_SCORE": 38,
           "RTYPE_CODE": "POSSIBLY_SAME",
           "QUAL_ERFRAG_CODE": "CLOSE_FFES",
           "DISQ_ERFRAG_CODE": "NO_FF",
           "ERRULE_TIER": 83
         }
         

        The response JSON provides the resolution rule ID:

         {
           "ERRULE_ID": 1001
         }
         
        Specified by:
        addRuleV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the resolution rule to create.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteRuleV2

        public int deleteRuleV2​(long configHandle,
                                String inputJson)
        Deletes the resolution rule described by the specified JSON from the in-memory configuration associated with the specified config handle. The input JSON has the following format:
           {
             "ERRULE_CODE": "rule-789"
           }
         
        Specified by:
        deleteRuleV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the resolution rule to delete.
        Returns:
        Zero (0) on success and non-zero on failure.
      • listRuleFragmentsV2

        public int listRuleFragmentsV2​(long configHandle,
                                       StringBuffer response)
        Extracts the resolution rule fragments from the in-memory configuration associated with the specified config handle and writes JSON text to the specified StringBuffer describing the resolution rule fragments from the configuration. The format of the JSON response is as follows:
         {
           "RULE_FRAGMENTS": [
             { "ERFRAG_ID": 9, "ERFRAG_CODE": "GROUPER_KEY" },
             { "ERFRAG_ID": 10, "ERFRAG_CODE": "TRUSTED_ID" },
             { "ERFRAG_ID": 11, "ERFRAG_CODE": "SAME_NAME" },
             { "ERFRAG_ID": 12, "ERFRAG_CODE": "CLOSE_NAME" },
             { "ERFRAG_ID": 13, "ERFRAG_CODE": "LIKELY_NAME" },
             . . .
           ]
         }
         
        Specified by:
        listRuleFragmentsV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • getRuleFragmentV2

        public int getRuleFragmentV2​(long configHandle,
                                     String inputJson,
                                     StringBuffer response)
        Extracts a single resolution rule fragment that is identified by the specified input JSON from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the resolution rule fragment details. The format of the input JSON is as follows:
         {
           "ERFRAG_CODE": "SUR_NAME"
         }
         

        The format of the JSON response is as follows:

         {
           "ERFRAG_ID": 15,
           "ERFRAG_CODE": "SUR_NAME",
           "ERFRAG_SOURCE": "./SCORES/NAME[./GNR_SN>=92]\",
           "ERFRAG_DEPENDS": ""
         }
         
        Specified by:
        getRuleFragmentV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the resolution rule fragment to retrieve.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addRuleFragmentV2

        public int addRuleFragmentV2​(long configHandle,
                                     String inputJson,
                                     StringBuffer response)
        Adds the resolution rule fragment described by the specified JSON to the in-memory configuration associated with the specified config handle. The response JSON is written to the specified StringBuffer. The input JSON has the following format:
         {
           "ERFRAG_CODE": "fragment-789",
           "ERFRAG_ID": 789,
           "ERFRAG_SOURCE": "./SCORES/NAME[./GENERATION_MATCH = 0]\",
           "FRAGMENT_DEPENDENCIES": [
             { "ERFRAG_CODE": "CLOSE_F1" },
             { "ERFRAG_CODE": "CLOSE_F1E" },
             { "ERFRAG_CODE": "CLOSE_F1ES" }
           ]
         }
         

        The response JSON provides the resolution rule fragment ID:

         {
           "ERFRAG_ID": 789
         }
         
        Specified by:
        addRuleFragmentV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the resolution rule fragment to create.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • deleteRuleFragmentV2

        public int deleteRuleFragmentV2​(long configHandle,
                                        String inputJson)
        Deletes the resolution rule fragment described by the specified JSON from the in-memory configuration associated with the specified config handle. The input JSON has the following format:
           {
             "ERFRAG_CODE": "fragment-789"
           }
         
        Specified by:
        deleteRuleFragmentV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the resolution rule fragment to delete.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addConfigSectionV2

        public int addConfigSectionV2​(long configHandle,
                                      String inputJson)
        Adds a config section described by the specified JSON to the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "SECTION_NAME": "CUSTOM_TABLE_1"
         }
         
        Specified by:
        addConfigSectionV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the config section to add.
        Returns:
        Zero (0) on success and non-zero on failure.
      • addConfigSectionFieldV2

        public int addConfigSectionFieldV2​(long configHandle,
                                           String inputJson)
        Adds a config section field described by the specified JSON to the in-memory configuration associated with the specified config handle. The input JSON has the following format:
         {
           "SECTION_NAME": "CFG_RCLASS",
           "FIELD_NAME": "CUSTOM_SECTION_1",
           "FIELD_VALUE": 123
         }
         
        Specified by:
        addConfigSectionFieldV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the config section field to add.
        Returns:
        Zero (0) on success and non-zero on failure.
      • getCompatibilityVersionV2

        public int getCompatibilityVersionV2​(long configHandle,
                                             StringBuffer response)
        Gets the config compatibility version from the in-memory configuration associated with the specified config handle and writes the JSON text to the specified StringBuffer describing the compatibility version. The format of the JSON response is as follows:
         {
           "COMPATIBILITY_VERSION": "9"
         }
         
        Specified by:
        getCompatibilityVersionV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        response - The StringBuffer to write the JSON response to.
        Returns:
        Zero (0) on success and non-zero on failure.
      • modifyCompatibilityVersionV2

        public int modifyCompatibilityVersionV2​(long configHandle,
                                                String inputJson)
        Sets the config compatibility version in the in-memory configuration associated with the specified config handle to the compatibility version described in the specified JSON. The format of the input JSON is as follows:
         {
           "COMPATIBILITY_VERSION": "9"
         }
         
        Specified by:
        modifyCompatibilityVersionV2 in interface G2Config
        Parameters:
        configHandle - The config handle identifying the in-memory configuration to close.
        inputJson - The JSON text describing the new compatibility version.
        Returns:
        Zero (0) on success and non-zero on failure.
      • getLastException

        public String getLastException()
        Returns a string about the last error the system received. This is most commonly called after an API function returns an error code (non-zero or NULL)
        Specified by:
        getLastException in interface G2Fallible
        Returns:
        An error message
      • getLastExceptionCode

        public int getLastExceptionCode()
        Returns the exception code of the last error the system received. This is most commonly called after an API function returns an error code (non-zero or NULL)
        Specified by:
        getLastExceptionCode in interface G2Fallible
        Returns:
        An error code
      • clearLastException

        public void clearLastException()
        Clears the information about the last error the system received.
        Specified by:
        clearLastException in interface G2Fallible