diff --git a/pom.xml b/pom.xml
index 3f88dc5..9e50126 100644
--- a/pom.xml
+++ b/pom.xml
@@ -108,7 +108,7 @@
org.apache.thrift
libthrift
- 0.21.0
+ 0.20.0
org.slf4j
diff --git a/src/main/java/it/cavallium/rockserver/core/common/api/ColumnHashType.java b/src/main/java/it/cavallium/rockserver/core/common/api/ColumnHashType.java
deleted file mode 100644
index c2d6321..0000000
--- a/src/main/java/it/cavallium/rockserver/core/common/api/ColumnHashType.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.20.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-package it.cavallium.rockserver.core.common.api;
-
-
-public enum ColumnHashType implements org.apache.thrift.TEnum {
- XXHASH32(1),
- XXHASH8(2),
- ALLSAME8(3);
-
- private final int value;
-
- private ColumnHashType(int value) {
- this.value = value;
- }
-
- /**
- * Get the integer value of this enum value, as defined in the Thrift IDL.
- */
- @Override
- public int getValue() {
- return value;
- }
-
- /**
- * Find a the enum type by its integer value, as defined in the Thrift IDL.
- * @return null if the value is not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static ColumnHashType findByValue(int value) {
- switch (value) {
- case 1:
- return XXHASH32;
- case 2:
- return XXHASH8;
- case 3:
- return ALLSAME8;
- default:
- return null;
- }
- }
-}
diff --git a/src/main/java/it/cavallium/rockserver/core/common/api/ColumnSchema.java b/src/main/java/it/cavallium/rockserver/core/common/api/ColumnSchema.java
deleted file mode 100644
index cc6c2d6..0000000
--- a/src/main/java/it/cavallium/rockserver/core/common/api/ColumnSchema.java
+++ /dev/null
@@ -1,701 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.20.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-package it.cavallium.rockserver.core.common.api;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-public class ColumnSchema implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ColumnSchema");
-
- private static final org.apache.thrift.protocol.TField FIXED_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("fixedKeys", org.apache.thrift.protocol.TType.LIST, (short)1);
- private static final org.apache.thrift.protocol.TField VARIABLE_TAIL_KEYS_FIELD_DESC = new org.apache.thrift.protocol.TField("variableTailKeys", org.apache.thrift.protocol.TType.LIST, (short)2);
- private static final org.apache.thrift.protocol.TField HAS_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("hasValue", org.apache.thrift.protocol.TType.BOOL, (short)3);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new ColumnSchemaStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new ColumnSchemaTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable java.util.List fixedKeys; // required
- public @org.apache.thrift.annotation.Nullable java.util.List variableTailKeys; // required
- public boolean hasValue; // 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 {
- FIXED_KEYS((short)1, "fixedKeys"),
- VARIABLE_TAIL_KEYS((short)2, "variableTailKeys"),
- HAS_VALUE((short)3, "hasValue");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // FIXED_KEYS
- return FIXED_KEYS;
- case 2: // VARIABLE_TAIL_KEYS
- return VARIABLE_TAIL_KEYS;
- case 3: // HAS_VALUE
- return HAS_VALUE;
- 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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- @Override
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- @Override
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- private static final int __HASVALUE_ISSET_ID = 0;
- private byte __isset_bitfield = 0;
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.FIXED_KEYS, new org.apache.thrift.meta_data.FieldMetaData("fixedKeys", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))));
- tmpMap.put(_Fields.VARIABLE_TAIL_KEYS, new org.apache.thrift.meta_data.FieldMetaData("variableTailKeys", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
- new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ColumnHashType.class))));
- tmpMap.put(_Fields.HAS_VALUE, new org.apache.thrift.meta_data.FieldMetaData("hasValue", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ColumnSchema.class, metaDataMap);
- }
-
- public ColumnSchema() {
- }
-
- public ColumnSchema(
- java.util.List fixedKeys,
- java.util.List variableTailKeys,
- boolean hasValue)
- {
- this();
- this.fixedKeys = fixedKeys;
- this.variableTailKeys = variableTailKeys;
- this.hasValue = hasValue;
- setHasValueIsSet(true);
- }
-
- /**
- * Performs a deep copy on other.
- */
- public ColumnSchema(ColumnSchema other) {
- __isset_bitfield = other.__isset_bitfield;
- if (other.isSetFixedKeys()) {
- java.util.List __this__fixedKeys = new java.util.ArrayList(other.fixedKeys);
- this.fixedKeys = __this__fixedKeys;
- }
- if (other.isSetVariableTailKeys()) {
- java.util.List __this__variableTailKeys = new java.util.ArrayList(other.variableTailKeys.size());
- for (ColumnHashType other_element : other.variableTailKeys) {
- __this__variableTailKeys.add(other_element);
- }
- this.variableTailKeys = __this__variableTailKeys;
- }
- this.hasValue = other.hasValue;
- }
-
- @Override
- public ColumnSchema deepCopy() {
- return new ColumnSchema(this);
- }
-
- @Override
- public void clear() {
- this.fixedKeys = null;
- this.variableTailKeys = null;
- setHasValueIsSet(false);
- this.hasValue = false;
- }
-
- public int getFixedKeysSize() {
- return (this.fixedKeys == null) ? 0 : this.fixedKeys.size();
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.util.Iterator getFixedKeysIterator() {
- return (this.fixedKeys == null) ? null : this.fixedKeys.iterator();
- }
-
- public void addToFixedKeys(int elem) {
- if (this.fixedKeys == null) {
- this.fixedKeys = new java.util.ArrayList();
- }
- this.fixedKeys.add(elem);
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.util.List getFixedKeys() {
- return this.fixedKeys;
- }
-
- public ColumnSchema setFixedKeys(@org.apache.thrift.annotation.Nullable java.util.List fixedKeys) {
- this.fixedKeys = fixedKeys;
- return this;
- }
-
- public void unsetFixedKeys() {
- this.fixedKeys = null;
- }
-
- /** Returns true if field fixedKeys is set (has been assigned a value) and false otherwise */
- public boolean isSetFixedKeys() {
- return this.fixedKeys != null;
- }
-
- public void setFixedKeysIsSet(boolean value) {
- if (!value) {
- this.fixedKeys = null;
- }
- }
-
- public int getVariableTailKeysSize() {
- return (this.variableTailKeys == null) ? 0 : this.variableTailKeys.size();
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.util.Iterator getVariableTailKeysIterator() {
- return (this.variableTailKeys == null) ? null : this.variableTailKeys.iterator();
- }
-
- public void addToVariableTailKeys(ColumnHashType elem) {
- if (this.variableTailKeys == null) {
- this.variableTailKeys = new java.util.ArrayList();
- }
- this.variableTailKeys.add(elem);
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.util.List getVariableTailKeys() {
- return this.variableTailKeys;
- }
-
- public ColumnSchema setVariableTailKeys(@org.apache.thrift.annotation.Nullable java.util.List variableTailKeys) {
- this.variableTailKeys = variableTailKeys;
- return this;
- }
-
- public void unsetVariableTailKeys() {
- this.variableTailKeys = null;
- }
-
- /** Returns true if field variableTailKeys is set (has been assigned a value) and false otherwise */
- public boolean isSetVariableTailKeys() {
- return this.variableTailKeys != null;
- }
-
- public void setVariableTailKeysIsSet(boolean value) {
- if (!value) {
- this.variableTailKeys = null;
- }
- }
-
- public boolean isHasValue() {
- return this.hasValue;
- }
-
- public ColumnSchema setHasValue(boolean hasValue) {
- this.hasValue = hasValue;
- setHasValueIsSet(true);
- return this;
- }
-
- public void unsetHasValue() {
- __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __HASVALUE_ISSET_ID);
- }
-
- /** Returns true if field hasValue is set (has been assigned a value) and false otherwise */
- public boolean isSetHasValue() {
- return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __HASVALUE_ISSET_ID);
- }
-
- public void setHasValueIsSet(boolean value) {
- __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __HASVALUE_ISSET_ID, value);
- }
-
- @Override
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case FIXED_KEYS:
- if (value == null) {
- unsetFixedKeys();
- } else {
- setFixedKeys((java.util.List)value);
- }
- break;
-
- case VARIABLE_TAIL_KEYS:
- if (value == null) {
- unsetVariableTailKeys();
- } else {
- setVariableTailKeys((java.util.List)value);
- }
- break;
-
- case HAS_VALUE:
- if (value == null) {
- unsetHasValue();
- } else {
- setHasValue((java.lang.Boolean)value);
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- @Override
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case FIXED_KEYS:
- return getFixedKeys();
-
- case VARIABLE_TAIL_KEYS:
- return getVariableTailKeys();
-
- case HAS_VALUE:
- return isHasValue();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- @Override
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case FIXED_KEYS:
- return isSetFixedKeys();
- case VARIABLE_TAIL_KEYS:
- return isSetVariableTailKeys();
- case HAS_VALUE:
- return isSetHasValue();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that instanceof ColumnSchema)
- return this.equals((ColumnSchema)that);
- return false;
- }
-
- public boolean equals(ColumnSchema that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_fixedKeys = true && this.isSetFixedKeys();
- boolean that_present_fixedKeys = true && that.isSetFixedKeys();
- if (this_present_fixedKeys || that_present_fixedKeys) {
- if (!(this_present_fixedKeys && that_present_fixedKeys))
- return false;
- if (!this.fixedKeys.equals(that.fixedKeys))
- return false;
- }
-
- boolean this_present_variableTailKeys = true && this.isSetVariableTailKeys();
- boolean that_present_variableTailKeys = true && that.isSetVariableTailKeys();
- if (this_present_variableTailKeys || that_present_variableTailKeys) {
- if (!(this_present_variableTailKeys && that_present_variableTailKeys))
- return false;
- if (!this.variableTailKeys.equals(that.variableTailKeys))
- return false;
- }
-
- boolean this_present_hasValue = true;
- boolean that_present_hasValue = true;
- if (this_present_hasValue || that_present_hasValue) {
- if (!(this_present_hasValue && that_present_hasValue))
- return false;
- if (this.hasValue != that.hasValue)
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetFixedKeys()) ? 131071 : 524287);
- if (isSetFixedKeys())
- hashCode = hashCode * 8191 + fixedKeys.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetVariableTailKeys()) ? 131071 : 524287);
- if (isSetVariableTailKeys())
- hashCode = hashCode * 8191 + variableTailKeys.hashCode();
-
- hashCode = hashCode * 8191 + ((hasValue) ? 131071 : 524287);
-
- return hashCode;
- }
-
- @Override
- public int compareTo(ColumnSchema other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.compare(isSetFixedKeys(), other.isSetFixedKeys());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetFixedKeys()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fixedKeys, other.fixedKeys);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.compare(isSetVariableTailKeys(), other.isSetVariableTailKeys());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetVariableTailKeys()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.variableTailKeys, other.variableTailKeys);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.compare(isSetHasValue(), other.isSetHasValue());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetHasValue()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasValue, other.hasValue);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- @Override
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("ColumnSchema(");
- boolean first = true;
-
- sb.append("fixedKeys:");
- if (this.fixedKeys == null) {
- sb.append("null");
- } else {
- sb.append(this.fixedKeys);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("variableTailKeys:");
- if (this.variableTailKeys == null) {
- sb.append("null");
- } else {
- sb.append(this.variableTailKeys);
- }
- first = false;
- if (!first) sb.append(", ");
- sb.append("hasValue:");
- sb.append(this.hasValue);
- first = false;
- 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, java.lang.ClassNotFoundException {
- try {
- // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bitfield = 0;
- 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 ColumnSchemaStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- @Override
- public ColumnSchemaStandardScheme getScheme() {
- return new ColumnSchemaStandardScheme();
- }
- }
-
- private static class ColumnSchemaStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnSchema 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: // FIXED_KEYS
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
- struct.fixedKeys = new java.util.ArrayList(_list0.size);
- int _elem1;
- for (int _i2 = 0; _i2 < _list0.size; ++_i2)
- {
- _elem1 = iprot.readI32();
- struct.fixedKeys.add(_elem1);
- }
- iprot.readListEnd();
- }
- struct.setFixedKeysIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // VARIABLE_TAIL_KEYS
- if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
- {
- org.apache.thrift.protocol.TList _list3 = iprot.readListBegin();
- struct.variableTailKeys = new java.util.ArrayList(_list3.size);
- @org.apache.thrift.annotation.Nullable ColumnHashType _elem4;
- for (int _i5 = 0; _i5 < _list3.size; ++_i5)
- {
- _elem4 = it.cavallium.rockserver.core.common.api.ColumnHashType.findByValue(iprot.readI32());
- if (_elem4 != null)
- {
- struct.variableTailKeys.add(_elem4);
- }
- }
- iprot.readListEnd();
- }
- struct.setVariableTailKeysIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 3: // HAS_VALUE
- if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
- struct.hasValue = iprot.readBool();
- struct.setHasValueIsSet(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();
- }
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol oprot, ColumnSchema struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.fixedKeys != null) {
- oprot.writeFieldBegin(FIXED_KEYS_FIELD_DESC);
- {
- oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.fixedKeys.size()));
- for (int _iter6 : struct.fixedKeys)
- {
- oprot.writeI32(_iter6);
- }
- oprot.writeListEnd();
- }
- oprot.writeFieldEnd();
- }
- if (struct.variableTailKeys != null) {
- oprot.writeFieldBegin(VARIABLE_TAIL_KEYS_FIELD_DESC);
- {
- oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.variableTailKeys.size()));
- for (ColumnHashType _iter7 : struct.variableTailKeys)
- {
- oprot.writeI32(_iter7.getValue());
- }
- oprot.writeListEnd();
- }
- oprot.writeFieldEnd();
- }
- oprot.writeFieldBegin(HAS_VALUE_FIELD_DESC);
- oprot.writeBool(struct.hasValue);
- oprot.writeFieldEnd();
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class ColumnSchemaTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- @Override
- public ColumnSchemaTupleScheme getScheme() {
- return new ColumnSchemaTupleScheme();
- }
- }
-
- private static class ColumnSchemaTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, ColumnSchema struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetFixedKeys()) {
- optionals.set(0);
- }
- if (struct.isSetVariableTailKeys()) {
- optionals.set(1);
- }
- if (struct.isSetHasValue()) {
- optionals.set(2);
- }
- oprot.writeBitSet(optionals, 3);
- if (struct.isSetFixedKeys()) {
- {
- oprot.writeI32(struct.fixedKeys.size());
- for (int _iter8 : struct.fixedKeys)
- {
- oprot.writeI32(_iter8);
- }
- }
- }
- if (struct.isSetVariableTailKeys()) {
- {
- oprot.writeI32(struct.variableTailKeys.size());
- for (ColumnHashType _iter9 : struct.variableTailKeys)
- {
- oprot.writeI32(_iter9.getValue());
- }
- }
- }
- if (struct.isSetHasValue()) {
- oprot.writeBool(struct.hasValue);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, ColumnSchema struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(3);
- if (incoming.get(0)) {
- {
- org.apache.thrift.protocol.TList _list10 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
- struct.fixedKeys = new java.util.ArrayList(_list10.size);
- int _elem11;
- for (int _i12 = 0; _i12 < _list10.size; ++_i12)
- {
- _elem11 = iprot.readI32();
- struct.fixedKeys.add(_elem11);
- }
- }
- struct.setFixedKeysIsSet(true);
- }
- if (incoming.get(1)) {
- {
- org.apache.thrift.protocol.TList _list13 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
- struct.variableTailKeys = new java.util.ArrayList(_list13.size);
- @org.apache.thrift.annotation.Nullable ColumnHashType _elem14;
- for (int _i15 = 0; _i15 < _list13.size; ++_i15)
- {
- _elem14 = it.cavallium.rockserver.core.common.api.ColumnHashType.findByValue(iprot.readI32());
- if (_elem14 != null)
- {
- struct.variableTailKeys.add(_elem14);
- }
- }
- }
- struct.setVariableTailKeysIsSet(true);
- }
- if (incoming.get(2)) {
- struct.hasValue = iprot.readBool();
- struct.setHasValueIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
-}
-
diff --git a/src/main/java/it/cavallium/rockserver/core/common/api/Delta.java b/src/main/java/it/cavallium/rockserver/core/common/api/Delta.java
deleted file mode 100644
index 1dbcdb6..0000000
--- a/src/main/java/it/cavallium/rockserver/core/common/api/Delta.java
+++ /dev/null
@@ -1,518 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.20.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-package it.cavallium.rockserver.core.common.api;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-public class Delta implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Delta");
-
- private static final org.apache.thrift.protocol.TField PREVIOUS_FIELD_DESC = new org.apache.thrift.protocol.TField("previous", org.apache.thrift.protocol.TType.STRING, (short)1);
- private static final org.apache.thrift.protocol.TField CURRENT_FIELD_DESC = new org.apache.thrift.protocol.TField("current", org.apache.thrift.protocol.TType.STRING, (short)2);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new DeltaStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new DeltaTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer previous; // optional
- public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer current; // 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 {
- PREVIOUS((short)1, "previous"),
- CURRENT((short)2, "current");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // PREVIOUS
- return PREVIOUS;
- case 2: // CURRENT
- return CURRENT;
- 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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- @Override
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- @Override
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- private static final _Fields optionals[] = {_Fields.PREVIOUS,_Fields.CURRENT};
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.PREVIOUS, new org.apache.thrift.meta_data.FieldMetaData("previous", org.apache.thrift.TFieldRequirementType.OPTIONAL,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
- tmpMap.put(_Fields.CURRENT, new org.apache.thrift.meta_data.FieldMetaData("current", org.apache.thrift.TFieldRequirementType.OPTIONAL,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Delta.class, metaDataMap);
- }
-
- public Delta() {
- }
-
- /**
- * Performs a deep copy on other.
- */
- public Delta(Delta other) {
- if (other.isSetPrevious()) {
- this.previous = org.apache.thrift.TBaseHelper.copyBinary(other.previous);
- }
- if (other.isSetCurrent()) {
- this.current = org.apache.thrift.TBaseHelper.copyBinary(other.current);
- }
- }
-
- @Override
- public Delta deepCopy() {
- return new Delta(this);
- }
-
- @Override
- public void clear() {
- this.previous = null;
- this.current = null;
- }
-
- public byte[] getPrevious() {
- setPrevious(org.apache.thrift.TBaseHelper.rightSize(previous));
- return previous == null ? null : previous.array();
- }
-
- public java.nio.ByteBuffer bufferForPrevious() {
- return org.apache.thrift.TBaseHelper.copyBinary(previous);
- }
-
- public Delta setPrevious(byte[] previous) {
- this.previous = previous == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(previous.clone());
- return this;
- }
-
- public Delta setPrevious(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer previous) {
- this.previous = org.apache.thrift.TBaseHelper.copyBinary(previous);
- return this;
- }
-
- public void unsetPrevious() {
- this.previous = null;
- }
-
- /** Returns true if field previous is set (has been assigned a value) and false otherwise */
- public boolean isSetPrevious() {
- return this.previous != null;
- }
-
- public void setPreviousIsSet(boolean value) {
- if (!value) {
- this.previous = null;
- }
- }
-
- public byte[] getCurrent() {
- setCurrent(org.apache.thrift.TBaseHelper.rightSize(current));
- return current == null ? null : current.array();
- }
-
- public java.nio.ByteBuffer bufferForCurrent() {
- return org.apache.thrift.TBaseHelper.copyBinary(current);
- }
-
- public Delta setCurrent(byte[] current) {
- this.current = current == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(current.clone());
- return this;
- }
-
- public Delta setCurrent(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer current) {
- this.current = org.apache.thrift.TBaseHelper.copyBinary(current);
- return this;
- }
-
- public void unsetCurrent() {
- this.current = null;
- }
-
- /** Returns true if field current is set (has been assigned a value) and false otherwise */
- public boolean isSetCurrent() {
- return this.current != null;
- }
-
- public void setCurrentIsSet(boolean value) {
- if (!value) {
- this.current = null;
- }
- }
-
- @Override
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case PREVIOUS:
- if (value == null) {
- unsetPrevious();
- } else {
- if (value instanceof byte[]) {
- setPrevious((byte[])value);
- } else {
- setPrevious((java.nio.ByteBuffer)value);
- }
- }
- break;
-
- case CURRENT:
- if (value == null) {
- unsetCurrent();
- } else {
- if (value instanceof byte[]) {
- setCurrent((byte[])value);
- } else {
- setCurrent((java.nio.ByteBuffer)value);
- }
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- @Override
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case PREVIOUS:
- return getPrevious();
-
- case CURRENT:
- return getCurrent();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- @Override
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case PREVIOUS:
- return isSetPrevious();
- case CURRENT:
- return isSetCurrent();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that instanceof Delta)
- return this.equals((Delta)that);
- return false;
- }
-
- public boolean equals(Delta that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_previous = true && this.isSetPrevious();
- boolean that_present_previous = true && that.isSetPrevious();
- if (this_present_previous || that_present_previous) {
- if (!(this_present_previous && that_present_previous))
- return false;
- if (!this.previous.equals(that.previous))
- return false;
- }
-
- boolean this_present_current = true && this.isSetCurrent();
- boolean that_present_current = true && that.isSetCurrent();
- if (this_present_current || that_present_current) {
- if (!(this_present_current && that_present_current))
- return false;
- if (!this.current.equals(that.current))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetPrevious()) ? 131071 : 524287);
- if (isSetPrevious())
- hashCode = hashCode * 8191 + previous.hashCode();
-
- hashCode = hashCode * 8191 + ((isSetCurrent()) ? 131071 : 524287);
- if (isSetCurrent())
- hashCode = hashCode * 8191 + current.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(Delta other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.compare(isSetPrevious(), other.isSetPrevious());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetPrevious()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.previous, other.previous);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.compare(isSetCurrent(), other.isSetCurrent());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetCurrent()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.current, other.current);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- @Override
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("Delta(");
- boolean first = true;
-
- if (isSetPrevious()) {
- sb.append("previous:");
- if (this.previous == null) {
- sb.append("null");
- } else {
- org.apache.thrift.TBaseHelper.toString(this.previous, sb);
- }
- first = false;
- }
- if (isSetCurrent()) {
- if (!first) sb.append(", ");
- sb.append("current:");
- if (this.current == null) {
- sb.append("null");
- } else {
- org.apache.thrift.TBaseHelper.toString(this.current, sb);
- }
- first = false;
- }
- 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, java.lang.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 DeltaStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- @Override
- public DeltaStandardScheme getScheme() {
- return new DeltaStandardScheme();
- }
- }
-
- private static class DeltaStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol iprot, Delta 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: // PREVIOUS
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.previous = iprot.readBinary();
- struct.setPreviousIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // CURRENT
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.current = iprot.readBinary();
- struct.setCurrentIsSet(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();
- }
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol oprot, Delta struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.previous != null) {
- if (struct.isSetPrevious()) {
- oprot.writeFieldBegin(PREVIOUS_FIELD_DESC);
- oprot.writeBinary(struct.previous);
- oprot.writeFieldEnd();
- }
- }
- if (struct.current != null) {
- if (struct.isSetCurrent()) {
- oprot.writeFieldBegin(CURRENT_FIELD_DESC);
- oprot.writeBinary(struct.current);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class DeltaTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- @Override
- public DeltaTupleScheme getScheme() {
- return new DeltaTupleScheme();
- }
- }
-
- private static class DeltaTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, Delta struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetPrevious()) {
- optionals.set(0);
- }
- if (struct.isSetCurrent()) {
- optionals.set(1);
- }
- oprot.writeBitSet(optionals, 2);
- if (struct.isSetPrevious()) {
- oprot.writeBinary(struct.previous);
- }
- if (struct.isSetCurrent()) {
- oprot.writeBinary(struct.current);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, Delta struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(2);
- if (incoming.get(0)) {
- struct.previous = iprot.readBinary();
- struct.setPreviousIsSet(true);
- }
- if (incoming.get(1)) {
- struct.current = iprot.readBinary();
- struct.setCurrentIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
-}
-
diff --git a/src/main/java/it/cavallium/rockserver/core/common/api/InvalidOperation.java b/src/main/java/it/cavallium/rockserver/core/common/api/InvalidOperation.java
deleted file mode 100644
index 3dee648..0000000
--- a/src/main/java/it/cavallium/rockserver/core/common/api/InvalidOperation.java
+++ /dev/null
@@ -1,490 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.19.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-package it.cavallium.rockserver.core.common.api;
-
-/**
- * Structs can also be exceptions, if they are nasty.
- */
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-public class InvalidOperation extends org.apache.thrift.TException implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("InvalidOperation");
-
- private static final org.apache.thrift.protocol.TField WHAT_OP_FIELD_DESC = new org.apache.thrift.protocol.TField("whatOp", org.apache.thrift.protocol.TType.I32, (short)1);
- private static final org.apache.thrift.protocol.TField WHY_FIELD_DESC = new org.apache.thrift.protocol.TField("why", org.apache.thrift.protocol.TType.STRING, (short)2);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new InvalidOperationStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new InvalidOperationTupleSchemeFactory();
-
- public int whatOp; // required
- public @org.apache.thrift.annotation.Nullable java.lang.String why; // 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 {
- WHAT_OP((short)1, "whatOp"),
- WHY((short)2, "why");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // WHAT_OP
- return WHAT_OP;
- case 2: // WHY
- return WHY;
- 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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- @Override
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- @Override
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- private static final int __WHATOP_ISSET_ID = 0;
- private byte __isset_bitfield = 0;
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.WHAT_OP, new org.apache.thrift.meta_data.FieldMetaData("whatOp", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
- tmpMap.put(_Fields.WHY, new org.apache.thrift.meta_data.FieldMetaData("why", org.apache.thrift.TFieldRequirementType.DEFAULT,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InvalidOperation.class, metaDataMap);
- }
-
- public InvalidOperation() {
- }
-
- public InvalidOperation(
- int whatOp,
- java.lang.String why)
- {
- this();
- this.whatOp = whatOp;
- setWhatOpIsSet(true);
- this.why = why;
- }
-
- /**
- * Performs a deep copy on other.
- */
- public InvalidOperation(InvalidOperation other) {
- __isset_bitfield = other.__isset_bitfield;
- this.whatOp = other.whatOp;
- if (other.isSetWhy()) {
- this.why = other.why;
- }
- }
-
- @Override
- public InvalidOperation deepCopy() {
- return new InvalidOperation(this);
- }
-
- @Override
- public void clear() {
- setWhatOpIsSet(false);
- this.whatOp = 0;
- this.why = null;
- }
-
- public int getWhatOp() {
- return this.whatOp;
- }
-
- public InvalidOperation setWhatOp(int whatOp) {
- this.whatOp = whatOp;
- setWhatOpIsSet(true);
- return this;
- }
-
- public void unsetWhatOp() {
- __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __WHATOP_ISSET_ID);
- }
-
- /** Returns true if field whatOp is set (has been assigned a value) and false otherwise */
- public boolean isSetWhatOp() {
- return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __WHATOP_ISSET_ID);
- }
-
- public void setWhatOpIsSet(boolean value) {
- __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __WHATOP_ISSET_ID, value);
- }
-
- @org.apache.thrift.annotation.Nullable
- public java.lang.String getWhy() {
- return this.why;
- }
-
- public InvalidOperation setWhy(@org.apache.thrift.annotation.Nullable java.lang.String why) {
- this.why = why;
- return this;
- }
-
- public void unsetWhy() {
- this.why = null;
- }
-
- /** Returns true if field why is set (has been assigned a value) and false otherwise */
- public boolean isSetWhy() {
- return this.why != null;
- }
-
- public void setWhyIsSet(boolean value) {
- if (!value) {
- this.why = null;
- }
- }
-
- @Override
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case WHAT_OP:
- if (value == null) {
- unsetWhatOp();
- } else {
- setWhatOp((java.lang.Integer)value);
- }
- break;
-
- case WHY:
- if (value == null) {
- unsetWhy();
- } else {
- setWhy((java.lang.String)value);
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- @Override
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case WHAT_OP:
- return getWhatOp();
-
- case WHY:
- return getWhy();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- @Override
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case WHAT_OP:
- return isSetWhatOp();
- case WHY:
- return isSetWhy();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that instanceof InvalidOperation)
- return this.equals((InvalidOperation)that);
- return false;
- }
-
- public boolean equals(InvalidOperation that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_whatOp = true;
- boolean that_present_whatOp = true;
- if (this_present_whatOp || that_present_whatOp) {
- if (!(this_present_whatOp && that_present_whatOp))
- return false;
- if (this.whatOp != that.whatOp)
- return false;
- }
-
- boolean this_present_why = true && this.isSetWhy();
- boolean that_present_why = true && that.isSetWhy();
- if (this_present_why || that_present_why) {
- if (!(this_present_why && that_present_why))
- return false;
- if (!this.why.equals(that.why))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + whatOp;
-
- hashCode = hashCode * 8191 + ((isSetWhy()) ? 131071 : 524287);
- if (isSetWhy())
- hashCode = hashCode * 8191 + why.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(InvalidOperation other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.compare(isSetWhatOp(), other.isSetWhatOp());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetWhatOp()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.whatOp, other.whatOp);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- lastComparison = java.lang.Boolean.compare(isSetWhy(), other.isSetWhy());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetWhy()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.why, other.why);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- @Override
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("InvalidOperation(");
- boolean first = true;
-
- sb.append("whatOp:");
- sb.append(this.whatOp);
- first = false;
- if (!first) sb.append(", ");
- sb.append("why:");
- if (this.why == null) {
- sb.append("null");
- } else {
- sb.append(this.why);
- }
- first = false;
- 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, java.lang.ClassNotFoundException {
- try {
- // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
- __isset_bitfield = 0;
- 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 InvalidOperationStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- @Override
- public InvalidOperationStandardScheme getScheme() {
- return new InvalidOperationStandardScheme();
- }
- }
-
- private static class InvalidOperationStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol iprot, InvalidOperation 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: // WHAT_OP
- if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
- struct.whatOp = iprot.readI32();
- struct.setWhatOpIsSet(true);
- } else {
- org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
- }
- break;
- case 2: // WHY
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.why = iprot.readString();
- struct.setWhyIsSet(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();
- }
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol oprot, InvalidOperation struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- oprot.writeFieldBegin(WHAT_OP_FIELD_DESC);
- oprot.writeI32(struct.whatOp);
- oprot.writeFieldEnd();
- if (struct.why != null) {
- oprot.writeFieldBegin(WHY_FIELD_DESC);
- oprot.writeString(struct.why);
- oprot.writeFieldEnd();
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class InvalidOperationTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- @Override
- public InvalidOperationTupleScheme getScheme() {
- return new InvalidOperationTupleScheme();
- }
- }
-
- private static class InvalidOperationTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, InvalidOperation struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetWhatOp()) {
- optionals.set(0);
- }
- if (struct.isSetWhy()) {
- optionals.set(1);
- }
- oprot.writeBitSet(optionals, 2);
- if (struct.isSetWhatOp()) {
- oprot.writeI32(struct.whatOp);
- }
- if (struct.isSetWhy()) {
- oprot.writeString(struct.why);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, InvalidOperation struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(2);
- if (incoming.get(0)) {
- struct.whatOp = iprot.readI32();
- struct.setWhatOpIsSet(true);
- }
- if (incoming.get(1)) {
- struct.why = iprot.readString();
- struct.setWhyIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
-}
-
diff --git a/src/main/java/it/cavallium/rockserver/core/common/api/Operation.java b/src/main/java/it/cavallium/rockserver/core/common/api/Operation.java
deleted file mode 100644
index 60e6de6..0000000
--- a/src/main/java/it/cavallium/rockserver/core/common/api/Operation.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.20.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-package it.cavallium.rockserver.core.common.api;
-
-
-public enum Operation implements org.apache.thrift.TEnum {
- NOTHING(1),
- PREVIOUS(2),
- CURRENT(3),
- FOR_UPDATE(4),
- EXISTS(5),
- DELTA(6),
- MULTI(7),
- CHANGED(8),
- PREVIOUS_PRESENCE(9);
-
- private final int value;
-
- private Operation(int value) {
- this.value = value;
- }
-
- /**
- * Get the integer value of this enum value, as defined in the Thrift IDL.
- */
- @Override
- public int getValue() {
- return value;
- }
-
- /**
- * Find a the enum type by its integer value, as defined in the Thrift IDL.
- * @return null if the value is not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static Operation findByValue(int value) {
- switch (value) {
- case 1:
- return NOTHING;
- case 2:
- return PREVIOUS;
- case 3:
- return CURRENT;
- case 4:
- return FOR_UPDATE;
- case 5:
- return EXISTS;
- case 6:
- return DELTA;
- case 7:
- return MULTI;
- case 8:
- return CHANGED;
- case 9:
- return PREVIOUS_PRESENCE;
- default:
- return null;
- }
- }
-}
diff --git a/src/main/java/it/cavallium/rockserver/core/common/api/OptionalBinary.java b/src/main/java/it/cavallium/rockserver/core/common/api/OptionalBinary.java
deleted file mode 100644
index b90b55a..0000000
--- a/src/main/java/it/cavallium/rockserver/core/common/api/OptionalBinary.java
+++ /dev/null
@@ -1,398 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.20.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-package it.cavallium.rockserver.core.common.api;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-public class OptionalBinary implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
- private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("OptionalBinary");
-
- private static final org.apache.thrift.protocol.TField VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("value", org.apache.thrift.protocol.TType.STRING, (short)1);
-
- private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new OptionalBinaryStandardSchemeFactory();
- private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new OptionalBinaryTupleSchemeFactory();
-
- public @org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value; // 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 {
- VALUE((short)1, "value");
-
- private static final java.util.Map byName = new java.util.HashMap();
-
- static {
- for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
- byName.put(field.getFieldName(), field);
- }
- }
-
- /**
- * Find the _Fields constant that matches fieldId, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByThriftId(int fieldId) {
- switch(fieldId) {
- case 1: // VALUE
- return VALUE;
- 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 java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
- return fields;
- }
-
- /**
- * Find the _Fields constant that matches name, or null if its not found.
- */
- @org.apache.thrift.annotation.Nullable
- public static _Fields findByName(java.lang.String name) {
- return byName.get(name);
- }
-
- private final short _thriftId;
- private final java.lang.String _fieldName;
-
- _Fields(short thriftId, java.lang.String fieldName) {
- _thriftId = thriftId;
- _fieldName = fieldName;
- }
-
- @Override
- public short getThriftFieldId() {
- return _thriftId;
- }
-
- @Override
- public java.lang.String getFieldName() {
- return _fieldName;
- }
- }
-
- // isset id assignments
- private static final _Fields optionals[] = {_Fields.VALUE};
- public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
- static {
- java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
- tmpMap.put(_Fields.VALUE, new org.apache.thrift.meta_data.FieldMetaData("value", org.apache.thrift.TFieldRequirementType.OPTIONAL,
- new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)));
- metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
- org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(OptionalBinary.class, metaDataMap);
- }
-
- public OptionalBinary() {
- }
-
- /**
- * Performs a deep copy on other.
- */
- public OptionalBinary(OptionalBinary other) {
- if (other.isSetValue()) {
- this.value = org.apache.thrift.TBaseHelper.copyBinary(other.value);
- }
- }
-
- @Override
- public OptionalBinary deepCopy() {
- return new OptionalBinary(this);
- }
-
- @Override
- public void clear() {
- this.value = null;
- }
-
- public byte[] getValue() {
- setValue(org.apache.thrift.TBaseHelper.rightSize(value));
- return value == null ? null : value.array();
- }
-
- public java.nio.ByteBuffer bufferForValue() {
- return org.apache.thrift.TBaseHelper.copyBinary(value);
- }
-
- public OptionalBinary setValue(byte[] value) {
- this.value = value == null ? (java.nio.ByteBuffer)null : java.nio.ByteBuffer.wrap(value.clone());
- return this;
- }
-
- public OptionalBinary setValue(@org.apache.thrift.annotation.Nullable java.nio.ByteBuffer value) {
- this.value = org.apache.thrift.TBaseHelper.copyBinary(value);
- return this;
- }
-
- public void unsetValue() {
- this.value = null;
- }
-
- /** Returns true if field value is set (has been assigned a value) and false otherwise */
- public boolean isSetValue() {
- return this.value != null;
- }
-
- public void setValueIsSet(boolean value) {
- if (!value) {
- this.value = null;
- }
- }
-
- @Override
- public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
- switch (field) {
- case VALUE:
- if (value == null) {
- unsetValue();
- } else {
- if (value instanceof byte[]) {
- setValue((byte[])value);
- } else {
- setValue((java.nio.ByteBuffer)value);
- }
- }
- break;
-
- }
- }
-
- @org.apache.thrift.annotation.Nullable
- @Override
- public java.lang.Object getFieldValue(_Fields field) {
- switch (field) {
- case VALUE:
- return getValue();
-
- }
- throw new java.lang.IllegalStateException();
- }
-
- /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
- @Override
- public boolean isSet(_Fields field) {
- if (field == null) {
- throw new java.lang.IllegalArgumentException();
- }
-
- switch (field) {
- case VALUE:
- return isSetValue();
- }
- throw new java.lang.IllegalStateException();
- }
-
- @Override
- public boolean equals(java.lang.Object that) {
- if (that instanceof OptionalBinary)
- return this.equals((OptionalBinary)that);
- return false;
- }
-
- public boolean equals(OptionalBinary that) {
- if (that == null)
- return false;
- if (this == that)
- return true;
-
- boolean this_present_value = true && this.isSetValue();
- boolean that_present_value = true && that.isSetValue();
- if (this_present_value || that_present_value) {
- if (!(this_present_value && that_present_value))
- return false;
- if (!this.value.equals(that.value))
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int hashCode = 1;
-
- hashCode = hashCode * 8191 + ((isSetValue()) ? 131071 : 524287);
- if (isSetValue())
- hashCode = hashCode * 8191 + value.hashCode();
-
- return hashCode;
- }
-
- @Override
- public int compareTo(OptionalBinary other) {
- if (!getClass().equals(other.getClass())) {
- return getClass().getName().compareTo(other.getClass().getName());
- }
-
- int lastComparison = 0;
-
- lastComparison = java.lang.Boolean.compare(isSetValue(), other.isSetValue());
- if (lastComparison != 0) {
- return lastComparison;
- }
- if (isSetValue()) {
- lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.value, other.value);
- if (lastComparison != 0) {
- return lastComparison;
- }
- }
- return 0;
- }
-
- @org.apache.thrift.annotation.Nullable
- @Override
- public _Fields fieldForId(int fieldId) {
- return _Fields.findByThriftId(fieldId);
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
- scheme(iprot).read(iprot, this);
- }
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
- scheme(oprot).write(oprot, this);
- }
-
- @Override
- public java.lang.String toString() {
- java.lang.StringBuilder sb = new java.lang.StringBuilder("OptionalBinary(");
- boolean first = true;
-
- if (isSetValue()) {
- sb.append("value:");
- if (this.value == null) {
- sb.append("null");
- } else {
- org.apache.thrift.TBaseHelper.toString(this.value, sb);
- }
- first = false;
- }
- 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, java.lang.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 OptionalBinaryStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- @Override
- public OptionalBinaryStandardScheme getScheme() {
- return new OptionalBinaryStandardScheme();
- }
- }
-
- private static class OptionalBinaryStandardScheme extends org.apache.thrift.scheme.StandardScheme {
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol iprot, OptionalBinary 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: // VALUE
- if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
- struct.value = iprot.readBinary();
- struct.setValueIsSet(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();
- }
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol oprot, OptionalBinary struct) throws org.apache.thrift.TException {
- struct.validate();
-
- oprot.writeStructBegin(STRUCT_DESC);
- if (struct.value != null) {
- if (struct.isSetValue()) {
- oprot.writeFieldBegin(VALUE_FIELD_DESC);
- oprot.writeBinary(struct.value);
- oprot.writeFieldEnd();
- }
- }
- oprot.writeFieldStop();
- oprot.writeStructEnd();
- }
-
- }
-
- private static class OptionalBinaryTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
- @Override
- public OptionalBinaryTupleScheme getScheme() {
- return new OptionalBinaryTupleScheme();
- }
- }
-
- private static class OptionalBinaryTupleScheme extends org.apache.thrift.scheme.TupleScheme {
-
- @Override
- public void write(org.apache.thrift.protocol.TProtocol prot, OptionalBinary struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet optionals = new java.util.BitSet();
- if (struct.isSetValue()) {
- optionals.set(0);
- }
- oprot.writeBitSet(optionals, 1);
- if (struct.isSetValue()) {
- oprot.writeBinary(struct.value);
- }
- }
-
- @Override
- public void read(org.apache.thrift.protocol.TProtocol prot, OptionalBinary struct) throws org.apache.thrift.TException {
- org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
- java.util.BitSet incoming = iprot.readBitSet(1);
- if (incoming.get(0)) {
- struct.value = iprot.readBinary();
- struct.setValueIsSet(true);
- }
- }
- }
-
- private static S scheme(org.apache.thrift.protocol.TProtocol proto) {
- return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
- }
-}
-
diff --git a/src/main/java/it/cavallium/rockserver/core/common/api/RocksDB.java b/src/main/java/it/cavallium/rockserver/core/common/api/RocksDB.java
deleted file mode 100644
index f84e4e3..0000000
--- a/src/main/java/it/cavallium/rockserver/core/common/api/RocksDB.java
+++ /dev/null
@@ -1,23844 +0,0 @@
-/**
- * Autogenerated by Thrift Compiler (0.20.0)
- *
- * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
- * @generated
- */
-package it.cavallium.rockserver.core.common.api;
-
-@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
-public class RocksDB {
-
- public interface Iface {
-
- public long openTransaction(long timeoutMs) throws org.apache.thrift.TException;
-
- public boolean closeTransaction(long transactionId, boolean commit) throws org.apache.thrift.TException;
-
- public void closeFailedUpdate(long updateId) throws org.apache.thrift.TException;
-
- public long createColumn(java.lang.String name, ColumnSchema schema) throws org.apache.thrift.TException;
-
- public void deleteColumn(long columnId) throws org.apache.thrift.TException;
-
- public long getColumnId(java.lang.String name) throws org.apache.thrift.TException;
-
- public void putFast(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException;
-
- public void put(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException;
-
- public void putMulti(long transactionOrUpdateId, long columnId, java.util.List> keysMulti, java.util.List valueMulti) throws org.apache.thrift.TException;
-
- public OptionalBinary putGetPrevious(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException;
-
- public Delta putGetDelta(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException;
-
- public boolean putGetChanged(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException;
-
- public boolean putGetPreviousPresence(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException;
-
- public OptionalBinary get(long transactionOrUpdateId, long columnId, java.util.List keys) throws org.apache.thrift.TException;
-
- public UpdateBegin getForUpdate(long transactionOrUpdateId, long columnId, java.util.List keys) throws org.apache.thrift.TException;
-
- public boolean exists(long transactionOrUpdateId, long columnId, java.util.List keys) throws org.apache.thrift.TException;
-
- public long openIterator(long transactionId, long columnId, java.util.List startKeysInclusive, java.util.List endKeysExclusive, boolean reverse, long timeoutMs) throws org.apache.thrift.TException;
-
- public void closeIterator(long iteratorId) throws org.apache.thrift.TException;
-
- public void seekTo(long iterationId, java.util.List keys) throws org.apache.thrift.TException;
-
- public void subsequent(long iterationId, long skipCount, long takeCount) throws org.apache.thrift.TException;
-
- public boolean subsequentExists(long iterationId, long skipCount, long takeCount) throws org.apache.thrift.TException;
-
- public java.util.List subsequentMultiGet(long iterationId, long skipCount, long takeCount) throws org.apache.thrift.TException;
-
- }
-
- public interface AsyncIface {
-
- public void openTransaction(long timeoutMs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void closeTransaction(long transactionId, boolean commit, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void closeFailedUpdate(long updateId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void createColumn(java.lang.String name, ColumnSchema schema, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void deleteColumn(long columnId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void getColumnId(java.lang.String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void putFast(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void put(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void putMulti(long transactionOrUpdateId, long columnId, java.util.List> keysMulti, java.util.List valueMulti, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void putGetPrevious(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void putGetDelta(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void putGetChanged(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void putGetPreviousPresence(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void get(long transactionOrUpdateId, long columnId, java.util.List keys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void getForUpdate(long transactionOrUpdateId, long columnId, java.util.List keys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void exists(long transactionOrUpdateId, long columnId, java.util.List keys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void openIterator(long transactionId, long columnId, java.util.List startKeysInclusive, java.util.List endKeysExclusive, boolean reverse, long timeoutMs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void closeIterator(long iteratorId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void seekTo(long iterationId, java.util.List keys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void subsequent(long iterationId, long skipCount, long takeCount, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void subsequentExists(long iterationId, long skipCount, long takeCount, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
-
- public void subsequentMultiGet(long iterationId, long skipCount, long takeCount, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException;
-
- }
-
- public static class Client extends org.apache.thrift.TServiceClient implements Iface {
- public static class Factory implements org.apache.thrift.TServiceClientFactory {
- public Factory() {}
- @Override
- public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
- return new Client(prot);
- }
- @Override
- public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
- return new Client(iprot, oprot);
- }
- }
-
- public Client(org.apache.thrift.protocol.TProtocol prot)
- {
- super(prot, prot);
- }
-
- public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
- super(iprot, oprot);
- }
-
- @Override
- public long openTransaction(long timeoutMs) throws org.apache.thrift.TException
- {
- send_openTransaction(timeoutMs);
- return recv_openTransaction();
- }
-
- public void send_openTransaction(long timeoutMs) throws org.apache.thrift.TException
- {
- openTransaction_args args = new openTransaction_args();
- args.setTimeoutMs(timeoutMs);
- sendBase("openTransaction", args);
- }
-
- public long recv_openTransaction() throws org.apache.thrift.TException
- {
- openTransaction_result result = new openTransaction_result();
- receiveBase(result, "openTransaction");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "openTransaction failed: unknown result");
- }
-
- @Override
- public boolean closeTransaction(long transactionId, boolean commit) throws org.apache.thrift.TException
- {
- send_closeTransaction(transactionId, commit);
- return recv_closeTransaction();
- }
-
- public void send_closeTransaction(long transactionId, boolean commit) throws org.apache.thrift.TException
- {
- closeTransaction_args args = new closeTransaction_args();
- args.setTransactionId(transactionId);
- args.setCommit(commit);
- sendBase("closeTransaction", args);
- }
-
- public boolean recv_closeTransaction() throws org.apache.thrift.TException
- {
- closeTransaction_result result = new closeTransaction_result();
- receiveBase(result, "closeTransaction");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "closeTransaction failed: unknown result");
- }
-
- @Override
- public void closeFailedUpdate(long updateId) throws org.apache.thrift.TException
- {
- send_closeFailedUpdate(updateId);
- recv_closeFailedUpdate();
- }
-
- public void send_closeFailedUpdate(long updateId) throws org.apache.thrift.TException
- {
- closeFailedUpdate_args args = new closeFailedUpdate_args();
- args.setUpdateId(updateId);
- sendBase("closeFailedUpdate", args);
- }
-
- public void recv_closeFailedUpdate() throws org.apache.thrift.TException
- {
- closeFailedUpdate_result result = new closeFailedUpdate_result();
- receiveBase(result, "closeFailedUpdate");
- return;
- }
-
- @Override
- public long createColumn(java.lang.String name, ColumnSchema schema) throws org.apache.thrift.TException
- {
- send_createColumn(name, schema);
- return recv_createColumn();
- }
-
- public void send_createColumn(java.lang.String name, ColumnSchema schema) throws org.apache.thrift.TException
- {
- createColumn_args args = new createColumn_args();
- args.setName(name);
- args.setSchema(schema);
- sendBase("createColumn", args);
- }
-
- public long recv_createColumn() throws org.apache.thrift.TException
- {
- createColumn_result result = new createColumn_result();
- receiveBase(result, "createColumn");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createColumn failed: unknown result");
- }
-
- @Override
- public void deleteColumn(long columnId) throws org.apache.thrift.TException
- {
- send_deleteColumn(columnId);
- recv_deleteColumn();
- }
-
- public void send_deleteColumn(long columnId) throws org.apache.thrift.TException
- {
- deleteColumn_args args = new deleteColumn_args();
- args.setColumnId(columnId);
- sendBase("deleteColumn", args);
- }
-
- public void recv_deleteColumn() throws org.apache.thrift.TException
- {
- deleteColumn_result result = new deleteColumn_result();
- receiveBase(result, "deleteColumn");
- return;
- }
-
- @Override
- public long getColumnId(java.lang.String name) throws org.apache.thrift.TException
- {
- send_getColumnId(name);
- return recv_getColumnId();
- }
-
- public void send_getColumnId(java.lang.String name) throws org.apache.thrift.TException
- {
- getColumnId_args args = new getColumnId_args();
- args.setName(name);
- sendBase("getColumnId", args);
- }
-
- public long recv_getColumnId() throws org.apache.thrift.TException
- {
- getColumnId_result result = new getColumnId_result();
- receiveBase(result, "getColumnId");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getColumnId failed: unknown result");
- }
-
- @Override
- public void putFast(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException
- {
- send_putFast(transactionOrUpdateId, columnId, keys, value);
- }
-
- public void send_putFast(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException
- {
- putFast_args args = new putFast_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.setValue(value);
- sendBaseOneway("putFast", args);
- }
-
- @Override
- public void put(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException
- {
- send_put(transactionOrUpdateId, columnId, keys, value);
- recv_put();
- }
-
- public void send_put(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException
- {
- put_args args = new put_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.setValue(value);
- sendBase("put", args);
- }
-
- public void recv_put() throws org.apache.thrift.TException
- {
- put_result result = new put_result();
- receiveBase(result, "put");
- return;
- }
-
- @Override
- public void putMulti(long transactionOrUpdateId, long columnId, java.util.List> keysMulti, java.util.List valueMulti) throws org.apache.thrift.TException
- {
- send_putMulti(transactionOrUpdateId, columnId, keysMulti, valueMulti);
- recv_putMulti();
- }
-
- public void send_putMulti(long transactionOrUpdateId, long columnId, java.util.List> keysMulti, java.util.List valueMulti) throws org.apache.thrift.TException
- {
- putMulti_args args = new putMulti_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeysMulti(keysMulti);
- args.setValueMulti(valueMulti);
- sendBase("putMulti", args);
- }
-
- public void recv_putMulti() throws org.apache.thrift.TException
- {
- putMulti_result result = new putMulti_result();
- receiveBase(result, "putMulti");
- return;
- }
-
- @Override
- public OptionalBinary putGetPrevious(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException
- {
- send_putGetPrevious(transactionOrUpdateId, columnId, keys, value);
- return recv_putGetPrevious();
- }
-
- public void send_putGetPrevious(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException
- {
- putGetPrevious_args args = new putGetPrevious_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.setValue(value);
- sendBase("putGetPrevious", args);
- }
-
- public OptionalBinary recv_putGetPrevious() throws org.apache.thrift.TException
- {
- putGetPrevious_result result = new putGetPrevious_result();
- receiveBase(result, "putGetPrevious");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "putGetPrevious failed: unknown result");
- }
-
- @Override
- public Delta putGetDelta(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException
- {
- send_putGetDelta(transactionOrUpdateId, columnId, keys, value);
- return recv_putGetDelta();
- }
-
- public void send_putGetDelta(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException
- {
- putGetDelta_args args = new putGetDelta_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.setValue(value);
- sendBase("putGetDelta", args);
- }
-
- public Delta recv_putGetDelta() throws org.apache.thrift.TException
- {
- putGetDelta_result result = new putGetDelta_result();
- receiveBase(result, "putGetDelta");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "putGetDelta failed: unknown result");
- }
-
- @Override
- public boolean putGetChanged(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException
- {
- send_putGetChanged(transactionOrUpdateId, columnId, keys, value);
- return recv_putGetChanged();
- }
-
- public void send_putGetChanged(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException
- {
- putGetChanged_args args = new putGetChanged_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.setValue(value);
- sendBase("putGetChanged", args);
- }
-
- public boolean recv_putGetChanged() throws org.apache.thrift.TException
- {
- putGetChanged_result result = new putGetChanged_result();
- receiveBase(result, "putGetChanged");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "putGetChanged failed: unknown result");
- }
-
- @Override
- public boolean putGetPreviousPresence(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException
- {
- send_putGetPreviousPresence(transactionOrUpdateId, columnId, keys, value);
- return recv_putGetPreviousPresence();
- }
-
- public void send_putGetPreviousPresence(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value) throws org.apache.thrift.TException
- {
- putGetPreviousPresence_args args = new putGetPreviousPresence_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.setValue(value);
- sendBase("putGetPreviousPresence", args);
- }
-
- public boolean recv_putGetPreviousPresence() throws org.apache.thrift.TException
- {
- putGetPreviousPresence_result result = new putGetPreviousPresence_result();
- receiveBase(result, "putGetPreviousPresence");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "putGetPreviousPresence failed: unknown result");
- }
-
- @Override
- public OptionalBinary get(long transactionOrUpdateId, long columnId, java.util.List keys) throws org.apache.thrift.TException
- {
- send_get(transactionOrUpdateId, columnId, keys);
- return recv_get();
- }
-
- public void send_get(long transactionOrUpdateId, long columnId, java.util.List keys) throws org.apache.thrift.TException
- {
- get_args args = new get_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- sendBase("get", args);
- }
-
- public OptionalBinary recv_get() throws org.apache.thrift.TException
- {
- get_result result = new get_result();
- receiveBase(result, "get");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get failed: unknown result");
- }
-
- @Override
- public UpdateBegin getForUpdate(long transactionOrUpdateId, long columnId, java.util.List keys) throws org.apache.thrift.TException
- {
- send_getForUpdate(transactionOrUpdateId, columnId, keys);
- return recv_getForUpdate();
- }
-
- public void send_getForUpdate(long transactionOrUpdateId, long columnId, java.util.List keys) throws org.apache.thrift.TException
- {
- getForUpdate_args args = new getForUpdate_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- sendBase("getForUpdate", args);
- }
-
- public UpdateBegin recv_getForUpdate() throws org.apache.thrift.TException
- {
- getForUpdate_result result = new getForUpdate_result();
- receiveBase(result, "getForUpdate");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getForUpdate failed: unknown result");
- }
-
- @Override
- public boolean exists(long transactionOrUpdateId, long columnId, java.util.List keys) throws org.apache.thrift.TException
- {
- send_exists(transactionOrUpdateId, columnId, keys);
- return recv_exists();
- }
-
- public void send_exists(long transactionOrUpdateId, long columnId, java.util.List keys) throws org.apache.thrift.TException
- {
- exists_args args = new exists_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- sendBase("exists", args);
- }
-
- public boolean recv_exists() throws org.apache.thrift.TException
- {
- exists_result result = new exists_result();
- receiveBase(result, "exists");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "exists failed: unknown result");
- }
-
- @Override
- public long openIterator(long transactionId, long columnId, java.util.List startKeysInclusive, java.util.List endKeysExclusive, boolean reverse, long timeoutMs) throws org.apache.thrift.TException
- {
- send_openIterator(transactionId, columnId, startKeysInclusive, endKeysExclusive, reverse, timeoutMs);
- return recv_openIterator();
- }
-
- public void send_openIterator(long transactionId, long columnId, java.util.List startKeysInclusive, java.util.List endKeysExclusive, boolean reverse, long timeoutMs) throws org.apache.thrift.TException
- {
- openIterator_args args = new openIterator_args();
- args.setTransactionId(transactionId);
- args.setColumnId(columnId);
- args.setStartKeysInclusive(startKeysInclusive);
- args.setEndKeysExclusive(endKeysExclusive);
- args.setReverse(reverse);
- args.setTimeoutMs(timeoutMs);
- sendBase("openIterator", args);
- }
-
- public long recv_openIterator() throws org.apache.thrift.TException
- {
- openIterator_result result = new openIterator_result();
- receiveBase(result, "openIterator");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "openIterator failed: unknown result");
- }
-
- @Override
- public void closeIterator(long iteratorId) throws org.apache.thrift.TException
- {
- send_closeIterator(iteratorId);
- recv_closeIterator();
- }
-
- public void send_closeIterator(long iteratorId) throws org.apache.thrift.TException
- {
- closeIterator_args args = new closeIterator_args();
- args.setIteratorId(iteratorId);
- sendBase("closeIterator", args);
- }
-
- public void recv_closeIterator() throws org.apache.thrift.TException
- {
- closeIterator_result result = new closeIterator_result();
- receiveBase(result, "closeIterator");
- return;
- }
-
- @Override
- public void seekTo(long iterationId, java.util.List keys) throws org.apache.thrift.TException
- {
- send_seekTo(iterationId, keys);
- recv_seekTo();
- }
-
- public void send_seekTo(long iterationId, java.util.List keys) throws org.apache.thrift.TException
- {
- seekTo_args args = new seekTo_args();
- args.setIterationId(iterationId);
- args.setKeys(keys);
- sendBase("seekTo", args);
- }
-
- public void recv_seekTo() throws org.apache.thrift.TException
- {
- seekTo_result result = new seekTo_result();
- receiveBase(result, "seekTo");
- return;
- }
-
- @Override
- public void subsequent(long iterationId, long skipCount, long takeCount) throws org.apache.thrift.TException
- {
- send_subsequent(iterationId, skipCount, takeCount);
- recv_subsequent();
- }
-
- public void send_subsequent(long iterationId, long skipCount, long takeCount) throws org.apache.thrift.TException
- {
- subsequent_args args = new subsequent_args();
- args.setIterationId(iterationId);
- args.setSkipCount(skipCount);
- args.setTakeCount(takeCount);
- sendBase("subsequent", args);
- }
-
- public void recv_subsequent() throws org.apache.thrift.TException
- {
- subsequent_result result = new subsequent_result();
- receiveBase(result, "subsequent");
- return;
- }
-
- @Override
- public boolean subsequentExists(long iterationId, long skipCount, long takeCount) throws org.apache.thrift.TException
- {
- send_subsequentExists(iterationId, skipCount, takeCount);
- return recv_subsequentExists();
- }
-
- public void send_subsequentExists(long iterationId, long skipCount, long takeCount) throws org.apache.thrift.TException
- {
- subsequentExists_args args = new subsequentExists_args();
- args.setIterationId(iterationId);
- args.setSkipCount(skipCount);
- args.setTakeCount(takeCount);
- sendBase("subsequentExists", args);
- }
-
- public boolean recv_subsequentExists() throws org.apache.thrift.TException
- {
- subsequentExists_result result = new subsequentExists_result();
- receiveBase(result, "subsequentExists");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "subsequentExists failed: unknown result");
- }
-
- @Override
- public java.util.List subsequentMultiGet(long iterationId, long skipCount, long takeCount) throws org.apache.thrift.TException
- {
- send_subsequentMultiGet(iterationId, skipCount, takeCount);
- return recv_subsequentMultiGet();
- }
-
- public void send_subsequentMultiGet(long iterationId, long skipCount, long takeCount) throws org.apache.thrift.TException
- {
- subsequentMultiGet_args args = new subsequentMultiGet_args();
- args.setIterationId(iterationId);
- args.setSkipCount(skipCount);
- args.setTakeCount(takeCount);
- sendBase("subsequentMultiGet", args);
- }
-
- public java.util.List recv_subsequentMultiGet() throws org.apache.thrift.TException
- {
- subsequentMultiGet_result result = new subsequentMultiGet_result();
- receiveBase(result, "subsequentMultiGet");
- if (result.isSetSuccess()) {
- return result.success;
- }
- throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "subsequentMultiGet failed: unknown result");
- }
-
- }
- public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
- public static class Factory implements org.apache.thrift.async.TAsyncClientFactory {
- private org.apache.thrift.async.TAsyncClientManager clientManager;
- private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
- public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
- this.clientManager = clientManager;
- this.protocolFactory = protocolFactory;
- }
- @Override
- public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
- return new AsyncClient(protocolFactory, clientManager, transport);
- }
- }
-
- public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
- super(protocolFactory, clientManager, transport);
- }
-
- @Override
- public void openTransaction(long timeoutMs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- openTransaction_call method_call = new openTransaction_call(timeoutMs, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class openTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long timeoutMs;
- public openTransaction_call(long timeoutMs, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.timeoutMs = timeoutMs;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("openTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
- openTransaction_args args = new openTransaction_args();
- args.setTimeoutMs(timeoutMs);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public java.lang.Long getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_openTransaction();
- }
- }
-
- @Override
- public void closeTransaction(long transactionId, boolean commit, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- closeTransaction_call method_call = new closeTransaction_call(transactionId, commit, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class closeTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long transactionId;
- private boolean commit;
- public closeTransaction_call(long transactionId, boolean commit, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.transactionId = transactionId;
- this.commit = commit;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("closeTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
- closeTransaction_args args = new closeTransaction_args();
- args.setTransactionId(transactionId);
- args.setCommit(commit);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public java.lang.Boolean getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_closeTransaction();
- }
- }
-
- @Override
- public void closeFailedUpdate(long updateId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- closeFailedUpdate_call method_call = new closeFailedUpdate_call(updateId, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class closeFailedUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long updateId;
- public closeFailedUpdate_call(long updateId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.updateId = updateId;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("closeFailedUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
- closeFailedUpdate_args args = new closeFailedUpdate_args();
- args.setUpdateId(updateId);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public Void getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- (new Client(prot)).recv_closeFailedUpdate();
- return null;
- }
- }
-
- @Override
- public void createColumn(java.lang.String name, ColumnSchema schema, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- createColumn_call method_call = new createColumn_call(name, schema, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class createColumn_call extends org.apache.thrift.async.TAsyncMethodCall {
- private java.lang.String name;
- private ColumnSchema schema;
- public createColumn_call(java.lang.String name, ColumnSchema schema, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.name = name;
- this.schema = schema;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createColumn", org.apache.thrift.protocol.TMessageType.CALL, 0));
- createColumn_args args = new createColumn_args();
- args.setName(name);
- args.setSchema(schema);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public java.lang.Long getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_createColumn();
- }
- }
-
- @Override
- public void deleteColumn(long columnId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- deleteColumn_call method_call = new deleteColumn_call(columnId, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class deleteColumn_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long columnId;
- public deleteColumn_call(long columnId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.columnId = columnId;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteColumn", org.apache.thrift.protocol.TMessageType.CALL, 0));
- deleteColumn_args args = new deleteColumn_args();
- args.setColumnId(columnId);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public Void getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- (new Client(prot)).recv_deleteColumn();
- return null;
- }
- }
-
- @Override
- public void getColumnId(java.lang.String name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- getColumnId_call method_call = new getColumnId_call(name, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class getColumnId_call extends org.apache.thrift.async.TAsyncMethodCall {
- private java.lang.String name;
- public getColumnId_call(java.lang.String name, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.name = name;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getColumnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
- getColumnId_args args = new getColumnId_args();
- args.setName(name);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public java.lang.Long getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_getColumnId();
- }
- }
-
- @Override
- public void putFast(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- putFast_call method_call = new putFast_call(transactionOrUpdateId, columnId, keys, value, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class putFast_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long transactionOrUpdateId;
- private long columnId;
- private java.util.List keys;
- private java.nio.ByteBuffer value;
- public putFast_call(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, true);
- this.transactionOrUpdateId = transactionOrUpdateId;
- this.columnId = columnId;
- this.keys = keys;
- this.value = value;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("putFast", org.apache.thrift.protocol.TMessageType.ONEWAY, 0));
- putFast_args args = new putFast_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.setValue(value);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public Void getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return null;
- }
- }
-
- @Override
- public void put(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- put_call method_call = new put_call(transactionOrUpdateId, columnId, keys, value, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class put_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long transactionOrUpdateId;
- private long columnId;
- private java.util.List keys;
- private java.nio.ByteBuffer value;
- public put_call(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.transactionOrUpdateId = transactionOrUpdateId;
- this.columnId = columnId;
- this.keys = keys;
- this.value = value;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("put", org.apache.thrift.protocol.TMessageType.CALL, 0));
- put_args args = new put_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.setValue(value);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public Void getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- (new Client(prot)).recv_put();
- return null;
- }
- }
-
- @Override
- public void putMulti(long transactionOrUpdateId, long columnId, java.util.List> keysMulti, java.util.List valueMulti, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- putMulti_call method_call = new putMulti_call(transactionOrUpdateId, columnId, keysMulti, valueMulti, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class putMulti_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long transactionOrUpdateId;
- private long columnId;
- private java.util.List> keysMulti;
- private java.util.List valueMulti;
- public putMulti_call(long transactionOrUpdateId, long columnId, java.util.List> keysMulti, java.util.List valueMulti, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.transactionOrUpdateId = transactionOrUpdateId;
- this.columnId = columnId;
- this.keysMulti = keysMulti;
- this.valueMulti = valueMulti;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("putMulti", org.apache.thrift.protocol.TMessageType.CALL, 0));
- putMulti_args args = new putMulti_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeysMulti(keysMulti);
- args.setValueMulti(valueMulti);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public Void getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- (new Client(prot)).recv_putMulti();
- return null;
- }
- }
-
- @Override
- public void putGetPrevious(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- putGetPrevious_call method_call = new putGetPrevious_call(transactionOrUpdateId, columnId, keys, value, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class putGetPrevious_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long transactionOrUpdateId;
- private long columnId;
- private java.util.List keys;
- private java.nio.ByteBuffer value;
- public putGetPrevious_call(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.transactionOrUpdateId = transactionOrUpdateId;
- this.columnId = columnId;
- this.keys = keys;
- this.value = value;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("putGetPrevious", org.apache.thrift.protocol.TMessageType.CALL, 0));
- putGetPrevious_args args = new putGetPrevious_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.setValue(value);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public OptionalBinary getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_putGetPrevious();
- }
- }
-
- @Override
- public void putGetDelta(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- putGetDelta_call method_call = new putGetDelta_call(transactionOrUpdateId, columnId, keys, value, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class putGetDelta_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long transactionOrUpdateId;
- private long columnId;
- private java.util.List keys;
- private java.nio.ByteBuffer value;
- public putGetDelta_call(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.transactionOrUpdateId = transactionOrUpdateId;
- this.columnId = columnId;
- this.keys = keys;
- this.value = value;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("putGetDelta", org.apache.thrift.protocol.TMessageType.CALL, 0));
- putGetDelta_args args = new putGetDelta_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.setValue(value);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public Delta getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_putGetDelta();
- }
- }
-
- @Override
- public void putGetChanged(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- putGetChanged_call method_call = new putGetChanged_call(transactionOrUpdateId, columnId, keys, value, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class putGetChanged_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long transactionOrUpdateId;
- private long columnId;
- private java.util.List keys;
- private java.nio.ByteBuffer value;
- public putGetChanged_call(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.transactionOrUpdateId = transactionOrUpdateId;
- this.columnId = columnId;
- this.keys = keys;
- this.value = value;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("putGetChanged", org.apache.thrift.protocol.TMessageType.CALL, 0));
- putGetChanged_args args = new putGetChanged_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.setValue(value);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public java.lang.Boolean getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_putGetChanged();
- }
- }
-
- @Override
- public void putGetPreviousPresence(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- putGetPreviousPresence_call method_call = new putGetPreviousPresence_call(transactionOrUpdateId, columnId, keys, value, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class putGetPreviousPresence_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long transactionOrUpdateId;
- private long columnId;
- private java.util.List keys;
- private java.nio.ByteBuffer value;
- public putGetPreviousPresence_call(long transactionOrUpdateId, long columnId, java.util.List keys, java.nio.ByteBuffer value, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.transactionOrUpdateId = transactionOrUpdateId;
- this.columnId = columnId;
- this.keys = keys;
- this.value = value;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("putGetPreviousPresence", org.apache.thrift.protocol.TMessageType.CALL, 0));
- putGetPreviousPresence_args args = new putGetPreviousPresence_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.setValue(value);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public java.lang.Boolean getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_putGetPreviousPresence();
- }
- }
-
- @Override
- public void get(long transactionOrUpdateId, long columnId, java.util.List keys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- get_call method_call = new get_call(transactionOrUpdateId, columnId, keys, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class get_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long transactionOrUpdateId;
- private long columnId;
- private java.util.List keys;
- public get_call(long transactionOrUpdateId, long columnId, java.util.List keys, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.transactionOrUpdateId = transactionOrUpdateId;
- this.columnId = columnId;
- this.keys = keys;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get", org.apache.thrift.protocol.TMessageType.CALL, 0));
- get_args args = new get_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public OptionalBinary getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_get();
- }
- }
-
- @Override
- public void getForUpdate(long transactionOrUpdateId, long columnId, java.util.List keys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- getForUpdate_call method_call = new getForUpdate_call(transactionOrUpdateId, columnId, keys, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class getForUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long transactionOrUpdateId;
- private long columnId;
- private java.util.List keys;
- public getForUpdate_call(long transactionOrUpdateId, long columnId, java.util.List keys, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.transactionOrUpdateId = transactionOrUpdateId;
- this.columnId = columnId;
- this.keys = keys;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getForUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
- getForUpdate_args args = new getForUpdate_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public UpdateBegin getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_getForUpdate();
- }
- }
-
- @Override
- public void exists(long transactionOrUpdateId, long columnId, java.util.List keys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- exists_call method_call = new exists_call(transactionOrUpdateId, columnId, keys, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class exists_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long transactionOrUpdateId;
- private long columnId;
- private java.util.List keys;
- public exists_call(long transactionOrUpdateId, long columnId, java.util.List keys, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.transactionOrUpdateId = transactionOrUpdateId;
- this.columnId = columnId;
- this.keys = keys;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("exists", org.apache.thrift.protocol.TMessageType.CALL, 0));
- exists_args args = new exists_args();
- args.setTransactionOrUpdateId(transactionOrUpdateId);
- args.setColumnId(columnId);
- args.setKeys(keys);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public java.lang.Boolean getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_exists();
- }
- }
-
- @Override
- public void openIterator(long transactionId, long columnId, java.util.List startKeysInclusive, java.util.List endKeysExclusive, boolean reverse, long timeoutMs, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- openIterator_call method_call = new openIterator_call(transactionId, columnId, startKeysInclusive, endKeysExclusive, reverse, timeoutMs, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class openIterator_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long transactionId;
- private long columnId;
- private java.util.List startKeysInclusive;
- private java.util.List endKeysExclusive;
- private boolean reverse;
- private long timeoutMs;
- public openIterator_call(long transactionId, long columnId, java.util.List startKeysInclusive, java.util.List endKeysExclusive, boolean reverse, long timeoutMs, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.transactionId = transactionId;
- this.columnId = columnId;
- this.startKeysInclusive = startKeysInclusive;
- this.endKeysExclusive = endKeysExclusive;
- this.reverse = reverse;
- this.timeoutMs = timeoutMs;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("openIterator", org.apache.thrift.protocol.TMessageType.CALL, 0));
- openIterator_args args = new openIterator_args();
- args.setTransactionId(transactionId);
- args.setColumnId(columnId);
- args.setStartKeysInclusive(startKeysInclusive);
- args.setEndKeysExclusive(endKeysExclusive);
- args.setReverse(reverse);
- args.setTimeoutMs(timeoutMs);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public java.lang.Long getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_openIterator();
- }
- }
-
- @Override
- public void closeIterator(long iteratorId, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- closeIterator_call method_call = new closeIterator_call(iteratorId, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class closeIterator_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long iteratorId;
- public closeIterator_call(long iteratorId, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.iteratorId = iteratorId;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("closeIterator", org.apache.thrift.protocol.TMessageType.CALL, 0));
- closeIterator_args args = new closeIterator_args();
- args.setIteratorId(iteratorId);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public Void getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- (new Client(prot)).recv_closeIterator();
- return null;
- }
- }
-
- @Override
- public void seekTo(long iterationId, java.util.List keys, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- seekTo_call method_call = new seekTo_call(iterationId, keys, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class seekTo_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long iterationId;
- private java.util.List keys;
- public seekTo_call(long iterationId, java.util.List keys, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.iterationId = iterationId;
- this.keys = keys;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("seekTo", org.apache.thrift.protocol.TMessageType.CALL, 0));
- seekTo_args args = new seekTo_args();
- args.setIterationId(iterationId);
- args.setKeys(keys);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public Void getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- (new Client(prot)).recv_seekTo();
- return null;
- }
- }
-
- @Override
- public void subsequent(long iterationId, long skipCount, long takeCount, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- subsequent_call method_call = new subsequent_call(iterationId, skipCount, takeCount, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class subsequent_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long iterationId;
- private long skipCount;
- private long takeCount;
- public subsequent_call(long iterationId, long skipCount, long takeCount, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.iterationId = iterationId;
- this.skipCount = skipCount;
- this.takeCount = takeCount;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("subsequent", org.apache.thrift.protocol.TMessageType.CALL, 0));
- subsequent_args args = new subsequent_args();
- args.setIterationId(iterationId);
- args.setSkipCount(skipCount);
- args.setTakeCount(takeCount);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public Void getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- (new Client(prot)).recv_subsequent();
- return null;
- }
- }
-
- @Override
- public void subsequentExists(long iterationId, long skipCount, long takeCount, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
- checkReady();
- subsequentExists_call method_call = new subsequentExists_call(iterationId, skipCount, takeCount, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class subsequentExists_call extends org.apache.thrift.async.TAsyncMethodCall {
- private long iterationId;
- private long skipCount;
- private long takeCount;
- public subsequentExists_call(long iterationId, long skipCount, long takeCount, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.iterationId = iterationId;
- this.skipCount = skipCount;
- this.takeCount = takeCount;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("subsequentExists", org.apache.thrift.protocol.TMessageType.CALL, 0));
- subsequentExists_args args = new subsequentExists_args();
- args.setIterationId(iterationId);
- args.setSkipCount(skipCount);
- args.setTakeCount(takeCount);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public java.lang.Boolean getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_subsequentExists();
- }
- }
-
- @Override
- public void subsequentMultiGet(long iterationId, long skipCount, long takeCount, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws org.apache.thrift.TException {
- checkReady();
- subsequentMultiGet_call method_call = new subsequentMultiGet_call(iterationId, skipCount, takeCount, resultHandler, this, ___protocolFactory, ___transport);
- this.___currentMethod = method_call;
- ___manager.call(method_call);
- }
-
- public static class subsequentMultiGet_call extends org.apache.thrift.async.TAsyncMethodCall> {
- private long iterationId;
- private long skipCount;
- private long takeCount;
- public subsequentMultiGet_call(long iterationId, long skipCount, long takeCount, org.apache.thrift.async.AsyncMethodCallback> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
- super(client, protocolFactory, transport, resultHandler, false);
- this.iterationId = iterationId;
- this.skipCount = skipCount;
- this.takeCount = takeCount;
- }
-
- @Override
- public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
- prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("subsequentMultiGet", org.apache.thrift.protocol.TMessageType.CALL, 0));
- subsequentMultiGet_args args = new subsequentMultiGet_args();
- args.setIterationId(iterationId);
- args.setSkipCount(skipCount);
- args.setTakeCount(takeCount);
- args.write(prot);
- prot.writeMessageEnd();
- }
-
- @Override
- public java.util.List getResult() throws org.apache.thrift.TException {
- if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
- throw new java.lang.IllegalStateException("Method call not finished!");
- }
- org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
- org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
- return (new Client(prot)).recv_subsequentMultiGet();
- }
- }
-
- }
-
- public static class Processor extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
- private static final org.slf4j.Logger _LOGGER = org.slf4j.LoggerFactory.getLogger(Processor.class.getName());
- public Processor(I iface) {
- super(iface, getProcessMap(new java.util.HashMap>()));
- }
-
- protected Processor(I iface, java.util.Map> processMap) {
- super(iface, getProcessMap(processMap));
- }
-
- private static java.util.Map> getProcessMap(java.util.Map> processMap) {
- processMap.put("openTransaction", new openTransaction());
- processMap.put("closeTransaction", new closeTransaction());
- processMap.put("closeFailedUpdate", new closeFailedUpdate());
- processMap.put("createColumn", new createColumn());
- processMap.put("deleteColumn", new deleteColumn());
- processMap.put("getColumnId", new getColumnId());
- processMap.put("putFast", new putFast());
- processMap.put("put", new put());
- processMap.put("putMulti", new putMulti());
- processMap.put("putGetPrevious", new putGetPrevious());
- processMap.put("putGetDelta", new putGetDelta());
- processMap.put("putGetChanged", new putGetChanged());
- processMap.put("putGetPreviousPresence", new putGetPreviousPresence());
- processMap.put("get", new get());
- processMap.put("getForUpdate", new getForUpdate());
- processMap.put("exists", new exists());
- processMap.put("openIterator", new openIterator());
- processMap.put("closeIterator", new closeIterator());
- processMap.put("seekTo", new seekTo());
- processMap.put("subsequent", new subsequent());
- processMap.put("subsequentExists", new subsequentExists());
- processMap.put("subsequentMultiGet", new subsequentMultiGet());
- return processMap;
- }
-
- public static class openTransaction extends org.apache.thrift.ProcessFunction {
- public openTransaction() {
- super("openTransaction");
- }
-
- @Override
- public openTransaction_args getEmptyArgsInstance() {
- return new openTransaction_args();
- }
-
- @Override
- protected boolean isOneway() {
- return false;
- }
-
- @Override
- protected boolean rethrowUnhandledExceptions() {
- return false;
- }
-
- @Override
- public openTransaction_result getResult(I iface, openTransaction_args args) throws org.apache.thrift.TException {
- openTransaction_result result = new openTransaction_result();
- result.success = iface.openTransaction(args.timeoutMs);
- result.setSuccessIsSet(true);
- return result;
- }
- }
-
- public static class closeTransaction extends org.apache.thrift.ProcessFunction {
- public closeTransaction() {
- super("closeTransaction");
- }
-
- @Override
- public closeTransaction_args getEmptyArgsInstance() {
- return new closeTransaction_args();
- }
-
- @Override
- protected boolean isOneway() {
- return false;
- }
-
- @Override
- protected boolean rethrowUnhandledExceptions() {
- return false;
- }
-
- @Override
- public closeTransaction_result getResult(I iface, closeTransaction_args args) throws org.apache.thrift.TException {
- closeTransaction_result result = new closeTransaction_result();
- result.success = iface.closeTransaction(args.transactionId, args.commit);
- result.setSuccessIsSet(true);
- return result;
- }
- }
-
- public static class closeFailedUpdate