当前位置: 首页>>代码示例>>Java>>正文


Java MgmtLogType类代码示例

本文整理汇总了Java中com.thinkaurelius.titan.graphdb.database.management.MgmtLogType的典型用法代码示例。如果您正苦于以下问题:Java MgmtLogType类的具体用法?Java MgmtLogType怎么用?Java MgmtLogType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MgmtLogType类属于com.thinkaurelius.titan.graphdb.database.management包,在下文中一共展示了MgmtLogType类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: StandardSerializer

import com.thinkaurelius.titan.graphdb.database.management.MgmtLogType; //导入依赖的package包/类
public StandardSerializer() {
    handlers = new HashMap<>(60);
    registrations = HashBiMap.create(60);

    //Setup
    registerClassInternal(1, Object.class, new ObjectSerializer());



    //Primitive data types
    registerClassInternal(10, Byte.class, new ByteSerializer());
    registerClassInternal(11,Short.class, new ShortSerializer());
    registerClassInternal(12,Integer.class, new IntegerSerializer());
    registerClassInternal(13,Long.class, new LongSerializer());

    registerClassInternal(14,Character.class, new CharacterSerializer());
    registerClassInternal(15,Boolean.class, new BooleanSerializer());
    registerClassInternal(16,Date.class, new DateSerializer());

    registerClassInternal(17,Geoshape.class, new Geoshape.GeoshapeSerializer());
    registerClassInternal(18,String.class, new StringSerializer()); //supports null serialization
    registerClassInternal(19,Float.class, new FloatSerializer());
    registerClassInternal(20,Double.class, new DoubleSerializer());
    registerClassInternal(21,UUID.class, new UUIDSerializer());


    //Arrays (support null serialization)
    registerClassInternal(22,byte[].class, new ByteArraySerializer());
    registerClassInternal(23,short[].class, new ShortArraySerializer());
    registerClassInternal(24,int[].class, new IntArraySerializer());
    registerClassInternal(25,long[].class, new LongArraySerializer());
    registerClassInternal(26,float[].class, new FloatArraySerializer());
    registerClassInternal(27,double[].class, new DoubleArraySerializer());
    registerClassInternal(28,char[].class, new CharArraySerializer());
    registerClassInternal(29,boolean[].class, new BooleanArraySerializer());
    registerClassInternal(30, String[].class, new StringArraySerializer());

    //Needed by Titan
    registerClassInternal(41,TypeDefinitionCategory.class, new EnumSerializer<>(TypeDefinitionCategory.class));
    registerClassInternal(42,TitanSchemaCategory.class, new EnumSerializer<>(TitanSchemaCategory.class));
    registerClassInternal(43,ParameterType.class, new EnumSerializer<>(ParameterType.class));
    registerClassInternal(44,RelationCategory.class, new EnumSerializer<>(RelationCategory.class));
    registerClassInternal(45,Order.class, new EnumSerializer<>(Order.class));
    registerClassInternal(46,Multiplicity.class, new EnumSerializer<>(Multiplicity.class));
    registerClassInternal(47,Cardinality.class, new EnumSerializer<>(Cardinality.class));
    registerClassInternal(48,Direction.class, new EnumSerializer<>(Direction.class));
    registerClassInternal(49,ElementCategory.class, new EnumSerializer<>(ElementCategory.class));
    registerClassInternal(50,ConsistencyModifier.class, new EnumSerializer<>(ConsistencyModifier.class));
    registerClassInternal(51,SchemaStatus.class, new EnumSerializer<>(SchemaStatus.class));
    registerClassInternal(52,LogTxStatus.class, new EnumSerializer<>(LogTxStatus.class));
    registerClassInternal(53,MgmtLogType.class, new EnumSerializer<>(MgmtLogType.class));
    registerClassInternal(54,TimestampProviders.class, new EnumSerializer<>(TimestampProviders.class));
    registerClassInternal(55,TimeUnit.class, new EnumSerializer<>(TimeUnit.class));
    registerClassInternal(56,Mapping.class, new EnumSerializer<>(Mapping.class));
    registerClassInternal(57,ConflictAvoidanceMode.class, new EnumSerializer<>(ConflictAvoidanceMode.class));

    registerClassInternal(60,Class.class, new ClassSerializer());
    registerClassInternal(61,Parameter.class, new ParameterSerializer());
    registerClassInternal(62,Parameter[].class, new ParameterArraySerializer());
    registerClassInternal(63,TypeDefinitionDescription.class, new TypeDefinitionDescriptionSerializer());
    //Needed for configuration and transaction logging
    registerClassInternal(64,Duration.class, new DurationSerializer());
    registerClassInternal(65,Instant.class, new InstantSerializer());
    registerClassInternal(66,StandardTransactionId.class, new StandardTransactionIdSerializer());

}
 
开发者ID:graben1437,项目名称:titan1withtp3.1,代码行数:67,代码来源:StandardSerializer.java


注:本文中的com.thinkaurelius.titan.graphdb.database.management.MgmtLogType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。