public ReferenceTypePrimitive( Thrift.Type thriftType, Thrift.ConvertedType?thriftAnnotation = null, int?bitWidth = null) : base(typeof(TSystemType), thriftType, thriftAnnotation, bitWidth) { }
public TypePrimitive(Type systemType, Thrift.Type thriftType, Thrift.ConvertedType?thriftAnnotation = null, int?bitWidth = null) { SystemType = systemType ?? throw new ArgumentNullException(nameof(systemType)); ThriftType = thriftType; ThriftAnnotation = thriftAnnotation; BitWidth = bitWidth; }
public Thrift.ColumnChunk CreateColumnChunk(CompressionMethod compression, Stream output, Thrift.Type columnType, List <string> path, int valuesCount) { Thrift.CompressionCodec codec = DataFactory.GetThriftCompression(compression); var chunk = new Thrift.ColumnChunk(); long startPos = output.Position; chunk.File_offset = startPos; chunk.Meta_data = new Thrift.ColumnMetaData(); chunk.Meta_data.Num_values = valuesCount; chunk.Meta_data.Type = columnType; chunk.Meta_data.Codec = codec; chunk.Meta_data.Data_page_offset = startPos; chunk.Meta_data.Encodings = new List <Thrift.Encoding> { Thrift.Encoding.RLE, Thrift.Encoding.BIT_PACKED, Thrift.Encoding.PLAIN }; chunk.Meta_data.Path_in_schema = path; chunk.Meta_data.Statistics = new Thrift.Statistics(); return(chunk); }
public BasicPrimitiveDataTypeHandler(DataType dataType, Thrift.Type thriftType, Thrift.ConvertedType?convertedType = null) : base(dataType, thriftType, convertedType) { }
public BasicDataTypeHandler(DataType dataType, Thrift.Type thriftType, Thrift.ConvertedType?convertedType = null) { DataType = dataType; _thriftType = thriftType; _convertedType = convertedType; }
public TypeTag(Thrift.Type ptype, Thrift.ConvertedType?convertedType) { PType = ptype; ConvertedType = convertedType; }
public BasicDataType(Thrift.Type thriftType, Thrift.ConvertedType?convertedType = null, int?bitWidth = null) { _thriftType = thriftType; _convertedType = convertedType; _bitWidth = bitWidth; }