private static class TableDescriptorTupleScheme extends TupleScheme<TableDescriptor> {
@Override
public void write(org.apache.blur.thirdparty.thrift_0_9_0.protocol.TProtocol prot, TableDescriptor struct) throws org.apache.blur.thirdparty.thrift_0_9_0.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetEnabled()) {
optionals.set(0);
}
if (struct.isSetShardCount()) {
optionals.set(1);
}
if (struct.isSetTableUri()) {
optionals.set(2);
}
if (struct.isSetCluster()) {
optionals.set(3);
}
if (struct.isSetName()) {
optionals.set(4);
}
if (struct.isSetSimilarityClass()) {
optionals.set(5);
}
if (struct.isSetBlockCaching()) {
optionals.set(6);
}
if (struct.isSetBlockCachingFileTypes()) {
optionals.set(7);
}
if (struct.isSetReadOnly()) {
optionals.set(8);
}
if (struct.isSetPreCacheCols()) {
optionals.set(9);
}
if (struct.isSetTableProperties()) {
optionals.set(10);
}
if (struct.isSetStrictTypes()) {
optionals.set(11);
}
if (struct.isSetDefaultMissingFieldType()) {
optionals.set(12);
}
if (struct.isSetDefaultMissingFieldLessIndexing()) {
optionals.set(13);
}
if (struct.isSetDefaultMissingFieldProps()) {
optionals.set(14);
}
oprot.writeBitSet(optionals, 15);
if (struct.isSetEnabled()) {
oprot.writeBool(struct.enabled);
}
if (struct.isSetShardCount()) {
oprot.writeI32(struct.shardCount);
}
if (struct.isSetTableUri()) {
oprot.writeString(struct.tableUri);
}
if (struct.isSetCluster()) {
oprot.writeString(struct.cluster);
}
if (struct.isSetName()) {
oprot.writeString(struct.name);
}
if (struct.isSetSimilarityClass()) {
oprot.writeString(struct.similarityClass);
}
if (struct.isSetBlockCaching()) {
oprot.writeBool(struct.blockCaching);
}
if (struct.isSetBlockCachingFileTypes()) {
{
oprot.writeI32(struct.blockCachingFileTypes.size());
for (String _iter150 : struct.blockCachingFileTypes)
{
oprot.writeString(_iter150);
}
}
}
if (struct.isSetReadOnly()) {
oprot.writeBool(struct.readOnly);
}
if (struct.isSetPreCacheCols()) {
{
oprot.writeI32(struct.preCacheCols.size());
for (String _iter151 : struct.preCacheCols)
{
oprot.writeString(_iter151);
}
}
}
if (struct.isSetTableProperties()) {
{
oprot.writeI32(struct.tableProperties.size());
for (Map.Entry<String, String> _iter152 : struct.tableProperties.entrySet())
{
oprot.writeString(_iter152.getKey());
oprot.writeString(_iter152.getValue());
}
}
}
if (struct.isSetStrictTypes()) {
oprot.writeBool(struct.strictTypes);
}
if (struct.isSetDefaultMissingFieldType()) {
oprot.writeString(struct.defaultMissingFieldType);
}
if (struct.isSetDefaultMissingFieldLessIndexing()) {
oprot.writeBool(struct.defaultMissingFieldLessIndexing);
}
if (struct.isSetDefaultMissingFieldProps()) {
{
oprot.writeI32(struct.defaultMissingFieldProps.size());
for (Map.Entry<String, String> _iter153 : struct.defaultMissingFieldProps.entrySet())
{
oprot.writeString(_iter153.getKey());
oprot.writeString(_iter153.getValue());
}
}
}
}