Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
lucene / include / org / apache / lucene / codecs / CodecUtil.h
Size: Mime:
#ifndef org_apache_lucene_codecs_CodecUtil_H
#define org_apache_lucene_codecs_CodecUtil_H

#include "java/lang/Object.h"

namespace java {
  namespace lang {
    class String;
    class Class;
    class Throwable;
  }
  namespace io {
    class IOException;
  }
}
namespace org {
  namespace apache {
    namespace lucene {
      namespace store {
        class IndexOutput;
        class DataOutput;
        class DataInput;
        class IndexInput;
        class ChecksumIndexInput;
      }
    }
  }
}
template<class T> class JArray;

namespace org {
  namespace apache {
    namespace lucene {
      namespace codecs {

        class CodecUtil : public ::java::lang::Object {
         public:
          enum {
            mid_checkFooter_22f680b0fc69318a,
            mid_checkFooter_8440b2349bd0cfc8,
            mid_checkHeader_053a3eb42bd2a64e,
            mid_checkHeaderNoMagic_053a3eb42bd2a64e,
            mid_checkIndexHeader_e45121d291b17f0f,
            mid_checkIndexHeaderID_f5d3d3322bc892db,
            mid_checkIndexHeaderSuffix_af74ac1f8d4663a8,
            mid_checksumEntireFile_cce812a99d0eceb5,
            mid_footerLength_9135e6328d9d7dfd,
            mid_headerLength_8a3ef3a507fbe37b,
            mid_indexHeaderLength_7f7232117f9bfa03,
            mid_readFooter_ce9f446c06dbe0d3,
            mid_readIndexHeader_ce9f446c06dbe0d3,
            mid_retrieveChecksum_cce812a99d0eceb5,
            mid_verifyAndCopyIndexHeader_6b5eab65c3330b60,
            mid_writeFooter_44b28201a3c22828,
            mid_writeHeader_a94f6b0af47db32a,
            mid_writeIndexHeader_991e72b51732c5ef,
            max_mid
          };

          static ::java::lang::Class *class$;
          static jmethodID *mids$;
          static bool live$;
          static jclass initializeClass(bool);

          explicit CodecUtil(jobject obj) : ::java::lang::Object(obj) {
            if (obj != NULL && mids$ == NULL)
              env->getClass(initializeClass);
          }
          CodecUtil(const CodecUtil& obj) : ::java::lang::Object(obj) {}

          static jint CODEC_MAGIC;
          static jint FOOTER_MAGIC;

          static jlong checkFooter(const ::org::apache::lucene::store::ChecksumIndexInput &);
          static void checkFooter(const ::org::apache::lucene::store::ChecksumIndexInput &, const ::java::lang::Throwable &);
          static jint checkHeader(const ::org::apache::lucene::store::DataInput &, const ::java::lang::String &, jint, jint);
          static jint checkHeaderNoMagic(const ::org::apache::lucene::store::DataInput &, const ::java::lang::String &, jint, jint);
          static jint checkIndexHeader(const ::org::apache::lucene::store::DataInput &, const ::java::lang::String &, jint, jint, const JArray< jbyte > &, const ::java::lang::String &);
          static JArray< jbyte > checkIndexHeaderID(const ::org::apache::lucene::store::DataInput &, const JArray< jbyte > &);
          static ::java::lang::String checkIndexHeaderSuffix(const ::org::apache::lucene::store::DataInput &, const ::java::lang::String &);
          static jlong checksumEntireFile(const ::org::apache::lucene::store::IndexInput &);
          static jint footerLength();
          static jint headerLength(const ::java::lang::String &);
          static jint indexHeaderLength(const ::java::lang::String &, const ::java::lang::String &);
          static JArray< jbyte > readFooter(const ::org::apache::lucene::store::IndexInput &);
          static JArray< jbyte > readIndexHeader(const ::org::apache::lucene::store::IndexInput &);
          static jlong retrieveChecksum(const ::org::apache::lucene::store::IndexInput &);
          static void verifyAndCopyIndexHeader(const ::org::apache::lucene::store::IndexInput &, const ::org::apache::lucene::store::DataOutput &, const JArray< jbyte > &);
          static void writeFooter(const ::org::apache::lucene::store::IndexOutput &);
          static void writeHeader(const ::org::apache::lucene::store::DataOutput &, const ::java::lang::String &, jint);
          static void writeIndexHeader(const ::org::apache::lucene::store::DataOutput &, const ::java::lang::String &, jint, const JArray< jbyte > &, const ::java::lang::String &);
        };
      }
    }
  }
}

#include <Python.h>

namespace org {
  namespace apache {
    namespace lucene {
      namespace codecs {
        extern PyType_Def PY_TYPE_DEF(CodecUtil);
        extern PyTypeObject *PY_TYPE(CodecUtil);

        class t_CodecUtil {
        public:
          PyObject_HEAD
          CodecUtil object;
          static PyObject *wrap_Object(const CodecUtil&);
          static PyObject *wrap_jobject(const jobject&);
          static void install(PyObject *module);
          static void initialize(PyObject *module);
        };
      }
    }
  }
}

#endif