Module: Groonga

Defined in:
lib/groonga.rb,
lib/groonga/index.rb,
lib/groonga/column.rb,
lib/groonga/dumper.rb,
lib/groonga/logger.rb,
lib/groonga/record.rb,
lib/groonga/schema.rb,
lib/groonga/context.rb,
lib/groonga/posting.rb,
lib/groonga/database.rb,
lib/groonga/geo-point.rb,
lib/groonga/pagination.rb,
lib/groonga/grntest-log.rb,
lib/groonga/memory-pool.rb,
lib/groonga/sub-records.rb,
lib/groonga/index-column.rb,
lib/groonga/query-logger.rb,
lib/groonga/patricia-trie.rb,
lib/groonga/database-inspector.rb,
lib/groonga/expression-builder.rb,
lib/groonga/context/command-executor.rb,
ext/groonga/rb-groonga.c

Overview

Copyright (C) 2015 Masafumi Yokoyama [email protected] Copyright (C) 2009-2016 Kouhei Sutou [email protected]

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Defined Under Namespace

Modules: DefaultCache, Dumper, Encoding, EncodingSupport, ExpressionBuildable, Flushable, GeoPointValueConverter, GrntestLog, ID, Pagination, RequestCanceler, RequestTimer Classes: Accessor, AddressIsInUse, AddressIsNotAvailable, ArgumentListTooLong, Array, ArrayCursor, BadAddress, BadFileDescriptor, BrokenPipe, CASError, CallbackLogger, CallbackQueryLogger, Cancel, Closed, Column, ColumnCache, ColumnExpressionBuilder, CommandError, Config, ConnectionRefused, Context, DataColumn, Database, DatabaseDumper, DatabaseInspector, DirectoryNotEmpty, DomainError, DoubleArrayTrie, DoubleArrayTrieCursor, EndOfData, Error, ExecFormatError, Expression, FileCorrupt, FileExists, FileLogger, FileQueryLogger, FileTooLarge, FilenameTooLong, FixSizeColumn, FunctionNotImplemented, GeoPoint, Hash, HashCursor, IllegalByteSequence, ImproperLink, InappropriateIOControlOperation, IncompatibleFileFormat, Index, IndexColumn, IndexColumnDumper, InputOutputError, InterruptedFunctionCall, InvalidArgument, InvalidFormat, InvalidSeek, IsADirectory, LZ4Error, Logger, MatchTargetRecordExpressionBuilder, MemoryPool, Name, NetworkIsDown, NoBuffer, NoChildProcesses, NoLocksAvailable, NoMemoryAvailable, NoSpaceLeftOnDevice, NoSuchColumn, NoSuchDevice, NoSuchDeviceOrAddress, NoSuchFileOrDirectory, NoSuchProcess, Normalizer, NormalizerError, NotADirectory, NotEnoughSpace, NotSocket, Object, ObjectClosed, ObjectCorrupt, OperationNotPermitted, OperationNotSupported, OperationTimeout, OperationWouldBlock, PatriciaTrie, PatriciaTrieCursor, PermissionDenied, Plugin, PluginError, Posting, QueryLogger, RangeError, ReadOnlyFileSystem, Record, RecordExpressionBuilder, RequestTimerID, ResourceBusy, ResourceDeadlockAvoided, ResourceTemporarilyUnavailable, ResultTooLarge, RetryMax, Schema, SchemaDumper, ScorerError, Snippet, SocketIsAlreadyConnected, SocketIsAlreadyShutdowned, SocketIsNotConnected, SocketNotInitialized, StackOverFlow, SubRecords, SyntaxError, Table, TableCursor, TableDumper, Thread, TokenFilterError, TokenizerError, TokyoGeoPoint, TooLargeOffset, TooLargePage, TooManyLinks, TooManyOpenFiles, TooManyOpenFilesInSystem, TooManySymbolicLinks, TooSmallLimit, TooSmallOffset, TooSmallPage, TooSmallPageSize, Type, UnknownError, UnsupportedCommandVersion, UpdateNotAllowed, Variable, VariableSizeColumn, WGS84GeoPoint, WindowFunctionError, WindowsEventLogger, ZLibError, ZstdError

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object

call-seq: Groonga[name] -> Groonga::Object or nil Groonga[id] -> Groonga::Object or nil

便利メソッド。Groonga::Context.default[name]と同じ。



92
93
94
# File 'lib/groonga.rb', line 92

def [](name)
  Context.default[name]
end

.bindings_versionObject

BINDINGS_VERSIONを"."で結合して"メジャーバージョン.マ イナーバージョン.マイクロバージョン"という形式の文 字列にしたもの。



82
83
84
# File 'lib/groonga.rb', line 82

def bindings_version
  BINDINGS_VERSION.join(".")
end

.build_versionObject

BUILD_VERSIONを"."で結合して"メジャーバージョン.マ イナーバージョン.マイクロバージョン"という形式の 文字列にしたもの。



63
64
65
# File 'lib/groonga.rb', line 63

def build_version
  BUILD_VERSION.join(".")
end

.versionString

Format version.

Returns:



71
72
73
74
75
76
# File 'lib/groonga.rb', line 71

def version
  major, minor, micro, tag = VERSION
  version_string = [major, minor, micro].join(".")
  version_string << "-#{tag}" if tag
  version_string
end