TreeWriter.Factory (ORC Core 1.6.6 API)
Date: 2021-01-13

org.apache.orc.impl.writer

## Class TreeWriter.Factory

- java.lang.Object
- - org.apache.orc.impl.writer.TreeWriter.Factory

- Enclosing interface:
    TreeWriter

      public static class TreeWriter.Factory
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Factory()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static TreeWriter` | `create(TypeDescription schema, WriterEncryptionVariant encryption, WriterContext streamFactory)` Create a new tree writer for the given types and insert encryption if required.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Factory

          public Factory()

  - ### Method Detail

    - #### create

          public static TreeWriter create(TypeDescription schema,
                                          WriterEncryptionVariant encryption,
                                          WriterContext streamFactory)
                                   throws IOException

      Create a new tree writer for the given types and insert encryption if required.
      Parameters:
        `schema` - the type to build a writer for
        `encryption` - the encryption status
        `streamFactory` - the writer context
      Returns:
        a new tree writer
      Throws:
        `IOException`

Copyright © 2013–2021 The Apache Software Foundation. All rights reserved.