Commit 402e3680 by Dan Markwat
parents 0afaaa5e 959bb808
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
package org.apache.hadoop.metadata
import org.apache.hadoop.metadata.types._
case class TypesDef(enumTypes: Seq[EnumTypeDefinition],
structTypes: Seq[StructTypeDefinition],
traitTypes: Seq[HierarchicalTypeDefinition[TraitType]],
classTypes: Seq[HierarchicalTypeDefinition[ClassType]])
...@@ -19,17 +19,14 @@ ...@@ -19,17 +19,14 @@
package org.apache.hadoop.metadata.json package org.apache.hadoop.metadata.json
import com.google.common.collect.ImmutableList import com.google.common.collect.ImmutableList
import org.apache.hadoop.metadata.MetadataException import org.apache.hadoop.metadata.{TypesDef, MetadataException}
import org.apache.hadoop.metadata.types.DataTypes.{ArrayType, MapType, TypeCategory} import org.apache.hadoop.metadata.types.DataTypes.{ArrayType, MapType, TypeCategory}
import org.apache.hadoop.metadata.types._ import org.apache.hadoop.metadata.types._
import org.json4s.JsonAST.JString import org.json4s.JsonAST.JString
import org.json4s._ import org.json4s._
import org.json4s.native.Serialization._ import org.json4s.native.Serialization._
case class TypesDef(enumTypes: Seq[EnumTypeDefinition],
structTypes: Seq[StructTypeDefinition],
traitTypes: Seq[HierarchicalTypeDefinition[TraitType]],
classTypes: Seq[HierarchicalTypeDefinition[ClassType]])
/** /**
* Module for serializing to/from Json. * Module for serializing to/from Json.
......
...@@ -21,7 +21,7 @@ package org.apache.hadoop.metadata.tools.simpleserver ...@@ -21,7 +21,7 @@ package org.apache.hadoop.metadata.tools.simpleserver
import akka.actor._ import akka.actor._
import akka.util.Timeout import akka.util.Timeout
import com.google.common.collect.ImmutableList import com.google.common.collect.ImmutableList
import org.apache.hadoop.metadata.{MetadataService, ITypedReferenceableInstance} import org.apache.hadoop.metadata.{TypesDef, MetadataService, ITypedReferenceableInstance}
import org.apache.hadoop.metadata.json._ import org.apache.hadoop.metadata.json._
import org.apache.hadoop.metadata.storage.memory.MemRepository import org.apache.hadoop.metadata.storage.memory.MemRepository
import org.apache.hadoop.metadata.types._ import org.apache.hadoop.metadata.types._
......
...@@ -20,8 +20,7 @@ package org.apache.hadoop.metadata.tools.simpleserver ...@@ -20,8 +20,7 @@ package org.apache.hadoop.metadata.tools.simpleserver
import akka.actor._ import akka.actor._
import akka.util.Timeout import akka.util.Timeout
import org.apache.hadoop.metadata.{MetadataService, ITypedReferenceableInstance} import org.apache.hadoop.metadata.{TypesDef, MetadataService, ITypedReferenceableInstance}
import org.apache.hadoop.metadata.json.TypesDef
import org.apache.hadoop.metadata.storage.Id import org.apache.hadoop.metadata.storage.Id
import org.apache.hadoop.metadata.storage.memory.MemRepository import org.apache.hadoop.metadata.storage.memory.MemRepository
import org.apache.hadoop.metadata.types.TypeSystem import org.apache.hadoop.metadata.types.TypeSystem
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment