當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。