Package deltix.qsrv.hf.tickdb.comm
Class TypeSet
- java.lang.Object
-
- deltix.qsrv.hf.tickdb.comm.TypeSet
-
- All Implemented Interfaces:
ClassDescriptor.TypeResolver
public final class TypeSet extends java.lang.Object implements ClassDescriptor.TypeResolver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTypeSet.TypeSender
-
Constructor Summary
Constructors Constructor Description TypeSet(TypeSet.TypeSender typeSender)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddType(int idx, ClassDescriptor cd)intcount()ClassDescriptorforGuid(java.lang.String guid)RecordClassDescriptor[]getConcreteClasses()RecordClassDescriptorgetConcreteTypeByIndex(int idx)intgetIndexOfConcreteType(RecordClassDescriptor type)intgetIndexOfConcreteTypeNoAdd(RecordClassDescriptor type)UnlikegetIndexOfConcreteType(RecordClassDescriptor)will not add missing type.intindexOf(RecordClassDescriptor type)booleanisIndexPresent(int idx)voidreadTypes(java.io.DataInputStream in)
-
-
-
Constructor Detail
-
TypeSet
public TypeSet(TypeSet.TypeSender typeSender)
-
-
Method Detail
-
getConcreteTypeByIndex
public RecordClassDescriptor getConcreteTypeByIndex(int idx)
-
isIndexPresent
public boolean isIndexPresent(int idx)
-
getConcreteClasses
public RecordClassDescriptor[] getConcreteClasses()
-
readTypes
public void readTypes(java.io.DataInputStream in) throws java.io.IOException- Throws:
java.io.IOException
-
addType
public void addType(int idx, ClassDescriptor cd) throws java.io.IOException- Throws:
java.io.IOException
-
forGuid
public ClassDescriptor forGuid(java.lang.String guid)
- Specified by:
forGuidin interfaceClassDescriptor.TypeResolver
-
getIndexOfConcreteType
public int getIndexOfConcreteType(RecordClassDescriptor type) throws java.io.IOException
- Throws:
java.io.IOException
-
getIndexOfConcreteTypeNoAdd
public int getIndexOfConcreteTypeNoAdd(RecordClassDescriptor type)
UnlikegetIndexOfConcreteType(RecordClassDescriptor)will not add missing type.- Returns:
- type index if present or negative value if type was not found
-
indexOf
public int indexOf(RecordClassDescriptor type)
-
count
public int count()
-
-