Class ORecordSerializerStringAbstract
java.lang.Object
com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerStringAbstract
- All Implemented Interfaces:
ORecordSerializer,Serializable
- Direct Known Subclasses:
ORecordSerializerCSVAbstract,ORecordSerializerJSON
public abstract class ORecordSerializerStringAbstract
extends Object
implements ORecordSerializer, Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectconvertValue(String iValue, OType iExpectedType) static ObjectfieldTypeFromStream(ODocument iDocument, OType iType, Object iValue) static voidfieldTypeToString(StringBuilder iBuffer, OType iType, Object iValue) fromStream(byte[] iSource, ORecord iRecord, String[] iFields, OSerializationContext ctx) fromString(String iSource) abstract ORecordfromString(String iContent, ORecord iRecord, String[] iFields) String[]getFieldNames(ODocument reference, byte[] iSource) booleanstatic OTypeParses a string returning the closer type.static ObjectgetTypeValue(String iValue) Parses a string returning the value with the closer type.static ObjectsimpleValueFromStream(Object iValue, OType iType) static voidsimpleValueToStream(StringBuilder iBuffer, OType iType, Object iValue) byte[]toStream(ORecord iRecord, OSerializationContext ctx) toString(ORecord iRecord, StringBuilder iOutput, String iFormat) protected abstract StringBuildertoString(ORecord iRecord, StringBuilder iOutput, String iFormat, boolean autoDetectCollectionType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.serialization.serializer.record.ORecordSerializer
fromStream, getCurrentVersion, getMinSupportedVersion, getName, toStream
-
Field Details
-
PROFILER
-
-
Constructor Details
-
ORecordSerializerStringAbstract
public ORecordSerializerStringAbstract()
-
-
Method Details
-
fieldTypeFromStream
-
convertValue
-
fieldTypeToString
-
getType
Parses a string returning the closer type. Numbers by default are INTEGER if haven't decimal separator, otherwise FLOAT. To treat all the number types numbers are postponed with a character that tells the type: b=byte, s=short, l=long, f=float, d=double, t=date.- Parameters:
iValue- Value to parse- Returns:
- The closest type recognized
-
getTypeValue
Parses a string returning the value with the closer type. Numbers by default are INTEGER if haven't decimal separator, otherwise FLOAT. To treat all the number types numbers are postponed with a character that tells the type: b=byte, s=short, l=long, f=float, d=double, t=date. If starts with # it's a RecordID. Most of the code is equals to getType() but has been copied to speed-up it.- Parameters:
iValue- Value to parse- Returns:
- The closest type recognized
-
simpleValueFromStream
-
simpleValueToStream
-
fromString
-
toString
-
fromString
-
getFieldNames
- Specified by:
getFieldNamesin interfaceORecordSerializer
-
fromStream
public ORecord fromStream(byte[] iSource, ORecord iRecord, String[] iFields, OSerializationContext ctx) - Specified by:
fromStreamin interfaceORecordSerializer
-
toStream
- Specified by:
toStreamin interfaceORecordSerializer
-
toString
protected abstract StringBuilder toString(ORecord iRecord, StringBuilder iOutput, String iFormat, boolean autoDetectCollectionType) -
getSupportBinaryEvaluate
public boolean getSupportBinaryEvaluate()- Specified by:
getSupportBinaryEvaluatein interfaceORecordSerializer
-