
org.openx.data.jsonserde.objectinspector.JsonStructObjectInspector Maven / Gradle / Ivy
/*======================================================================*
* Copyright (c) 2011, OpenX Technologies, Inc. All rights reserved. *
* *
* Licensed under the New BSD License (the "License"); you may not use *
* this file except in compliance with the License. Unless required *
* by applicable law or agreed to in writing, software distributed *
* under the License is distributed on an "AS IS" BASIS, WITHOUT *
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
* See the License for the specific language governing permissions and *
* limitations under the License. See accompanying LICENSE file. *
*======================================================================*/
package org.openx.data.jsonserde.objectinspector;
import io.starburst.openjson.JSONArray;
import io.starburst.openjson.JSONException;
import io.starburst.openjson.JSONObject;
import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.StructField;
import org.openx.data.jsonserde.objectinspector.primitive.JsonStringJavaObjectInspector;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* This Object Inspector is used to look into a JSonObject object.
* We couldn't use StandardStructObjectInspector since that expects
* something that can be cast to an Array
© 2015 - 2025 Weber Informatics LLC | Privacy Policy