示例#1
0
 public ReferenceTypePrimitive(
     Thrift.Type thriftType,
     Thrift.ConvertedType?thriftAnnotation = null,
     int?bitWidth = null) :
     base(typeof(TSystemType), thriftType, thriftAnnotation, bitWidth)
 {
 }
示例#2
0
 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;
 }
示例#3
0
        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)
 {
 }
示例#5
0
 public BasicDataTypeHandler(DataType dataType, Thrift.Type thriftType, Thrift.ConvertedType?convertedType = null)
 {
     DataType       = dataType;
     _thriftType    = thriftType;
     _convertedType = convertedType;
 }
示例#6
0
 public TypeTag(Thrift.Type ptype, Thrift.ConvertedType?convertedType)
 {
     PType         = ptype;
     ConvertedType = convertedType;
 }
示例#7
0
 public BasicDataType(Thrift.Type thriftType, Thrift.ConvertedType?convertedType = null, int?bitWidth = null)
 {
     _thriftType    = thriftType;
     _convertedType = convertedType;
     _bitWidth      = bitWidth;
 }