object RecordExtractors
- Alphabetic
- By Inheritance
- RecordExtractors
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
extractHierarchicalRecord[T](ast: CopybookAST, segmentsData: ArrayBuffer[(String, Array[Byte])], segmentRedefines: Array[Group], segmentIdRedefineMap: Map[String, Group], parentChildMap: Map[String, Seq[Group]], offsetBytes: Int = 0, policy: SchemaRetentionPolicy = SchemaRetentionPolicy.KeepOriginal, variableLengthOccurs: Boolean = false, generateRecordId: Boolean = false, fileId: Int = 0, recordId: Long = 0, generateInputFileField: Boolean = false, inputFileName: String = "", handler: RecordHandler[T])(implicit arg0: ClassTag[T]): Seq[Any]
This method extracts a hierarchical record from the specified raw bytes.
This method extracts a hierarchical record from the specified raw bytes. The copybook for the record needs to be already parsed.
This extractor expects multiple segments to be provided as a list of a segmentId-data pair. Raw data for each segment should be provided as array of bytes.
This method reconstructs hierarchical record structure by putting all provided segments in their corresponding places in the hierarchy.
- ast
The parsed copybook
- segmentsData
The data bits containing the record
- segmentRedefines
A list of segment redefine GROUPs
- segmentIdRedefineMap
A mapping from segment ids to segment redefine groups
- parentChildMap
A mapping from a segment field name to its parents
- offsetBytes
The offset to the beginning of the record (in bits)
- policy
A schema retention policy to be applied to the extracted record
- variableLengthOccurs
If true, OCCURS DEPENDING ON data size will depend on the number of elements
- generateRecordId
If true a record id field will be added as the first field of the record.
- fileId
A file id to be put to the extractor record if generateRecordId == true
- recordId
The record id to be saved to the record id field
- generateInputFileField
if true, a field containing input file name will be generated
- inputFileName
An input file name to put if its generation is needed
- returns
An Array[Any] object corresponding to the hierarchical record schema
- Annotations
- @throws( classOf[IllegalStateException] )
-
def
extractRecord[T](ast: CopybookAST, data: Array[Byte], offsetBytes: Int = 0, policy: SchemaRetentionPolicy = SchemaRetentionPolicy.KeepOriginal, variableLengthOccurs: Boolean = false, generateRecordId: Boolean = false, generateRecordBytes: Boolean = false, segmentLevelIds: List[String] = Nil, fileId: Int = 0, recordId: Long = 0, activeSegmentRedefine: String = "", generateInputFileField: Boolean = false, inputFileName: String = "", handler: RecordHandler[T])(implicit arg0: ClassTag[T]): Seq[Any]
This method extracts a record from the specified array of bytes.
This method extracts a record from the specified array of bytes. The copybook for the record needs to be already parsed.
- ast
The parsed copybook.
- data
The data bits containing the record.
- offsetBytes
The offset to the beginning of the record (in bits).
- policy
A schema retention policy to be applied to the extracted record.
- variableLengthOccurs
If true, OCCURS DEPENDING ON data size will depend on the number of elements.
- generateRecordId
If true, a record id field will be added as the first field of the record.
- generateRecordBytes
If true, a record bytes field will be added at the beginning of each record.
- segmentLevelIds
Segment ids to put to the extracted record if id generation it turned on.
- fileId
A file id to be put to the extractor record if generateRecordId == true.
- recordId
The record id to be saved to the record id field.
- activeSegmentRedefine
An active segment redefine (the one that will be parsed). All other segment redefines will be skipped.
- generateInputFileField
if true, a field containing input file name will be generated
- inputFileName
An input file name to put if its generation is needed
- returns
An Array[Any] object corresponding to the record schema.
- Annotations
- @throws( classOf[IllegalStateException] )
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()