Documentation
ยถ
Index ยถ
- Constants
- type Context
- type MapFunc
- type MapFuncNull
- type NullableBool
- type NullableDuration
- type NullableFloat32
- type NullableFloat64
- type NullableInt
- type NullableInt16
- type NullableInt32
- type NullableInt64
- type NullableInt8
- type NullableString
- type NullableTime
- type SeriesSortOrder
- type StringPool
Constants ยถ
View Source
const ( // The default capacity of a series. DEFAULT_SERIES_INITIAL_CAPACITY = 10 // The default capacity of a hash map. DEFAULT_HASH_MAP_INITIAL_CAPACITY = 1024 // The default capacity of a dense map array. DEFAULT_DENSE_MAP_ARRAY_INITIAL_CAPACITY = 64 // Number of threads to use for parallel operations. THREADS_NUMBER = 16 // Minimum number of elements to use parallel operations. MINIMUM_PARALLEL_SIZE_1 = 16_384 MINIMUM_PARALLEL_SIZE_2 = 131_072 HASH_MAGIC_NUMBER = int64(0xa8f4979b77e3f93) HASH_MAGIC_NUMBER_NULL = int64(0x7fff4979b77e3f93) HASH_NULL_KEY = int64(0x7ff8000000000001) INF_TEXT = "Inf" NA_TEXT = "Na" EOL = "\n" QUOTE = "\"" BOOL_TRUE_TEXT = "true" BOOL_FALSE_TEXT = "false" CSV_READER_DEFAULT_DELIMITER = ',' CSV_READER_DEFAULT_HEADER = true CSV_READER_DEFAULT_GUESS_DATA_TYPE_LEN = 1000 XLSX_READER_DEFAULT_GUESS_DATA_TYPE_LEN = 1000 )
Variables ยถ
This section is empty.
Functions ยถ
This section is empty.
Types ยถ
type Context ยถ
type Context struct { // StringPool is a pool of strings that are used by the series. // This is used to reduce the number of allocations and to allow for fast comparisons. StringPool *StringPool // contains filtered or unexported fields }
func NewContext ยถ
func NewContext() *Context
func (*Context) GetThreadsNumber ยถ
func (*Context) GetTimeFormat ยถ
func (*Context) SetThreadsNumber ยถ
func (*Context) SetTimeFormat ยถ
type NullableBool ยถ
type NullableDuration ยถ
type NullableFloat32 ยถ
type NullableFloat64 ยถ
type NullableInt ยถ
type NullableInt16 ยถ
type NullableInt32 ยถ
type NullableInt64 ยถ
type NullableInt8 ยถ
type NullableString ยถ
type NullableTime ยถ
type SeriesSortOrder ยถ
type SeriesSortOrder int16
const ( // The series is not sorted. SORTED_NONE SeriesSortOrder = iota // The series is sorted in ascending order. SORTED_ASC // The series is sorted in descending order. SORTED_DESC )
type StringPool ยถ
func NewStringPool ยถ
func NewStringPool() *StringPool
func (*StringPool) Get ยถ
func (sp *StringPool) Get(s string) *string
Get returns the address of the string if it exists in the pool, otherwise nil.
func (*StringPool) Len ยถ
func (sp *StringPool) Len() int
func (*StringPool) Put ยถ
func (sp *StringPool) Put(s string) *string
Put returns the address of the string if it exists in the pool, otherwise it adds it to the pool and returns its address.
func (*StringPool) PutSync ยถ
func (sp *StringPool) PutSync(s string) *string
PutSync returns the address of the string if it exists in the pool, otherwise it adds it to the pool and returns its address. This version is thread-safe.
func (*StringPool) SetNaText ยถ
func (sp *StringPool) SetNaText(s string) *StringPool
func (*StringPool) ToString ยถ
func (sp *StringPool) ToString() string
Click to show internal directories.
Click to hide internal directories.