public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.name) { hashcode = (hashcode * 397) + Name.GetHashCode(); } if (__isset.maxVersions) { hashcode = (hashcode * 397) + MaxVersions.GetHashCode(); } if (__isset.compression) { hashcode = (hashcode * 397) + Compression.GetHashCode(); } if (__isset.inMemory) { hashcode = (hashcode * 397) + InMemory.GetHashCode(); } if (__isset.bloomFilterType) { hashcode = (hashcode * 397) + BloomFilterType.GetHashCode(); } if (__isset.bloomFilterVectorSize) { hashcode = (hashcode * 397) + BloomFilterVectorSize.GetHashCode(); } if (__isset.bloomFilterNbHashes) { hashcode = (hashcode * 397) + BloomFilterNbHashes.GetHashCode(); } if (__isset.blockCacheEnabled) { hashcode = (hashcode * 397) + BlockCacheEnabled.GetHashCode(); } if (__isset.timeToLive) { hashcode = (hashcode * 397) + TimeToLive.GetHashCode(); } } return(hashcode); }
public ColumnFamilySchema ToPbSchema() { var schema = new ColumnFamilySchema { Name = ByteString.CopyFrom(Name) }; schema.Attributes.Add(new BytesBytesPair { First = ByteString.CopyFromUtf8("VERSIONS"), Second = ByteString.CopyFromUtf8(MaxVersions.ToString()) }); schema.Attributes.Add(new BytesBytesPair { First = ByteString.CopyFromUtf8("TTl"), Second = ByteString.CopyFromUtf8(TTL.ToString()) }); schema.Attributes.Add(new BytesBytesPair { First = ByteString.CopyFromUtf8("MIN_VERSIONS"), Second = ByteString.CopyFromUtf8(MinVersion.ToString()) }); schema.Attributes.Add(new BytesBytesPair { First = ByteString.CopyFromUtf8("KEEP_DELETED_CELLS"), Second = ByteString.CopyFromUtf8(KeepDeletedCells.ToString()) }); schema.Attributes.Add(new BytesBytesPair { First = ByteString.CopyFromUtf8("BLOCKSIZE"), Second = ByteString.CopyFromUtf8(BlockSize.ToString()) }); schema.Attributes.Add(new BytesBytesPair { First = ByteString.CopyFromUtf8("COMPRESSION"), Second = ByteString.CopyFromUtf8(Compression.ToString()) }); schema.Attributes.Add(new BytesBytesPair { First = ByteString.CopyFromUtf8("BLOCKCACHE"), Second = ByteString.CopyFromUtf8(IsBlockCache.ToString()) }); schema.Attributes.Add(new BytesBytesPair { First = ByteString.CopyFromUtf8("BLOOMFILTER"), Second = ByteString.CopyFromUtf8(BloomFilter.ToString()) }); schema.Attributes.Add(new BytesBytesPair { First = ByteString.CopyFromUtf8("REPLICATION_SCOPE"), Second = ByteString.CopyFromUtf8(ReplicationScope.ToString()) }); schema.Attributes.Add(new BytesBytesPair { First = ByteString.CopyFromUtf8("DATA_BLOCK_ENCODING"), Second = ByteString.CopyFromUtf8(DataBlockEncoding.ToString()) }); return(schema); }