Package com.gigaspaces.serialization.pbs
Class PbsEntryFormatter
java.lang.Object
com.gigaspaces.serialization.pbs.PbsEntryFormatter
Provides PBS services for writing/reading Entries to/from the space.
- Since:
- 6.1
- Author:
- Niv
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ITemplatePacketgetCppTemplatePacketFromSqlQuery(SQLQuery<?> sqlQuery, ISpaceProxy spaceProxy) static ITemplatePacketgetTemplatePacketFromSqlQuery(SQLQuery<?> sqlQuery, ISpaceProxy spaceProxy, PbsProjectionTemplate projectionTemplate, QueryResultTypeInternal resultType) static DocumentPropertiesstatic EntryTypereadEntryType(PbsInputStream input) static ObjectreadFieldValue(PbsInputStream input) static ObjectreadFieldValue(PbsInputStream input, ISpaceProxy contextSpaceProxy) static PbsEntryPacketreadPbsEntryPacket(PbsInputStream input) static PbsEntryPacket[]static ITemplatePacketreadPbsTemplate(PbsInputStream input, ISpaceProxy spaceProxy) static ITemplatePacketreadPbsTemplate(PbsInputStream input, ISpaceProxy spaceProxy, ITypeDesc typeDescriptor) static PbsTemplatePacketstatic Object[]readPrimitiveArray(PbsInputStream input, ISpaceProxy contextSpaceProxy) static PbsProjectionTemplatestatic QueryResultTypeInternalstatic ITemplatePacketreadSqlQuery(PbsInputStream input, ISpaceProxy spaceProxy, ITypeDesc typeDescriptor) static ITypeDescreadTypeDesc(PbsInputStream input, String typeName, EntryType entryType, int flags) static ITypeDescreadTypeDescIfExists(PbsInputStream input, String typeName, EntryType entryType) static ITypeDescreadTypeDescriptor(PbsInputStream input) static voidwriteDynamicProperties(PbsOutputStream output, Map<String, Object> dynamicProperties) static voidwriteEntry(PbsOutputStream output, Object[] values, String className, String uid, int version, boolean isTransient, boolean isFifo, boolean isReplicatable, boolean isBroadcast) static voidwriteExternalEntry(PbsOutputStream output, IGSEntry entry) static voidwriteFieldValue(PbsOutputStream output, Object value) static voidwriteNullablePbsEntryPacket(PbsOutputStream output, PbsEntryPacket pbsEntry) Writes a pbs entry packet to the streamstatic voidwriteNullablePbsEntryPacketObjectArray(PbsOutputStream output, Object[] objects) Write an object array of nullable pbs entries to the streamstatic voidwritePbsEntryPacket(PbsOutputStream output, PbsEntryPacket pbsEntry) Writes a pbs entry packet to the streamstatic voidwritePbsEntryPacketLazy(PbsOutputStream output, PbsEntryPacket packet) static voidwritePbsEntryPacketObjectArray(PbsOutputStream output, Object[] objects) Write an object array of pbs entries to the streamstatic voidwritePrimitiveArray(PbsOutputStream output, Object[] array) Serialize a primitive (PbsFormatter primitive types) to the given streamstatic voidwriteTypeDesc(PbsOutputStream output, ITypeDesc typeDescriptor)
-
Field Details
-
BITMAP_TRANSIENT
public static final int BITMAP_TRANSIENT- See Also:
-
BITMAP_FIFO
public static final int BITMAP_FIFO- See Also:
-
BITMAP_REPLICATE
public static final int BITMAP_REPLICATE- See Also:
-
BITMAP_METADATA
public static final int BITMAP_METADATA- See Also:
-
-
Constructor Details
-
PbsEntryFormatter
public PbsEntryFormatter()
-
-
Method Details
-
writeExternalEntry
-
writeEntry
public static void writeEntry(PbsOutputStream output, Object[] values, String className, String uid, int version, boolean isTransient, boolean isFifo, boolean isReplicatable, boolean isBroadcast) -
readTypeDescriptor
-
readTypeDescIfExists
public static ITypeDesc readTypeDescIfExists(PbsInputStream input, String typeName, EntryType entryType) -
readTypeDesc
public static ITypeDesc readTypeDesc(PbsInputStream input, String typeName, EntryType entryType, int flags) -
writePbsEntryPacket
Writes a pbs entry packet to the stream -
writeDynamicProperties
public static void writeDynamicProperties(PbsOutputStream output, Map<String, Object> dynamicProperties) -
writePbsEntryPacketLazy
-
writeNullablePbsEntryPacket
Writes a pbs entry packet to the stream -
writePbsEntryPacketObjectArray
Write an object array of pbs entries to the stream -
writeNullablePbsEntryPacketObjectArray
Write an object array of nullable pbs entries to the stream -
writeFieldValue
-
readFieldValue
-
readFieldValue
-
writePrimitiveArray
Serialize a primitive (PbsFormatter primitive types) to the given stream- Parameters:
output- Stream to serialize intoarray- Array of objects to serialize
-
readPrimitiveArray
-
readPbsEntryPacket
-
readPbsTemplatePacket
-
readPbsEntryPacketArray
-
readDynamicProperties
-
readPbsTemplate
-
readPbsTemplate
public static ITemplatePacket readPbsTemplate(PbsInputStream input, ISpaceProxy spaceProxy, ITypeDesc typeDescriptor) -
readSqlQuery
public static ITemplatePacket readSqlQuery(PbsInputStream input, ISpaceProxy spaceProxy, ITypeDesc typeDescriptor) -
readProjectionTemplate
-
getCppTemplatePacketFromSqlQuery
public static ITemplatePacket getCppTemplatePacketFromSqlQuery(SQLQuery<?> sqlQuery, ISpaceProxy spaceProxy) -
getTemplatePacketFromSqlQuery
public static ITemplatePacket getTemplatePacketFromSqlQuery(SQLQuery<?> sqlQuery, ISpaceProxy spaceProxy, PbsProjectionTemplate projectionTemplate, QueryResultTypeInternal resultType) -
writeTypeDesc
-
readQueryResultType
-
readEntryType
-