You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-commits@lucene.apache.org by va...@apache.org on 2012/07/09 23:18:12 UTC
svn commit: r1359406 - in
/lucene/pylucene/trunk/java/org/apache/pylucene/util: PythonAttribute.java
PythonAttributeImpl.java
Author: vajda
Date: Mon Jul 9 21:18:11 2012
New Revision: 1359406
URL: http://svn.apache.org/viewvc?rev=1359406&view=rev
Log:
added missing PythonAttribute/Impl classes
Added:
lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttribute.java (with props)
lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttributeImpl.java (with props)
Added: lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttribute.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttribute.java?rev=1359406&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttribute.java (added)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttribute.java Mon Jul 9 21:18:11 2012
@@ -0,0 +1,21 @@
+/* ====================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ====================================================================
+ */
+
+package org.apache.pylucene.util;
+
+import org.apache.lucene.util.Attribute;
+
+public interface PythonAttribute extends Attribute {
+}
Propchange: lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttribute.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttribute.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttributeImpl.java
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttributeImpl.java?rev=1359406&view=auto
==============================================================================
--- lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttributeImpl.java (added)
+++ lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttributeImpl.java Mon Jul 9 21:18:11 2012
@@ -0,0 +1,48 @@
+/* ====================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ====================================================================
+ */
+
+package org.apache.pylucene.util;
+
+import org.apache.lucene.util.AttributeImpl;
+
+public class PythonAttributeImpl extends AttributeImpl {
+ private long pythonObject;
+
+ public PythonAttributeImpl()
+ {
+ }
+
+ public void pythonExtension(long pythonObject)
+ {
+ this.pythonObject = pythonObject;
+ }
+ public long pythonExtension()
+ {
+ return this.pythonObject;
+ }
+
+ public void finalize()
+ throws Throwable
+ {
+ pythonDecRef();
+ }
+
+ public native void pythonDecRef();
+ public native void clear();
+ public native void copyTo(AttributeImpl target);
+
+ public native boolean equals(Object obj);
+ public native int hashCode();
+}
Propchange: lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttributeImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: lucene/pylucene/trunk/java/org/apache/pylucene/util/PythonAttributeImpl.java
------------------------------------------------------------------------------
svn:mime-type = text/plain