binserde

package
Version: v1.0.0-...-26db8b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BooleanSerializer                       = 1
	ByteSerializer                          = 2
	CharSerializer                          = 3
	DateSerializer                          = 4
	DateTimeSerializer                      = 5
	DoubleSerializer                        = 6
	FloatSerializer                         = 7
	IntegerSerializer                       = 8
	LinkSerializer                          = 9
	LongSerializer                          = 10
	NullSerializer                          = 11
	ShortSerializer                         = 12
	StringSerializer                        = 13
	CompositeKeySerializer                  = 14
	SimpleKeySerializer                     = 15
	StreamSerializerRID                     = 16
	BinaryTypeSerializer                    = 17
	DecimalSerializer                       = 18
	StreamSerializerListRID                 = 19
	StreamSerializerOldRIDContainer         = 20
	StreamSerializerSBTreeIndexRIDContainer = 21
	PhysicalPositionSerializer              = 50
)

from Java client code base where all these extend com.orientechnologies.common.serialization.types.OBinarySerializer

Variables

View Source
var TypeSerializers [21]OBinaryTypeSerializer

Functions

This section is empty.

Types

type OBinaryTypeSerializer

type OBinaryTypeSerializer interface {
	Deserialize(buf *bytes.Buffer) (interface{}, error)
	Serialize(val interface{}) ([]byte, error)
}

type OLinkSerializer

type OLinkSerializer struct{}

func (OLinkSerializer) Deserialize

func (ols OLinkSerializer) Deserialize(buf *bytes.Buffer) (interface{}, error)

func (OLinkSerializer) Serialize

func (ols OLinkSerializer) Serialize(val interface{}) ([]byte, error)

Serialize serilializes a *oschema.OLink into the binary format required by the OrientDB server. If the `val` passed in is not a *oschema.OLink, the method will panic.

Directories

Path Synopsis
Package varint is used for the OrientDB schemaless serialization where variable size integers are used with zigzag encoding to convert negative integers to a positive unsigned int format so that smaller integers (whether negative or positive) can be transmitted in less than 4 bytes on the wire.
Package varint is used for the OrientDB schemaless serialization where variable size integers are used with zigzag encoding to convert negative integers to a positive unsigned int format so that smaller integers (whether negative or positive) can be transmitted in less than 4 bytes on the wire.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL