You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2014/08/31 11:34:41 UTC

svn commit: r1621573 [3/5] - in /jena/trunk/jena-arq: ./ src/main/java/org/apache/jena/riot/ src/main/java/org/apache/jena/riot/resultset/ src/main/java/org/apache/jena/riot/system/ src/main/java/org/apache/jena/riot/thrift/ src/main/java/org/apache/je...

Added: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_Literal.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_Literal.java?rev=1621573&view=auto
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_Literal.java (added)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_Literal.java Sun Aug 31 09:34:40 2014
@@ -0,0 +1,695 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.jena.riot.thrift.wire;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings("all")
+public class RDF_Literal implements org.apache.thrift.TBase<RDF_Literal, RDF_Literal._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RDF_Literal");
+
+  private static final org.apache.thrift.protocol.TField LEX_FIELD_DESC = new org.apache.thrift.protocol.TField("lex", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField LANGTAG_FIELD_DESC = new org.apache.thrift.protocol.TField("langtag", org.apache.thrift.protocol.TType.STRING, (short)2);
+  private static final org.apache.thrift.protocol.TField DATATYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("datatype", org.apache.thrift.protocol.TType.STRING, (short)3);
+  private static final org.apache.thrift.protocol.TField DT_PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("dtPrefix", org.apache.thrift.protocol.TType.STRUCT, (short)4);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new RDF_LiteralStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new RDF_LiteralTupleSchemeFactory());
+  }
+
+  public String lex; // required
+  public String langtag; // optional
+  public String datatype; // optional
+  public RDF_PrefixName dtPrefix; // optional
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    LEX((short)1, "lex"),
+    LANGTAG((short)2, "langtag"),
+    DATATYPE((short)3, "datatype"),
+    DT_PREFIX((short)4, "dtPrefix");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // LEX
+          return LEX;
+        case 2: // LANGTAG
+          return LANGTAG;
+        case 3: // DATATYPE
+          return DATATYPE;
+        case 4: // DT_PREFIX
+          return DT_PREFIX;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  private _Fields optionals[] = {_Fields.LANGTAG,_Fields.DATATYPE,_Fields.DT_PREFIX};
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.LEX, new org.apache.thrift.meta_data.FieldMetaData("lex", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.LANGTAG, new org.apache.thrift.meta_data.FieldMetaData("langtag", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.DATATYPE, new org.apache.thrift.meta_data.FieldMetaData("datatype", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.DT_PREFIX, new org.apache.thrift.meta_data.FieldMetaData("dtPrefix", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RDF_PrefixName.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RDF_Literal.class, metaDataMap);
+  }
+
+  public RDF_Literal() {
+  }
+
+  public RDF_Literal(
+    String lex)
+  {
+    this();
+    this.lex = lex;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public RDF_Literal(RDF_Literal other) {
+    if (other.isSetLex()) {
+      this.lex = other.lex;
+    }
+    if (other.isSetLangtag()) {
+      this.langtag = other.langtag;
+    }
+    if (other.isSetDatatype()) {
+      this.datatype = other.datatype;
+    }
+    if (other.isSetDtPrefix()) {
+      this.dtPrefix = new RDF_PrefixName(other.dtPrefix);
+    }
+  }
+
+  public RDF_Literal deepCopy() {
+    return new RDF_Literal(this);
+  }
+
+  @Override
+  public void clear() {
+    this.lex = null;
+    this.langtag = null;
+    this.datatype = null;
+    this.dtPrefix = null;
+  }
+
+  public String getLex() {
+    return this.lex;
+  }
+
+  public RDF_Literal setLex(String lex) {
+    this.lex = lex;
+    return this;
+  }
+
+  public void unsetLex() {
+    this.lex = null;
+  }
+
+  /** Returns true if field lex is set (has been assigned a value) and false otherwise */
+  public boolean isSetLex() {
+    return this.lex != null;
+  }
+
+  public void setLexIsSet(boolean value) {
+    if (!value) {
+      this.lex = null;
+    }
+  }
+
+  public String getLangtag() {
+    return this.langtag;
+  }
+
+  public RDF_Literal setLangtag(String langtag) {
+    this.langtag = langtag;
+    return this;
+  }
+
+  public void unsetLangtag() {
+    this.langtag = null;
+  }
+
+  /** Returns true if field langtag is set (has been assigned a value) and false otherwise */
+  public boolean isSetLangtag() {
+    return this.langtag != null;
+  }
+
+  public void setLangtagIsSet(boolean value) {
+    if (!value) {
+      this.langtag = null;
+    }
+  }
+
+  public String getDatatype() {
+    return this.datatype;
+  }
+
+  public RDF_Literal setDatatype(String datatype) {
+    this.datatype = datatype;
+    return this;
+  }
+
+  public void unsetDatatype() {
+    this.datatype = null;
+  }
+
+  /** Returns true if field datatype is set (has been assigned a value) and false otherwise */
+  public boolean isSetDatatype() {
+    return this.datatype != null;
+  }
+
+  public void setDatatypeIsSet(boolean value) {
+    if (!value) {
+      this.datatype = null;
+    }
+  }
+
+  public RDF_PrefixName getDtPrefix() {
+    return this.dtPrefix;
+  }
+
+  public RDF_Literal setDtPrefix(RDF_PrefixName dtPrefix) {
+    this.dtPrefix = dtPrefix;
+    return this;
+  }
+
+  public void unsetDtPrefix() {
+    this.dtPrefix = null;
+  }
+
+  /** Returns true if field dtPrefix is set (has been assigned a value) and false otherwise */
+  public boolean isSetDtPrefix() {
+    return this.dtPrefix != null;
+  }
+
+  public void setDtPrefixIsSet(boolean value) {
+    if (!value) {
+      this.dtPrefix = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case LEX:
+      if (value == null) {
+        unsetLex();
+      } else {
+        setLex((String)value);
+      }
+      break;
+
+    case LANGTAG:
+      if (value == null) {
+        unsetLangtag();
+      } else {
+        setLangtag((String)value);
+      }
+      break;
+
+    case DATATYPE:
+      if (value == null) {
+        unsetDatatype();
+      } else {
+        setDatatype((String)value);
+      }
+      break;
+
+    case DT_PREFIX:
+      if (value == null) {
+        unsetDtPrefix();
+      } else {
+        setDtPrefix((RDF_PrefixName)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case LEX:
+      return getLex();
+
+    case LANGTAG:
+      return getLangtag();
+
+    case DATATYPE:
+      return getDatatype();
+
+    case DT_PREFIX:
+      return getDtPrefix();
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    case LEX:
+      return isSetLex();
+    case LANGTAG:
+      return isSetLangtag();
+    case DATATYPE:
+      return isSetDatatype();
+    case DT_PREFIX:
+      return isSetDtPrefix();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof RDF_Literal)
+      return this.equals((RDF_Literal)that);
+    return false;
+  }
+
+  public boolean equals(RDF_Literal that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_lex = true && this.isSetLex();
+    boolean that_present_lex = true && that.isSetLex();
+    if (this_present_lex || that_present_lex) {
+      if (!(this_present_lex && that_present_lex))
+        return false;
+      if (!this.lex.equals(that.lex))
+        return false;
+    }
+
+    boolean this_present_langtag = true && this.isSetLangtag();
+    boolean that_present_langtag = true && that.isSetLangtag();
+    if (this_present_langtag || that_present_langtag) {
+      if (!(this_present_langtag && that_present_langtag))
+        return false;
+      if (!this.langtag.equals(that.langtag))
+        return false;
+    }
+
+    boolean this_present_datatype = true && this.isSetDatatype();
+    boolean that_present_datatype = true && that.isSetDatatype();
+    if (this_present_datatype || that_present_datatype) {
+      if (!(this_present_datatype && that_present_datatype))
+        return false;
+      if (!this.datatype.equals(that.datatype))
+        return false;
+    }
+
+    boolean this_present_dtPrefix = true && this.isSetDtPrefix();
+    boolean that_present_dtPrefix = true && that.isSetDtPrefix();
+    if (this_present_dtPrefix || that_present_dtPrefix) {
+      if (!(this_present_dtPrefix && that_present_dtPrefix))
+        return false;
+      if (!this.dtPrefix.equals(that.dtPrefix))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(RDF_Literal other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    RDF_Literal typedOther = (RDF_Literal)other;
+
+    lastComparison = Boolean.valueOf(isSetLex()).compareTo(typedOther.isSetLex());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetLex()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lex, typedOther.lex);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetLangtag()).compareTo(typedOther.isSetLangtag());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetLangtag()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.langtag, typedOther.langtag);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetDatatype()).compareTo(typedOther.isSetDatatype());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetDatatype()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.datatype, typedOther.datatype);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetDtPrefix()).compareTo(typedOther.isSetDtPrefix());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetDtPrefix()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dtPrefix, typedOther.dtPrefix);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("RDF_Literal(");
+    boolean first = true;
+
+    sb.append("lex:");
+    if (this.lex == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.lex);
+    }
+    first = false;
+    if (isSetLangtag()) {
+      if (!first) sb.append(", ");
+      sb.append("langtag:");
+      if (this.langtag == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.langtag);
+      }
+      first = false;
+    }
+    if (isSetDatatype()) {
+      if (!first) sb.append(", ");
+      sb.append("datatype:");
+      if (this.datatype == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.datatype);
+      }
+      first = false;
+    }
+    if (isSetDtPrefix()) {
+      if (!first) sb.append(", ");
+      sb.append("dtPrefix:");
+      if (this.dtPrefix == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.dtPrefix);
+      }
+      first = false;
+    }
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (lex == null) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'lex' was not present! Struct: " + toString());
+    }
+    // check for sub-struct validity
+    if (dtPrefix != null) {
+      dtPrefix.validate();
+    }
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class RDF_LiteralStandardSchemeFactory implements SchemeFactory {
+    public RDF_LiteralStandardScheme getScheme() {
+      return new RDF_LiteralStandardScheme();
+    }
+  }
+
+  private static class RDF_LiteralStandardScheme extends StandardScheme<RDF_Literal> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, RDF_Literal struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // LEX
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.lex = iprot.readString();
+              struct.setLexIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // LANGTAG
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.langtag = iprot.readString();
+              struct.setLangtagIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // DATATYPE
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.datatype = iprot.readString();
+              struct.setDatatypeIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // DT_PREFIX
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.dtPrefix = new RDF_PrefixName();
+              struct.dtPrefix.read(iprot);
+              struct.setDtPrefixIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, RDF_Literal struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.lex != null) {
+        oprot.writeFieldBegin(LEX_FIELD_DESC);
+        oprot.writeString(struct.lex);
+        oprot.writeFieldEnd();
+      }
+      if (struct.langtag != null) {
+        if (struct.isSetLangtag()) {
+          oprot.writeFieldBegin(LANGTAG_FIELD_DESC);
+          oprot.writeString(struct.langtag);
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.datatype != null) {
+        if (struct.isSetDatatype()) {
+          oprot.writeFieldBegin(DATATYPE_FIELD_DESC);
+          oprot.writeString(struct.datatype);
+          oprot.writeFieldEnd();
+        }
+      }
+      if (struct.dtPrefix != null) {
+        if (struct.isSetDtPrefix()) {
+          oprot.writeFieldBegin(DT_PREFIX_FIELD_DESC);
+          struct.dtPrefix.write(oprot);
+          oprot.writeFieldEnd();
+        }
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class RDF_LiteralTupleSchemeFactory implements SchemeFactory {
+    public RDF_LiteralTupleScheme getScheme() {
+      return new RDF_LiteralTupleScheme();
+    }
+  }
+
+  private static class RDF_LiteralTupleScheme extends TupleScheme<RDF_Literal> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, RDF_Literal struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      oprot.writeString(struct.lex);
+      BitSet optionals = new BitSet();
+      if (struct.isSetLangtag()) {
+        optionals.set(0);
+      }
+      if (struct.isSetDatatype()) {
+        optionals.set(1);
+      }
+      if (struct.isSetDtPrefix()) {
+        optionals.set(2);
+      }
+      oprot.writeBitSet(optionals, 3);
+      if (struct.isSetLangtag()) {
+        oprot.writeString(struct.langtag);
+      }
+      if (struct.isSetDatatype()) {
+        oprot.writeString(struct.datatype);
+      }
+      if (struct.isSetDtPrefix()) {
+        struct.dtPrefix.write(oprot);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, RDF_Literal struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.lex = iprot.readString();
+      struct.setLexIsSet(true);
+      BitSet incoming = iprot.readBitSet(3);
+      if (incoming.get(0)) {
+        struct.langtag = iprot.readString();
+        struct.setLangtagIsSet(true);
+      }
+      if (incoming.get(1)) {
+        struct.datatype = iprot.readString();
+        struct.setDatatypeIsSet(true);
+      }
+      if (incoming.get(2)) {
+        struct.dtPrefix = new RDF_PrefixName();
+        struct.dtPrefix.read(iprot);
+        struct.setDtPrefixIsSet(true);
+      }
+    }
+  }
+
+}
+

Propchange: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_Literal.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_PrefixDecl.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_PrefixDecl.java?rev=1621573&view=auto
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_PrefixDecl.java (added)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_PrefixDecl.java Sun Aug 31 09:34:40 2014
@@ -0,0 +1,476 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.jena.riot.thrift.wire;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings("all")
+public class RDF_PrefixDecl implements org.apache.thrift.TBase<RDF_PrefixDecl, RDF_PrefixDecl._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RDF_PrefixDecl");
+
+  private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField URI_FIELD_DESC = new org.apache.thrift.protocol.TField("uri", org.apache.thrift.protocol.TType.STRING, (short)2);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new RDF_PrefixDeclStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new RDF_PrefixDeclTupleSchemeFactory());
+  }
+
+  public String prefix; // required
+  public String uri; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    PREFIX((short)1, "prefix"),
+    URI((short)2, "uri");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // PREFIX
+          return PREFIX;
+        case 2: // URI
+          return URI;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.URI, new org.apache.thrift.meta_data.FieldMetaData("uri", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RDF_PrefixDecl.class, metaDataMap);
+  }
+
+  public RDF_PrefixDecl() {
+  }
+
+  public RDF_PrefixDecl(
+    String prefix,
+    String uri)
+  {
+    this();
+    this.prefix = prefix;
+    this.uri = uri;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public RDF_PrefixDecl(RDF_PrefixDecl other) {
+    if (other.isSetPrefix()) {
+      this.prefix = other.prefix;
+    }
+    if (other.isSetUri()) {
+      this.uri = other.uri;
+    }
+  }
+
+  public RDF_PrefixDecl deepCopy() {
+    return new RDF_PrefixDecl(this);
+  }
+
+  @Override
+  public void clear() {
+    this.prefix = null;
+    this.uri = null;
+  }
+
+  public String getPrefix() {
+    return this.prefix;
+  }
+
+  public RDF_PrefixDecl setPrefix(String prefix) {
+    this.prefix = prefix;
+    return this;
+  }
+
+  public void unsetPrefix() {
+    this.prefix = null;
+  }
+
+  /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
+  public boolean isSetPrefix() {
+    return this.prefix != null;
+  }
+
+  public void setPrefixIsSet(boolean value) {
+    if (!value) {
+      this.prefix = null;
+    }
+  }
+
+  public String getUri() {
+    return this.uri;
+  }
+
+  public RDF_PrefixDecl setUri(String uri) {
+    this.uri = uri;
+    return this;
+  }
+
+  public void unsetUri() {
+    this.uri = null;
+  }
+
+  /** Returns true if field uri is set (has been assigned a value) and false otherwise */
+  public boolean isSetUri() {
+    return this.uri != null;
+  }
+
+  public void setUriIsSet(boolean value) {
+    if (!value) {
+      this.uri = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case PREFIX:
+      if (value == null) {
+        unsetPrefix();
+      } else {
+        setPrefix((String)value);
+      }
+      break;
+
+    case URI:
+      if (value == null) {
+        unsetUri();
+      } else {
+        setUri((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case PREFIX:
+      return getPrefix();
+
+    case URI:
+      return getUri();
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    case PREFIX:
+      return isSetPrefix();
+    case URI:
+      return isSetUri();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof RDF_PrefixDecl)
+      return this.equals((RDF_PrefixDecl)that);
+    return false;
+  }
+
+  public boolean equals(RDF_PrefixDecl that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_prefix = true && this.isSetPrefix();
+    boolean that_present_prefix = true && that.isSetPrefix();
+    if (this_present_prefix || that_present_prefix) {
+      if (!(this_present_prefix && that_present_prefix))
+        return false;
+      if (!this.prefix.equals(that.prefix))
+        return false;
+    }
+
+    boolean this_present_uri = true && this.isSetUri();
+    boolean that_present_uri = true && that.isSetUri();
+    if (this_present_uri || that_present_uri) {
+      if (!(this_present_uri && that_present_uri))
+        return false;
+      if (!this.uri.equals(that.uri))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(RDF_PrefixDecl other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    RDF_PrefixDecl typedOther = (RDF_PrefixDecl)other;
+
+    lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(typedOther.isSetPrefix());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetPrefix()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, typedOther.prefix);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetUri()).compareTo(typedOther.isSetUri());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetUri()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uri, typedOther.uri);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("RDF_PrefixDecl(");
+    boolean first = true;
+
+    sb.append("prefix:");
+    if (this.prefix == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.prefix);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("uri:");
+    if (this.uri == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.uri);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (prefix == null) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'prefix' was not present! Struct: " + toString());
+    }
+    if (uri == null) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'uri' was not present! Struct: " + toString());
+    }
+    // check for sub-struct validity
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class RDF_PrefixDeclStandardSchemeFactory implements SchemeFactory {
+    public RDF_PrefixDeclStandardScheme getScheme() {
+      return new RDF_PrefixDeclStandardScheme();
+    }
+  }
+
+  private static class RDF_PrefixDeclStandardScheme extends StandardScheme<RDF_PrefixDecl> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, RDF_PrefixDecl struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // PREFIX
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.prefix = iprot.readString();
+              struct.setPrefixIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // URI
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.uri = iprot.readString();
+              struct.setUriIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, RDF_PrefixDecl struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.prefix != null) {
+        oprot.writeFieldBegin(PREFIX_FIELD_DESC);
+        oprot.writeString(struct.prefix);
+        oprot.writeFieldEnd();
+      }
+      if (struct.uri != null) {
+        oprot.writeFieldBegin(URI_FIELD_DESC);
+        oprot.writeString(struct.uri);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class RDF_PrefixDeclTupleSchemeFactory implements SchemeFactory {
+    public RDF_PrefixDeclTupleScheme getScheme() {
+      return new RDF_PrefixDeclTupleScheme();
+    }
+  }
+
+  private static class RDF_PrefixDeclTupleScheme extends TupleScheme<RDF_PrefixDecl> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, RDF_PrefixDecl struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      oprot.writeString(struct.prefix);
+      oprot.writeString(struct.uri);
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, RDF_PrefixDecl struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.prefix = iprot.readString();
+      struct.setPrefixIsSet(true);
+      struct.uri = iprot.readString();
+      struct.setUriIsSet(true);
+    }
+  }
+
+}
+

Propchange: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_PrefixDecl.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_PrefixName.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_PrefixName.java?rev=1621573&view=auto
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_PrefixName.java (added)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_PrefixName.java Sun Aug 31 09:34:40 2014
@@ -0,0 +1,476 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.jena.riot.thrift.wire;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings("all")
+public class RDF_PrefixName implements org.apache.thrift.TBase<RDF_PrefixName, RDF_PrefixName._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RDF_PrefixName");
+
+  private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)1);
+  private static final org.apache.thrift.protocol.TField LOCAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("localName", org.apache.thrift.protocol.TType.STRING, (short)2);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new RDF_PrefixNameStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new RDF_PrefixNameTupleSchemeFactory());
+  }
+
+  public String prefix; // required
+  public String localName; // required
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    PREFIX((short)1, "prefix"),
+    LOCAL_NAME((short)2, "localName");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // PREFIX
+          return PREFIX;
+        case 2: // LOCAL_NAME
+          return LOCAL_NAME;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    tmpMap.put(_Fields.LOCAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("localName", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RDF_PrefixName.class, metaDataMap);
+  }
+
+  public RDF_PrefixName() {
+  }
+
+  public RDF_PrefixName(
+    String prefix,
+    String localName)
+  {
+    this();
+    this.prefix = prefix;
+    this.localName = localName;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public RDF_PrefixName(RDF_PrefixName other) {
+    if (other.isSetPrefix()) {
+      this.prefix = other.prefix;
+    }
+    if (other.isSetLocalName()) {
+      this.localName = other.localName;
+    }
+  }
+
+  public RDF_PrefixName deepCopy() {
+    return new RDF_PrefixName(this);
+  }
+
+  @Override
+  public void clear() {
+    this.prefix = null;
+    this.localName = null;
+  }
+
+  public String getPrefix() {
+    return this.prefix;
+  }
+
+  public RDF_PrefixName setPrefix(String prefix) {
+    this.prefix = prefix;
+    return this;
+  }
+
+  public void unsetPrefix() {
+    this.prefix = null;
+  }
+
+  /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
+  public boolean isSetPrefix() {
+    return this.prefix != null;
+  }
+
+  public void setPrefixIsSet(boolean value) {
+    if (!value) {
+      this.prefix = null;
+    }
+  }
+
+  public String getLocalName() {
+    return this.localName;
+  }
+
+  public RDF_PrefixName setLocalName(String localName) {
+    this.localName = localName;
+    return this;
+  }
+
+  public void unsetLocalName() {
+    this.localName = null;
+  }
+
+  /** Returns true if field localName is set (has been assigned a value) and false otherwise */
+  public boolean isSetLocalName() {
+    return this.localName != null;
+  }
+
+  public void setLocalNameIsSet(boolean value) {
+    if (!value) {
+      this.localName = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case PREFIX:
+      if (value == null) {
+        unsetPrefix();
+      } else {
+        setPrefix((String)value);
+      }
+      break;
+
+    case LOCAL_NAME:
+      if (value == null) {
+        unsetLocalName();
+      } else {
+        setLocalName((String)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case PREFIX:
+      return getPrefix();
+
+    case LOCAL_NAME:
+      return getLocalName();
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    case PREFIX:
+      return isSetPrefix();
+    case LOCAL_NAME:
+      return isSetLocalName();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof RDF_PrefixName)
+      return this.equals((RDF_PrefixName)that);
+    return false;
+  }
+
+  public boolean equals(RDF_PrefixName that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_prefix = true && this.isSetPrefix();
+    boolean that_present_prefix = true && that.isSetPrefix();
+    if (this_present_prefix || that_present_prefix) {
+      if (!(this_present_prefix && that_present_prefix))
+        return false;
+      if (!this.prefix.equals(that.prefix))
+        return false;
+    }
+
+    boolean this_present_localName = true && this.isSetLocalName();
+    boolean that_present_localName = true && that.isSetLocalName();
+    if (this_present_localName || that_present_localName) {
+      if (!(this_present_localName && that_present_localName))
+        return false;
+      if (!this.localName.equals(that.localName))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(RDF_PrefixName other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    RDF_PrefixName typedOther = (RDF_PrefixName)other;
+
+    lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(typedOther.isSetPrefix());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetPrefix()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, typedOther.prefix);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetLocalName()).compareTo(typedOther.isSetLocalName());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetLocalName()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.localName, typedOther.localName);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("RDF_PrefixName(");
+    boolean first = true;
+
+    sb.append("prefix:");
+    if (this.prefix == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.prefix);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("localName:");
+    if (this.localName == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.localName);
+    }
+    first = false;
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (prefix == null) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'prefix' was not present! Struct: " + toString());
+    }
+    if (localName == null) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'localName' was not present! Struct: " + toString());
+    }
+    // check for sub-struct validity
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class RDF_PrefixNameStandardSchemeFactory implements SchemeFactory {
+    public RDF_PrefixNameStandardScheme getScheme() {
+      return new RDF_PrefixNameStandardScheme();
+    }
+  }
+
+  private static class RDF_PrefixNameStandardScheme extends StandardScheme<RDF_PrefixName> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, RDF_PrefixName struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // PREFIX
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.prefix = iprot.readString();
+              struct.setPrefixIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // LOCAL_NAME
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
+              struct.localName = iprot.readString();
+              struct.setLocalNameIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, RDF_PrefixName struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.prefix != null) {
+        oprot.writeFieldBegin(PREFIX_FIELD_DESC);
+        oprot.writeString(struct.prefix);
+        oprot.writeFieldEnd();
+      }
+      if (struct.localName != null) {
+        oprot.writeFieldBegin(LOCAL_NAME_FIELD_DESC);
+        oprot.writeString(struct.localName);
+        oprot.writeFieldEnd();
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class RDF_PrefixNameTupleSchemeFactory implements SchemeFactory {
+    public RDF_PrefixNameTupleScheme getScheme() {
+      return new RDF_PrefixNameTupleScheme();
+    }
+  }
+
+  private static class RDF_PrefixNameTupleScheme extends TupleScheme<RDF_PrefixName> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, RDF_PrefixName struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      oprot.writeString(struct.prefix);
+      oprot.writeString(struct.localName);
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, RDF_PrefixName struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.prefix = iprot.readString();
+      struct.setPrefixIsSet(true);
+      struct.localName = iprot.readString();
+      struct.setLocalNameIsSet(true);
+    }
+  }
+
+}
+

Propchange: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_PrefixName.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_Quad.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_Quad.java?rev=1621573&view=auto
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_Quad.java (added)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_Quad.java Sun Aug 31 09:34:40 2014
@@ -0,0 +1,686 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.jena.riot.thrift.wire;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings("all")
+public class RDF_Quad implements org.apache.thrift.TBase<RDF_Quad, RDF_Quad._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RDF_Quad");
+
+  private static final org.apache.thrift.protocol.TField S_FIELD_DESC = new org.apache.thrift.protocol.TField("S", org.apache.thrift.protocol.TType.STRUCT, (short)1);
+  private static final org.apache.thrift.protocol.TField P_FIELD_DESC = new org.apache.thrift.protocol.TField("P", org.apache.thrift.protocol.TType.STRUCT, (short)2);
+  private static final org.apache.thrift.protocol.TField O_FIELD_DESC = new org.apache.thrift.protocol.TField("O", org.apache.thrift.protocol.TType.STRUCT, (short)3);
+  private static final org.apache.thrift.protocol.TField G_FIELD_DESC = new org.apache.thrift.protocol.TField("G", org.apache.thrift.protocol.TType.STRUCT, (short)4);
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new RDF_QuadStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new RDF_QuadTupleSchemeFactory());
+  }
+
+  public RDF_Term S; // required
+  public RDF_Term P; // required
+  public RDF_Term O; // required
+  public RDF_Term G; // optional
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+    S((short)1, "S"),
+    P((short)2, "P"),
+    O((short)3, "O"),
+    G((short)4, "G");
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        case 1: // S
+          return S;
+        case 2: // P
+          return P;
+        case 3: // O
+          return O;
+        case 4: // G
+          return G;
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+
+  // isset id assignments
+  private _Fields optionals[] = {_Fields.G};
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    tmpMap.put(_Fields.S, new org.apache.thrift.meta_data.FieldMetaData("S", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RDF_Term.class)));
+    tmpMap.put(_Fields.P, new org.apache.thrift.meta_data.FieldMetaData("P", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RDF_Term.class)));
+    tmpMap.put(_Fields.O, new org.apache.thrift.meta_data.FieldMetaData("O", org.apache.thrift.TFieldRequirementType.REQUIRED, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RDF_Term.class)));
+    tmpMap.put(_Fields.G, new org.apache.thrift.meta_data.FieldMetaData("G", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
+        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RDF_Term.class)));
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RDF_Quad.class, metaDataMap);
+  }
+
+  public RDF_Quad() {
+  }
+
+  public RDF_Quad(
+    RDF_Term S,
+    RDF_Term P,
+    RDF_Term O)
+  {
+    this();
+    this.S = S;
+    this.P = P;
+    this.O = O;
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public RDF_Quad(RDF_Quad other) {
+    if (other.isSetS()) {
+      this.S = new RDF_Term(other.S);
+    }
+    if (other.isSetP()) {
+      this.P = new RDF_Term(other.P);
+    }
+    if (other.isSetO()) {
+      this.O = new RDF_Term(other.O);
+    }
+    if (other.isSetG()) {
+      this.G = new RDF_Term(other.G);
+    }
+  }
+
+  public RDF_Quad deepCopy() {
+    return new RDF_Quad(this);
+  }
+
+  @Override
+  public void clear() {
+    this.S = null;
+    this.P = null;
+    this.O = null;
+    this.G = null;
+  }
+
+  public RDF_Term getS() {
+    return this.S;
+  }
+
+  public RDF_Quad setS(RDF_Term S) {
+    this.S = S;
+    return this;
+  }
+
+  public void unsetS() {
+    this.S = null;
+  }
+
+  /** Returns true if field S is set (has been assigned a value) and false otherwise */
+  public boolean isSetS() {
+    return this.S != null;
+  }
+
+  public void setSIsSet(boolean value) {
+    if (!value) {
+      this.S = null;
+    }
+  }
+
+  public RDF_Term getP() {
+    return this.P;
+  }
+
+  public RDF_Quad setP(RDF_Term P) {
+    this.P = P;
+    return this;
+  }
+
+  public void unsetP() {
+    this.P = null;
+  }
+
+  /** Returns true if field P is set (has been assigned a value) and false otherwise */
+  public boolean isSetP() {
+    return this.P != null;
+  }
+
+  public void setPIsSet(boolean value) {
+    if (!value) {
+      this.P = null;
+    }
+  }
+
+  public RDF_Term getO() {
+    return this.O;
+  }
+
+  public RDF_Quad setO(RDF_Term O) {
+    this.O = O;
+    return this;
+  }
+
+  public void unsetO() {
+    this.O = null;
+  }
+
+  /** Returns true if field O is set (has been assigned a value) and false otherwise */
+  public boolean isSetO() {
+    return this.O != null;
+  }
+
+  public void setOIsSet(boolean value) {
+    if (!value) {
+      this.O = null;
+    }
+  }
+
+  public RDF_Term getG() {
+    return this.G;
+  }
+
+  public RDF_Quad setG(RDF_Term G) {
+    this.G = G;
+    return this;
+  }
+
+  public void unsetG() {
+    this.G = null;
+  }
+
+  /** Returns true if field G is set (has been assigned a value) and false otherwise */
+  public boolean isSetG() {
+    return this.G != null;
+  }
+
+  public void setGIsSet(boolean value) {
+    if (!value) {
+      this.G = null;
+    }
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    case S:
+      if (value == null) {
+        unsetS();
+      } else {
+        setS((RDF_Term)value);
+      }
+      break;
+
+    case P:
+      if (value == null) {
+        unsetP();
+      } else {
+        setP((RDF_Term)value);
+      }
+      break;
+
+    case O:
+      if (value == null) {
+        unsetO();
+      } else {
+        setO((RDF_Term)value);
+      }
+      break;
+
+    case G:
+      if (value == null) {
+        unsetG();
+      } else {
+        setG((RDF_Term)value);
+      }
+      break;
+
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    case S:
+      return getS();
+
+    case P:
+      return getP();
+
+    case O:
+      return getO();
+
+    case G:
+      return getG();
+
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    case S:
+      return isSetS();
+    case P:
+      return isSetP();
+    case O:
+      return isSetO();
+    case G:
+      return isSetG();
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof RDF_Quad)
+      return this.equals((RDF_Quad)that);
+    return false;
+  }
+
+  public boolean equals(RDF_Quad that) {
+    if (that == null)
+      return false;
+
+    boolean this_present_S = true && this.isSetS();
+    boolean that_present_S = true && that.isSetS();
+    if (this_present_S || that_present_S) {
+      if (!(this_present_S && that_present_S))
+        return false;
+      if (!this.S.equals(that.S))
+        return false;
+    }
+
+    boolean this_present_P = true && this.isSetP();
+    boolean that_present_P = true && that.isSetP();
+    if (this_present_P || that_present_P) {
+      if (!(this_present_P && that_present_P))
+        return false;
+      if (!this.P.equals(that.P))
+        return false;
+    }
+
+    boolean this_present_O = true && this.isSetO();
+    boolean that_present_O = true && that.isSetO();
+    if (this_present_O || that_present_O) {
+      if (!(this_present_O && that_present_O))
+        return false;
+      if (!this.O.equals(that.O))
+        return false;
+    }
+
+    boolean this_present_G = true && this.isSetG();
+    boolean that_present_G = true && that.isSetG();
+    if (this_present_G || that_present_G) {
+      if (!(this_present_G && that_present_G))
+        return false;
+      if (!this.G.equals(that.G))
+        return false;
+    }
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(RDF_Quad other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    RDF_Quad typedOther = (RDF_Quad)other;
+
+    lastComparison = Boolean.valueOf(isSetS()).compareTo(typedOther.isSetS());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetS()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.S, typedOther.S);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetP()).compareTo(typedOther.isSetP());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetP()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.P, typedOther.P);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetO()).compareTo(typedOther.isSetO());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetO()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.O, typedOther.O);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    lastComparison = Boolean.valueOf(isSetG()).compareTo(typedOther.isSetG());
+    if (lastComparison != 0) {
+      return lastComparison;
+    }
+    if (isSetG()) {
+      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.G, typedOther.G);
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+    }
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("RDF_Quad(");
+    boolean first = true;
+
+    sb.append("S:");
+    if (this.S == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.S);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("P:");
+    if (this.P == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.P);
+    }
+    first = false;
+    if (!first) sb.append(", ");
+    sb.append("O:");
+    if (this.O == null) {
+      sb.append("null");
+    } else {
+      sb.append(this.O);
+    }
+    first = false;
+    if (isSetG()) {
+      if (!first) sb.append(", ");
+      sb.append("G:");
+      if (this.G == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.G);
+      }
+      first = false;
+    }
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    if (S == null) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'S' was not present! Struct: " + toString());
+    }
+    if (P == null) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'P' was not present! Struct: " + toString());
+    }
+    if (O == null) {
+      throw new org.apache.thrift.protocol.TProtocolException("Required field 'O' was not present! Struct: " + toString());
+    }
+    // check for sub-struct validity
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class RDF_QuadStandardSchemeFactory implements SchemeFactory {
+    public RDF_QuadStandardScheme getScheme() {
+      return new RDF_QuadStandardScheme();
+    }
+  }
+
+  private static class RDF_QuadStandardScheme extends StandardScheme<RDF_Quad> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, RDF_Quad struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          case 1: // S
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.S = new RDF_Term();
+              struct.S.read(iprot);
+              struct.setSIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 2: // P
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.P = new RDF_Term();
+              struct.P.read(iprot);
+              struct.setPIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 3: // O
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.O = new RDF_Term();
+              struct.O.read(iprot);
+              struct.setOIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          case 4: // G
+            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
+              struct.G = new RDF_Term();
+              struct.G.read(iprot);
+              struct.setGIsSet(true);
+            } else { 
+              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+            }
+            break;
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, RDF_Quad struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      if (struct.S != null) {
+        oprot.writeFieldBegin(S_FIELD_DESC);
+        struct.S.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      if (struct.P != null) {
+        oprot.writeFieldBegin(P_FIELD_DESC);
+        struct.P.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      if (struct.O != null) {
+        oprot.writeFieldBegin(O_FIELD_DESC);
+        struct.O.write(oprot);
+        oprot.writeFieldEnd();
+      }
+      if (struct.G != null) {
+        if (struct.isSetG()) {
+          oprot.writeFieldBegin(G_FIELD_DESC);
+          struct.G.write(oprot);
+          oprot.writeFieldEnd();
+        }
+      }
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class RDF_QuadTupleSchemeFactory implements SchemeFactory {
+    public RDF_QuadTupleScheme getScheme() {
+      return new RDF_QuadTupleScheme();
+    }
+  }
+
+  private static class RDF_QuadTupleScheme extends TupleScheme<RDF_Quad> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, RDF_Quad struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+      struct.S.write(oprot);
+      struct.P.write(oprot);
+      struct.O.write(oprot);
+      BitSet optionals = new BitSet();
+      if (struct.isSetG()) {
+        optionals.set(0);
+      }
+      oprot.writeBitSet(optionals, 1);
+      if (struct.isSetG()) {
+        struct.G.write(oprot);
+      }
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, RDF_Quad struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+      struct.S = new RDF_Term();
+      struct.S.read(iprot);
+      struct.setSIsSet(true);
+      struct.P = new RDF_Term();
+      struct.P.read(iprot);
+      struct.setPIsSet(true);
+      struct.O = new RDF_Term();
+      struct.O.read(iprot);
+      struct.setOIsSet(true);
+      BitSet incoming = iprot.readBitSet(1);
+      if (incoming.get(0)) {
+        struct.G = new RDF_Term();
+        struct.G.read(iprot);
+        struct.setGIsSet(true);
+      }
+    }
+  }
+
+}
+

Propchange: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_Quad.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_REPEAT.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_REPEAT.java?rev=1621573&view=auto
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_REPEAT.java (added)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_REPEAT.java Sun Aug 31 09:34:40 2014
@@ -0,0 +1,279 @@
+/**
+ * Autogenerated by Thrift Compiler (0.9.0)
+ *
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
+ *  @generated
+ */
+package org.apache.jena.riot.thrift.wire;
+
+import org.apache.thrift.scheme.IScheme;
+import org.apache.thrift.scheme.SchemeFactory;
+import org.apache.thrift.scheme.StandardScheme;
+
+import org.apache.thrift.scheme.TupleScheme;
+import org.apache.thrift.protocol.TTupleProtocol;
+import org.apache.thrift.protocol.TProtocolException;
+import org.apache.thrift.EncodingUtils;
+import org.apache.thrift.TException;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+import java.util.EnumMap;
+import java.util.Set;
+import java.util.HashSet;
+import java.util.EnumSet;
+import java.util.Collections;
+import java.util.BitSet;
+import java.nio.ByteBuffer;
+import java.util.Arrays;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+@SuppressWarnings("all")
+public class RDF_REPEAT implements org.apache.thrift.TBase<RDF_REPEAT, RDF_REPEAT._Fields>, java.io.Serializable, Cloneable {
+  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RDF_REPEAT");
+
+
+  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
+  static {
+    schemes.put(StandardScheme.class, new RDF_REPEATStandardSchemeFactory());
+    schemes.put(TupleScheme.class, new RDF_REPEATTupleSchemeFactory());
+  }
+
+
+  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
+  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+;
+
+    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
+
+    static {
+      for (_Fields field : EnumSet.allOf(_Fields.class)) {
+        byName.put(field.getFieldName(), field);
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, or null if its not found.
+     */
+    public static _Fields findByThriftId(int fieldId) {
+      switch(fieldId) {
+        default:
+          return null;
+      }
+    }
+
+    /**
+     * Find the _Fields constant that matches fieldId, throwing an exception
+     * if it is not found.
+     */
+    public static _Fields findByThriftIdOrThrow(int fieldId) {
+      _Fields fields = findByThriftId(fieldId);
+      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
+      return fields;
+    }
+
+    /**
+     * Find the _Fields constant that matches name, or null if its not found.
+     */
+    public static _Fields findByName(String name) {
+      return byName.get(name);
+    }
+
+    private final short _thriftId;
+    private final String _fieldName;
+
+    _Fields(short thriftId, String fieldName) {
+      _thriftId = thriftId;
+      _fieldName = fieldName;
+    }
+
+    public short getThriftFieldId() {
+      return _thriftId;
+    }
+
+    public String getFieldName() {
+      return _fieldName;
+    }
+  }
+  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
+  static {
+    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+    metaDataMap = Collections.unmodifiableMap(tmpMap);
+    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RDF_REPEAT.class, metaDataMap);
+  }
+
+  public RDF_REPEAT() {
+  }
+
+  /**
+   * Performs a deep copy on <i>other</i>.
+   */
+  public RDF_REPEAT(RDF_REPEAT other) {
+  }
+
+  public RDF_REPEAT deepCopy() {
+    return new RDF_REPEAT(this);
+  }
+
+  @Override
+  public void clear() {
+  }
+
+  public void setFieldValue(_Fields field, Object value) {
+    switch (field) {
+    }
+  }
+
+  public Object getFieldValue(_Fields field) {
+    switch (field) {
+    }
+    throw new IllegalStateException();
+  }
+
+  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
+  public boolean isSet(_Fields field) {
+    if (field == null) {
+      throw new IllegalArgumentException();
+    }
+
+    switch (field) {
+    }
+    throw new IllegalStateException();
+  }
+
+  @Override
+  public boolean equals(Object that) {
+    if (that == null)
+      return false;
+    if (that instanceof RDF_REPEAT)
+      return this.equals((RDF_REPEAT)that);
+    return false;
+  }
+
+  public boolean equals(RDF_REPEAT that) {
+    if (that == null)
+      return false;
+
+    return true;
+  }
+
+  @Override
+  public int hashCode() {
+    return 0;
+  }
+
+  public int compareTo(RDF_REPEAT other) {
+    if (!getClass().equals(other.getClass())) {
+      return getClass().getName().compareTo(other.getClass().getName());
+    }
+
+    int lastComparison = 0;
+    RDF_REPEAT typedOther = (RDF_REPEAT)other;
+
+    return 0;
+  }
+
+  public _Fields fieldForId(int fieldId) {
+    return _Fields.findByThriftId(fieldId);
+  }
+
+  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
+    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
+  }
+
+  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
+    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
+  }
+
+  @Override
+  public String toString() {
+    StringBuilder sb = new StringBuilder("RDF_REPEAT(");
+    boolean first = true;
+
+    sb.append(")");
+    return sb.toString();
+  }
+
+  public void validate() throws org.apache.thrift.TException {
+    // check for required fields
+    // check for sub-struct validity
+  }
+
+  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
+    try {
+      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
+    try {
+      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
+    } catch (org.apache.thrift.TException te) {
+      throw new java.io.IOException(te);
+    }
+  }
+
+  private static class RDF_REPEATStandardSchemeFactory implements SchemeFactory {
+    public RDF_REPEATStandardScheme getScheme() {
+      return new RDF_REPEATStandardScheme();
+    }
+  }
+
+  private static class RDF_REPEATStandardScheme extends StandardScheme<RDF_REPEAT> {
+
+    public void read(org.apache.thrift.protocol.TProtocol iprot, RDF_REPEAT struct) throws org.apache.thrift.TException {
+      org.apache.thrift.protocol.TField schemeField;
+      iprot.readStructBegin();
+      while (true)
+      {
+        schemeField = iprot.readFieldBegin();
+        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
+          break;
+        }
+        switch (schemeField.id) {
+          default:
+            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
+        }
+        iprot.readFieldEnd();
+      }
+      iprot.readStructEnd();
+
+      // check for required fields of primitive type, which can't be checked in the validate method
+      struct.validate();
+    }
+
+    public void write(org.apache.thrift.protocol.TProtocol oprot, RDF_REPEAT struct) throws org.apache.thrift.TException {
+      struct.validate();
+
+      oprot.writeStructBegin(STRUCT_DESC);
+      oprot.writeFieldStop();
+      oprot.writeStructEnd();
+    }
+
+  }
+
+  private static class RDF_REPEATTupleSchemeFactory implements SchemeFactory {
+    public RDF_REPEATTupleScheme getScheme() {
+      return new RDF_REPEATTupleScheme();
+    }
+  }
+
+  private static class RDF_REPEATTupleScheme extends TupleScheme<RDF_REPEAT> {
+
+    @Override
+    public void write(org.apache.thrift.protocol.TProtocol prot, RDF_REPEAT struct) throws org.apache.thrift.TException {
+      TTupleProtocol oprot = (TTupleProtocol) prot;
+    }
+
+    @Override
+    public void read(org.apache.thrift.protocol.TProtocol prot, RDF_REPEAT struct) throws org.apache.thrift.TException {
+      TTupleProtocol iprot = (TTupleProtocol) prot;
+    }
+  }
+
+}
+

Propchange: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/thrift/wire/RDF_REPEAT.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain