Packages

package io

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. io
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Package Members

  1. package reader
  2. package records

Type Members

  1. class DeltaWriter extends Closeable with StrictLogging

    Builds up dictionaries and write record batches.

    Builds up dictionaries and write record batches. Dictionaries are encoded as deltas to minimize redundant messages.

  2. class DictionaryBuildingWriter extends Closeable

    Writes an arrow file of simple features.

    Writes an arrow file of simple features. Dictionaries will be built up as features are observed. Dictionaries are encoded based on maxSize. Values will not be correctly encoded if more than maxSize distinct values are encountered

  3. trait SimpleFeatureArrowFileReader extends Closeable

    For reading simple features from an arrow file written by SimpleFeatureArrowFileWriter.

    For reading simple features from an arrow file written by SimpleFeatureArrowFileWriter.

    Expects arrow streaming format (no footer). Can handle multiple 'files' in a single input stream

  4. class SimpleFeatureArrowFileWriter extends Closeable with Flushable with LazyLogging

    For writing simple features to an arrow file.

    For writing simple features to an arrow file.

    Uses arrow streaming format (no footer). Closing the SimpleFeatureArrowFileWriter closes the given os.

Value Members

  1. def createFileFromBatches(sft: SimpleFeatureType, dictionaries: Map[String, ArrowDictionary], encoding: SimpleFeatureEncoding, ipcOpts: IpcOption, sort: Option[(String, Boolean)], batches: CloseableIterator[Array[Byte]], firstBatchHasHeader: Boolean): CloseableIterator[Array[Byte]]

    Create an arrow file from record batches

    Create an arrow file from record batches

    sft

    simple feature type

    dictionaries

    dictionaries

    encoding

    feature encoding

    sort

    sorting of the batches, if any

    batches

    batches

    firstBatchHasHeader

    does the first batch have the arrow file header or not

  2. def createRoot(vector: FieldVector, metadata: Map[String, String] = null): VectorSchemaRoot

    Creates a vector schema root for the given vector

    Creates a vector schema root for the given vector

    vector

    vector

    metadata

    field metadata

  3. def createTransferPair(sft: SimpleFeatureType, from: FieldVector, to: FieldVector): (Int, Int) => Unit

    Create a transfer pair between two vectors.

    Create a transfer pair between two vectors. This handles geometry vectors correctly, which the underlying arrow transfer pairs do not.

    from

    from vector

    to

    to vector

    returns

    transfer(fromIndex, toIndex)

  4. def getSortAsMetadata(field: String, reverse: Boolean): Map[String, String]

    Creates metadata for sort fields

    Creates metadata for sort fields

    field

    sort field

    reverse

    reverse sorted or not

    returns

    metadata map

  5. def getSortFromMetadata(metadata: Map[String, String]): Option[(String, Boolean)]

    Checks schema metadata for sort fields

    Checks schema metadata for sort fields

    metadata

    schema metadata

    returns

    (sort field, reverse sorted or not)

  6. def writeHeaderAndFirstBatch(result: SimpleFeatureVector, dictionaries: Map[String, ArrowDictionary], ipcOpts: IpcOption, sort: Option[(String, Boolean)], count: Int): Array[Byte]

    Write out the header, dictionaries, and first batch of an arrow streaming file

    Write out the header, dictionaries, and first batch of an arrow streaming file

    result

    vector loaded with first batch

    dictionaries

    dictionaries

    sort

    sort

    count

    number of records in first batch

  7. object BatchWriter
  8. object ConcatenatedFileWriter
  9. object DeltaWriter extends StrictLogging
  10. object DictionaryBuildingWriter
  11. object FormatVersion
  12. object Metadata
  13. object SimpleFeatureArrowFileReader
  14. object SimpleFeatureArrowFileWriter

Inherited from AnyRef

Inherited from Any

Ungrouped