text: //
  //  Generated by the J2ObjC translator.  DO NOT EDIT!
  //  source: ./core/src/java/org/apache/lucene/codecs/lucene50/Lucene50PostingsWriter.java
  //
  
  #include "J2ObjC_header.h"
  
  #pragma push_macro("INCLUDE_ALL_OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter")
  #ifdef RESTRICT_OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter
  #define INCLUDE_ALL_OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter 0
  #else
  #define INCLUDE_ALL_OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter 1
  #endif
  #undef RESTRICT_OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter
  
  #if __has_feature(nullability)
  #pragma clang diagnostic push
  #pragma GCC diagnostic ignored "-Wnullability"
  #pragma GCC diagnostic ignored "-Wnullability-completeness"
  #endif
  
  #if !defined (OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter_) && (INCLUDE_ALL_OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter || defined(INCLUDE_OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter))
  #define OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter_
  
  #define RESTRICT_OrgApacheLuceneCodecsPushPostingsWriterBase 1
  #define INCLUDE_OrgApacheLuceneCodecsPushPostingsWriterBase 1
  #include "org/apache/lucene/codecs/PushPostingsWriterBase.h"
  
  @class IOSByteArray;
  @class IOSIntArray;
  @class IOSLongArray;
  @class OrgApacheLuceneCodecsBlockTermState;
  @class OrgApacheLuceneCodecsLucene50Lucene50PostingsFormat_IntBlockTermState;
  @class OrgApacheLuceneIndexFieldInfo;
  @class OrgApacheLuceneIndexSegmentWriteState;
  @class OrgApacheLuceneStoreDataOutput;
  @class OrgApacheLuceneStoreIndexOutput;
  @class OrgApacheLuceneUtilBytesRef;
  
  /*!
   @brief Concrete class that writes docId(maybe frq,pos,offset,payloads) list
    with postings format.
   Postings list for each term will be stored separately.
   - seealso: Lucene50SkipWriterfor details about skipping setting and postings layout.
   */
  @interface OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter : OrgApacheLuceneCodecsPushPostingsWriterBase {
   @public
    OrgApacheLuceneStoreIndexOutput *docOut_;
    OrgApacheLuceneStoreIndexOutput *posOut_;
    OrgApacheLuceneStoreIndexOutput *payOut_;
    OrgApacheLuceneCodecsLucene50Lucene50PostingsFormat_IntBlockTermState *lastState_;
    IOSIntArray *docDeltaBuffer_;
    IOSIntArray *freqBuffer_;
    IOSIntArray *posDeltaBuffer_;
    IOSIntArray *payloadLengthBuffer_;
    IOSIntArray *offsetStartDeltaBuffer_;
    IOSIntArray *offsetLengthBuffer_;
    IOSByteArray *encoded_;
  }
  @property (readonly, class, strong) OrgApacheLuceneCodecsLucene50Lucene50PostingsFormat_IntBlockTermState *emptyState NS_SWIFT_NAME(emptyState);
  
  #pragma mark Public
  
  /*!
   @brief Creates a postings writer
   */
  - (instancetype __nonnull)initWithOrgApacheLuceneIndexSegmentWriteState:(OrgApacheLuceneIndexSegmentWriteState *)state;
  
  - (void)addPositionWithInt:(jint)position
  withOrgApacheLuceneUtilBytesRef:(OrgApacheLuceneUtilBytesRef *)payload
                     withInt:(jint)startOffset
                     withInt:(jint)endOffset;
  
  - (void)close;
  
  - (void)encodeTermWithLongArray:(IOSLongArray *)longs
  withOrgApacheLuceneStoreDataOutput:(OrgApacheLuceneStoreDataOutput *)outArg
  withOrgApacheLuceneIndexFieldInfo:(OrgApacheLuceneIndexFieldInfo *)fieldInfo
  withOrgApacheLuceneCodecsBlockTermState:(OrgApacheLuceneCodecsBlockTermState *)_state
                      withBoolean:(jboolean)absolute;
  
  - (void)finishDoc;
  
  /*!
   @brief Called when we are done adding docs to this term
   */
  - (void)finishTermWithOrgApacheLuceneCodecsBlockTermState:(OrgApacheLuceneCodecsBlockTermState *)_state;
  
  - (void)init__WithOrgApacheLuceneStoreIndexOutput:(OrgApacheLuceneStoreIndexOutput *)termsOut
          withOrgApacheLuceneIndexSegmentWriteState:(OrgApacheLuceneIndexSegmentWriteState *)state OBJC_METHOD_FAMILY_NONE;
  
  - (OrgApacheLuceneCodecsLucene50Lucene50PostingsFormat_IntBlockTermState *)newTermState OBJC_METHOD_FAMILY_NONE;
  
  - (jint)setFieldWithOrgApacheLuceneIndexFieldInfo:(OrgApacheLuceneIndexFieldInfo *)fieldInfo;
  
  - (void)startDocWithInt:(jint)docID
                  withInt:(jint)termDocFreq;
  
  - (void)startTerm;
  
  // Disallowed inherited constructors, do not use.
  
  - (instancetype __nonnull)init NS_UNAVAILABLE;
  
  @end
  
  J2OBJC_STATIC_INIT(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter)
  
  J2OBJC_FIELD_SETTER(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter, docOut_, OrgApacheLuceneStoreIndexOutput *)
  J2OBJC_FIELD_SETTER(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter, posOut_, OrgApacheLuceneStoreIndexOutput *)
  J2OBJC_FIELD_SETTER(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter, payOut_, OrgApacheLuceneStoreIndexOutput *)
  J2OBJC_FIELD_SETTER(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter, lastState_, OrgApacheLuceneCodecsLucene50Lucene50PostingsFormat_IntBlockTermState *)
  J2OBJC_FIELD_SETTER(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter, docDeltaBuffer_, IOSIntArray *)
  J2OBJC_FIELD_SETTER(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter, freqBuffer_, IOSIntArray *)
  J2OBJC_FIELD_SETTER(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter, posDeltaBuffer_, IOSIntArray *)
  J2OBJC_FIELD_SETTER(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter, payloadLengthBuffer_, IOSIntArray *)
  J2OBJC_FIELD_SETTER(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter, offsetStartDeltaBuffer_, IOSIntArray *)
  J2OBJC_FIELD_SETTER(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter, offsetLengthBuffer_, IOSIntArray *)
  J2OBJC_FIELD_SETTER(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter, encoded_, IOSByteArray *)
  
  inline OrgApacheLuceneCodecsLucene50Lucene50PostingsFormat_IntBlockTermState *OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter_get_emptyState(void);
  /*! INTERNAL ONLY - Use accessor function from above. */
  FOUNDATION_EXPORT OrgApacheLuceneCodecsLucene50Lucene50PostingsFormat_IntBlockTermState *OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter_emptyState;
  J2OBJC_STATIC_FIELD_OBJ_FINAL(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter, emptyState, OrgApacheLuceneCodecsLucene50Lucene50PostingsFormat_IntBlockTermState *)
  
  FOUNDATION_EXPORT void OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter_initWithOrgApacheLuceneIndexSegmentWriteState_(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter *self, OrgApacheLuceneIndexSegmentWriteState *state);
  
  FOUNDATION_EXPORT OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter *new_OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter_initWithOrgApacheLuceneIndexSegmentWriteState_(OrgApacheLuceneIndexSegmentWriteState *state) NS_RETURNS_RETAINED;
  
  FOUNDATION_EXPORT OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter *create_OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter_initWithOrgApacheLuceneIndexSegmentWriteState_(OrgApacheLuceneIndexSegmentWriteState *state);
  
  J2OBJC_TYPE_LITERAL_HEADER(OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter)
  
  #endif
  
  
  #if __has_feature(nullability)
  #pragma clang diagnostic pop
  #endif
  #pragma pop_macro("INCLUDE_ALL_OrgApacheLuceneCodecsLucene50Lucene50PostingsWriter")
  