@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287); if (isSetName()) hashCode = hashCode * 8191 + name.hashCode(); hashCode = hashCode * 8191 + maxVersions; hashCode = hashCode * 8191 + ((isSetCompression()) ? 131071 : 524287); if (isSetCompression()) hashCode = hashCode * 8191 + compression.hashCode(); hashCode = hashCode * 8191 + ((inMemory) ? 131071 : 524287); hashCode = hashCode * 8191 + ((isSetBloomFilterType()) ? 131071 : 524287); if (isSetBloomFilterType()) hashCode = hashCode * 8191 + bloomFilterType.hashCode(); hashCode = hashCode * 8191 + bloomFilterVectorSize; hashCode = hashCode * 8191 + bloomFilterNbHashes; hashCode = hashCode * 8191 + ((blockCacheEnabled) ? 131071 : 524287); hashCode = hashCode * 8191 + timeToLive; return hashCode; }
/** * Performs a deep copy on <i>other</i>. */ public ColumnDescriptor(ColumnDescriptor other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = org.apache.thrift.TBaseHelper.copyBinary(other.name); } this.maxVersions = other.maxVersions; if (other.isSetCompression()) { this.compression = other.compression; } this.inMemory = other.inMemory; if (other.isSetBloomFilterType()) { this.bloomFilterType = other.bloomFilterType; } this.bloomFilterVectorSize = other.bloomFilterVectorSize; this.bloomFilterNbHashes = other.bloomFilterNbHashes; this.blockCacheEnabled = other.blockCacheEnabled; this.timeToLive = other.timeToLive; }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new java.lang.IllegalArgumentException(); } switch (field) { case NAME: return isSetName(); case MAX_VERSIONS: return isSetMaxVersions(); case COMPRESSION: return isSetCompression(); case IN_MEMORY: return isSetInMemory(); case BLOOM_FILTER_TYPE: return isSetBloomFilterType(); case BLOOM_FILTER_VECTOR_SIZE: return isSetBloomFilterVectorSize(); case BLOOM_FILTER_NB_HASHES: return isSetBloomFilterNbHashes(); case BLOCK_CACHE_ENABLED: return isSetBlockCacheEnabled(); case TIME_TO_LIVE: return isSetTimeToLive(); } throw new java.lang.IllegalStateException(); }
List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name)
List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name)
/** * Performs a deep copy on <i>other</i>. */ public ColumnDescriptor(ColumnDescriptor other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } this.maxVersions = other.maxVersions; if (other.isSetCompression()) { this.compression = other.compression; } this.inMemory = other.inMemory; if (other.isSetBloomFilterType()) { this.bloomFilterType = other.bloomFilterType; } this.bloomFilterVectorSize = other.bloomFilterVectorSize; this.bloomFilterNbHashes = other.bloomFilterNbHashes; this.blockCacheEnabled = other.blockCacheEnabled; this.timeToLive = other.timeToLive; }
/** * Performs a deep copy on <i>other</i>. */ public ColumnDescriptor(ColumnDescriptor other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } this.maxVersions = other.maxVersions; if (other.isSetCompression()) { this.compression = other.compression; } this.inMemory = other.inMemory; if (other.isSetBloomFilterType()) { this.bloomFilterType = other.bloomFilterType; } this.bloomFilterVectorSize = other.bloomFilterVectorSize; this.bloomFilterNbHashes = other.bloomFilterNbHashes; this.blockCacheEnabled = other.blockCacheEnabled; this.timeToLive = other.timeToLive; }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NAME: return isSetName(); case MAX_VERSIONS: return isSetMaxVersions(); case COMPRESSION: return isSetCompression(); case IN_MEMORY: return isSetInMemory(); case BLOOM_FILTER_TYPE: return isSetBloomFilterType(); case BLOOM_FILTER_VECTOR_SIZE: return isSetBloomFilterVectorSize(); case BLOOM_FILTER_NB_HASHES: return isSetBloomFilterNbHashes(); case BLOCK_CACHE_ENABLED: return isSetBlockCacheEnabled(); case TIME_TO_LIVE: return isSetTimeToLive(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case NAME: return isSetName(); case MAX_VERSIONS: return isSetMaxVersions(); case COMPRESSION: return isSetCompression(); case IN_MEMORY: return isSetInMemory(); case BLOOM_FILTER_TYPE: return isSetBloomFilterType(); case BLOOM_FILTER_VECTOR_SIZE: return isSetBloomFilterVectorSize(); case BLOOM_FILTER_NB_HASHES: return isSetBloomFilterNbHashes(); case BLOCK_CACHE_ENABLED: return isSetBlockCacheEnabled(); case TIME_TO_LIVE: return isSetTimeToLive(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public ColumnDescriptor(ColumnDescriptor other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } this.maxVersions = other.maxVersions; if (other.isSetCompression()) { this.compression = other.compression; } this.inMemory = other.inMemory; if (other.isSetBloomFilterType()) { this.bloomFilterType = other.bloomFilterType; } this.bloomFilterVectorSize = other.bloomFilterVectorSize; this.bloomFilterNbHashes = other.bloomFilterNbHashes; this.blockCacheEnabled = other.blockCacheEnabled; this.timeToLive = other.timeToLive; }
/** * Performs a deep copy on <i>other</i>. */ public ColumnDescriptor(ColumnDescriptor other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } this.maxVersions = other.maxVersions; if (other.isSetCompression()) { this.compression = other.compression; } this.inMemory = other.inMemory; if (other.isSetBloomFilterType()) { this.bloomFilterType = other.bloomFilterType; } this.bloomFilterVectorSize = other.bloomFilterVectorSize; this.bloomFilterNbHashes = other.bloomFilterNbHashes; this.blockCacheEnabled = other.blockCacheEnabled; this.timeToLive = other.timeToLive; }